diff --git a/tmpl/risotto.yml b/tmpl/risotto.yml index 6d91aed..8f8e7c1 100644 --- a/tmpl/risotto.yml +++ b/tmpl/risotto.yml @@ -1,9 +1,14 @@ +%set %%dbname = %%getVar('risotto_main_dbname') --- dbuser: %%getVar('risotto_db_user') +dbuser_options: + - LOGIN +privileges: + %%{dbname}.public: 'ALL' dbhost: %%getVar('risotto_db_address') dbport: 5432 dbtype: postgres -dbname: %%getVar('risotto_main_dbname') +dbname: %%dbname template: 'postgres' sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql'] pwd_files: diff --git a/tmpl/tiramisu.yml b/tmpl/tiramisu.yml index 8d3c444..a97cebf 100644 --- a/tmpl/tiramisu.yml +++ b/tmpl/tiramisu.yml @@ -1,5 +1,10 @@ +%set %%dbname = %%getVar('risotto_tiramisu_dbname') --- dbuser: %%getVar('risotto_tiramisu_db_user') +dbuser_options: + - LOGIN +privileges: + %%{dbname}.public: 'ALL' dbhost: %%getVar('risotto_db_address') dbport: 5432 dbtype: postgres