2020-08-21 14:21:46 +00:00
|
|
|
pkg_apt = {
|
|
|
|
'postgresql-11': {},
|
|
|
|
'postgresql-client-11': {},
|
|
|
|
}
|
|
|
|
|
|
|
|
postgres_roles = {
|
|
|
|
'root': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql root'.format(node.name)),
|
|
|
|
'superuser': True,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-04-04 16:28:38 +00:00
|
|
|
postgres_dbs = {}
|
2020-04-04 15:53:59 +00:00
|
|
|
|
|
|
|
for user, config in node.metadata['postgresql']['users'].items():
|
|
|
|
postgres_roles[user] = {
|
|
|
|
'password': config['password'],
|
|
|
|
}
|
|
|
|
|
|
|
|
for database, config in node.metadata['postgresql']['databases'].items():
|
2020-04-04 16:28:38 +00:00
|
|
|
postgres_dbs[database] = {
|
2020-04-04 15:53:59 +00:00
|
|
|
'owner': config['owner'],
|
|
|
|
}
|