bundlewrap/bundles/travelynx/metadata.py
Franziska Kunsmann 3fbe32518a
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/postgresql: rename users -> roles
2020-11-10 12:37:58 +01:00

31 lines
887 B
Python

defaults = {
'users': {
'travelynx': {
'home': '/opt/travelynx',
'home-mode': '0755',
},
},
'travelynx': {
'database': {
'username': 'travelynx',
'password': repo.vault.password_for('{} postgresql travelynx'.format(node.name)),
'database': 'travelynx',
},
'workers': 4,
'spare_workers': 2,
'mail_from': 'travelynx@{}'.format(node.hostname),
'cookie_secret': repo.vault.password_for('{} travelynx cookie_secret'.format(node.name)),
},
'postgresql': {
'roles': {
'travelynx': {
'password': repo.vault.password_for('{} postgresql travelynx'.format(node.name)),
},
},
'databases': {
'travelynx': {
'owner': 'travelynx',
},
},
},
}