eole-risotto/tmpl/risotto.yml

24 lines
563 B
YAML
Raw Normal View History

%from os import listdir
%set %%dbname = %%risotto_main_dbname
2020-04-03 11:46:15 +02:00
---
dbuser: %%risotto_db_user
dbuser_options:
- LOGIN
privileges:
%%{dbname}.public.*: 'ALL'
%%{dbname}.public: 'ALL'
%%{dbname}: 'ALL'
dbhost: %%risotto_db_address
2020-04-03 11:46:15 +02:00
dbport: 5432
dbtype: postgres
dbname: %%dbname
template: 'template0'
sqlscripts:
%for %%file in %%listdir('/usr/share/eole/db/eole-risotto/gen/')
%if %%file.endswith('.sql')
- /usr/share/eole/db/eole-risotto/gen/%%file
%end if
%end for
2020-04-03 11:46:15 +02:00
pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}