12 lines
326 B
Python
12 lines
326 B
Python
postgres_roles = {}
|
|
postgres_dbs = {}
|
|
|
|
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] = {
|
|
'owner': config['owner'],
|
|
}
|