bundles/postgresql: make sure we have postgres_role before adding postgres_db

This commit is contained in:
Franzi 2020-10-31 10:30:48 +01:00
parent 67c5c23194
commit f1f7086aab
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -41,6 +41,7 @@ for database, config in node.metadata.get('postgresql', {}).get('databases', {})
postgres_dbs[database] = { postgres_dbs[database] = {
'owner': config['owner'], 'owner': config['owner'],
'needs': { 'needs': {
'postgres_role:',
'svc_systemd:postgresql', 'svc_systemd:postgresql',
}, },
} }