eole-risotto/tmpl/risotto.yml

24 lines
593 B
YAML
Raw Normal View History

%from os import listdir
%set %%dbname = %%getVar('risotto_main_dbname')
2020-04-03 11:46:15 +02:00
---
dbuser: %%getVar('risotto_db_user')
dbuser_options:
- LOGIN
privileges:
%%{dbname}.public.*: 'ALL'
%%{dbname}.public: 'ALL'
%%{dbname}: 'ALL'
2020-04-03 11:46:15 +02:00
dbhost: %%getVar('risotto_db_address')
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='}