bundlewrap/bundles/postgresql/items.py
mwiegand c1e37b233c wip
2021-06-13 18:40:51 +02:00

14 lines
363 B
Python

for user, config in node.metadata.get('postgresql/roles').items():
postgres_roles[user] = {
'password': config['password'],
'needs': {
'svc_systemd:postgresql',
},
}
for database, config in node.metadata.get('postgresql/databases').items():
postgres_dbs[database] = config
svc_systemd = {
'postgresql': {},
}