%set %%dbname = %%lemur_db_name --- dbuser: %%lemur_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: - /usr/share/eole/db/lemur/gen/lemur.sql pwd_files: - {'file': '/etc/lemur/lemur.conf.py', 'pattern': "SQLALCHEMY_DATABASE_PASSWORD = '"} %set %%var = %%getVar('risotto_main_dbname', None) %if not %%is_empty(%%var) - {'file': '/etc/risotto/risotto.conf', 'pattern': "LEMUR_DB_PASSWORD='"} %end if