bundlewrap/bundles/postgresql/items.py

13 lines
326 B
Python
Raw Normal View History

2020-04-04 15:53:59 +00:00
postgres_roles = {}
postgres_dbs = {}
2020-04-04 15:53:59 +00:00
for user, config in node.metadata['postgresql']['users'].items():
postgres_roles[user] = {
'password': config['password'],
}
for database, config in node.metadata['postgresql']['databases'].items():
postgres_dbs[database] = {
2020-04-04 15:53:59 +00:00
'owner': config['owner'],
}