2020-08-19 16:43:32 +00:00
|
|
|
defaults = {
|
|
|
|
'users': {
|
|
|
|
'travelynx': {
|
|
|
|
'home': '/opt/travelynx',
|
|
|
|
'deploy_configs': False,
|
2020-08-19 20:01:54 +00:00
|
|
|
'home-mode': '0755',
|
2020-08-19 16:43:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
'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': {
|
|
|
|
'users': {
|
|
|
|
'travelynx': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql travelynx'.format(node.name)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'databases': {
|
|
|
|
'travelynx': {
|
|
|
|
'owner': 'travelynx',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|