add matrix-synapse bundle
This commit is contained in:
parent
29eeffbdc3
commit
8a26def21c
8 changed files with 267 additions and 6 deletions
|
@ -85,3 +85,6 @@ svc_systemd = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
if node.has_bundle('matrix-synapse'):
|
||||
actions['mx-puppet-discord_generate_registration']['triggers'].add('svc_systemd:matrix-synapse:restart')
|
||||
|
|
|
@ -9,3 +9,26 @@ def mx_puppet_discord_user(metadata):
|
|||
},
|
||||
},
|
||||
}, DEFAULTS, DONE
|
||||
|
||||
@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
|
||||
def bridge_defaults(metadata):
|
||||
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',
|
||||
},
|
||||
},
|
||||
}, DEFAULTS, DONE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue