bundle/postgresql add dependencies, remove redundant config

This commit is contained in:
Sophie Schiller 2021-05-14 20:06:42 +02:00
parent a656eb7eb3
commit d3c9550463

View file

@ -29,6 +29,7 @@ directories = {
'owner': 'postgres', 'owner': 'postgres',
'group': 'postgres', 'group': 'postgres',
'mode': '0755', 'mode': '0755',
'needs': {f'pkg_apt:{i}' for i in pkg_apt.keys()},
}, },
} }
@ -105,10 +106,4 @@ for user, config in node.metadata.get('postgresql/roles', {}).items():
} }
for database, config in node.metadata.get('postgresql/databases', {}).items(): for database, config in node.metadata.get('postgresql/databases', {}).items():
postgres_dbs[database] = { postgres_dbs[database] = config
'owner': config['owner'],
'needs': {
'postgres_role:',
'svc_systemd:postgresql',
},
}