bundlewrap/bundles/matrix-synapse/metadata.py
Franziska Kunsmann 018bdb2f83
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/matrix*: better monitoring
2021-04-10 16:40:44 +02:00

52 lines
1.6 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 HTTP ENDPOINT': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"',
},
'MATRIX-SYNAPSE PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -a synapse.app.homeserver -c 1:',
'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',
},
},
}
}