%from os import listdir %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' pwd_files: - {'file': '/etc/lemur/lemur.conf.py', 'pattern': 'SQLALCHEMY_DATABASE_PASSWORD = "'}