2020-04-04 15:54:48 +00:00
|
|
|
@metadata_processor
|
|
|
|
def mx_puppet_discord_user(metadata):
|
|
|
|
return {
|
|
|
|
'users': {
|
|
|
|
'mx-puppet-discord': {
|
|
|
|
'home': '/opt/mx-puppet-discord',
|
|
|
|
'deploy_configs': False,
|
2020-04-04 16:15:08 +00:00
|
|
|
'home-mode': '0755',
|
2020-04-04 15:54:48 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}, DEFAULTS, DONE
|
2020-04-05 09:38:31 +00:00
|
|
|
|
|
|
|
@metadata_processor
|
|
|
|
def add_mx_puppet_discord_to_synapse(metadata):
|
|
|
|
return {
|
|
|
|
'matrix-synapse': {
|
|
|
|
'appservice_configs': {
|
|
|
|
'/opt/mx-puppet-discord/registration.yaml',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}, DEFAULTS, DONE
|
|
|
|
|
|
|
|
@metadata_processor
|
2020-06-01 09:09:03 +00:00
|
|
|
def postgres(metadata):
|
2020-04-05 09:38:31 +00:00
|
|
|
return {
|
|
|
|
'mx-puppet-discord': {
|
|
|
|
'database': {
|
|
|
|
'user': 'mx-puppet-discord',
|
|
|
|
'password': repo.vault.password_for('{} postgresql mx-puppet-discord'.format(node.name)),
|
|
|
|
'database': 'mx-puppet-discord',
|
|
|
|
},
|
|
|
|
},
|
2020-06-01 09:09:03 +00:00
|
|
|
'postgres': {
|
|
|
|
'users': {
|
|
|
|
'mx-puppet-discord': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql mx-puppet-discord'.format(node.name)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'databases': {
|
|
|
|
'mx-puppet-discord': {
|
|
|
|
'owner': 'mx-puppet-discord',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-04-05 09:38:31 +00:00
|
|
|
}, DEFAULTS, DONE
|
|
|
|
|