bundles/postgresql: fix database creation
This commit is contained in:
parent
1dfa5c457c
commit
78bae4f77b
1 changed files with 2 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
postgres_roles = {}
|
postgres_roles = {}
|
||||||
postgres_db = {}
|
postgres_dbs = {}
|
||||||
|
|
||||||
for user, config in node.metadata['postgresql']['users'].items():
|
for user, config in node.metadata['postgresql']['users'].items():
|
||||||
postgres_roles[user] = {
|
postgres_roles[user] = {
|
||||||
|
@ -7,9 +7,6 @@ for user, config in node.metadata['postgresql']['users'].items():
|
||||||
}
|
}
|
||||||
|
|
||||||
for database, config in node.metadata['postgresql']['databases'].items():
|
for database, config in node.metadata['postgresql']['databases'].items():
|
||||||
postgres_db[database] = {
|
postgres_dbs[database] = {
|
||||||
'owner': config['owner'],
|
'owner': config['owner'],
|
||||||
'needs': {
|
|
||||||
'postgres_role:{}'.format(config['owner']),
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue