First commit

This commit is contained in:
2020-04-03 11:46:15 +02:00
commit 420f155eeb
9 changed files with 560 additions and 0 deletions

14
tmpl/risotto.conf Normal file
View File

@ -0,0 +1,14 @@
CONFIGURATION_DIR=%%getVar('risotto_configuration_dir')
PROVIDER_FACTORY_CONFIG_DIR=%%getVar('risotto_factory_configuration_dir')
TMP_DIR=%%getVar('risotto_temp_dir')
DEFAULT_USER=%%getVar('risotto_default_user')
RISOTTO_DB_NAME=%%getVar('risotto_main_dbname')
RISOTTO_DB_USER=%%getVar('risotto_db_user')
RISOTTO_DB_PASSWORD=replace_me
TIRAMISU_DB_NAME=%%getVar('risotto_tiramisu_dbname')
TIRAMISU_DB_USER=%%getVar('risotto_tiramisu_db_user')
TIRAMISU_DB_PASSWORD=replace_me
DB_ADDRESS=%%getVar('risotto_db_address')
MESSAGE_PATH=%%getVar('risotto_messages_dir')
CACHE_ROOT_PATH=%%getVar('risotto_cache_dir')
SRV_SEED_PATH=%%getVar('risotto_seed_dir')

9
tmpl/risotto.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=risotto
[Service]
EnvironmentFile=/etc/risotto/risotto.conf
ExecStart=/usr/bin/risotto-server
[Install]
WantedBy=multi-user.target

10
tmpl/risotto.yml Normal file
View File

@ -0,0 +1,10 @@
---
dbuser: %%getVar('risotto_db_user')
dbhost: %%getVar('risotto_db_address')
dbport: 5432
dbtype: postgres
dbname: %%getVar('risotto_main_dbname')
template: 'postgres'
sqlscripts: ['/usr/share/eole/db/risotto/gen/create_tables.sql']
pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}

10
tmpl/tiramisu.yml Normal file
View File

@ -0,0 +1,10 @@
---
dbuser: %%getVar('risotto_tiramisu_db_user')
dbhost: %%getVar('risotto_db_address')
dbport: 5432
dbtype: postgres
dbname: %%getVar('risotto_tiramisu_dbname')
template: 'postgres'
pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'TIRAMISU_DB_PASSWORD='}