bundlewrap/bundles/matrix-synapse/metadata.py
Franziska Kunsmann 4f57a6c0e3
All checks were successful
bundlewrap/pipeline/head This commit looks good
icinga2: more checks should send sms
2021-01-02 12:26:37 +01:00

49 lines
1.4 KiB
Python

defaults = {
'apt': {
'repos': {
'matrix': {
'items': [
'deb https://packages.matrix.org/debian buster main',
],
},
},
'packages': {
'matrix-synapse-py3': {},
},
},
'backups': {
'paths': {
'/var/lib/matrix-synapse',
},
},
'icinga2_api': {
'matrix-synapse': {
'services': {
'MATRIX-SYNAPSE PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"',
'vars.notification.sms': True,
},
},
},
},
'matrix-synapse': {
'registration_shared_secret': repo.vault.human_password_for('{} matrix-synapse registration_shared_secret'.format(node.name)),
'database': {
'user': 'synapse_user',
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
'database': 'synapse',
},
},
'postgresql': {
'roles': {
'synapse_user': {
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
},
},
'databases': {
'synapse': {
'owner': 'synapse_user',
},
},
}
}