%from os import listdir %set %%dbname = %%risotto_main_dbname --- dbuser: %%risotto_db_user dbuser_options: - LOGIN privileges: %%{dbname}.public.*: 'ALL' %%{dbname}.public: 'ALL' %%{dbname}: 'ALL' dbhost: %%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 pwd_files: - {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}