bundlewrap/bundles/matrix-synapse/metadata.py

50 lines
1.4 KiB
Python
Raw Normal View History

2020-08-18 13:27:55 +00:00
defaults = {
'apt': {
'repos': {
'matrix': {
'items': [
'deb https://packages.matrix.org/debian buster main',
],
2020-04-05 09:38:31 +00:00
},
2020-08-18 13:27:55 +00:00
},
'packages': {
'matrix-synapse-py3': {},
},
},
2020-11-13 11:37:26 +00:00
'backups': {
'paths': {
'/var/lib/matrix-synapse',
},
},
2020-11-21 17:55:06 +00:00
'icinga2_api': {
'matrix-synapse': {
'services': {
2021-01-02 11:26:37 +00:00
'MATRIX-SYNAPSE PROCESS': {
2020-11-21 17:55:06 +00:00
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"',
2021-01-02 11:26:37 +00:00
'vars.notification.sms': True,
2020-11-21 17:55:06 +00:00
},
},
},
},
2020-11-13 11:37:26 +00:00
'matrix-synapse': {
2020-08-18 13:27:55 +00:00
'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': {
2020-08-18 13:27:55 +00:00
'synapse_user': {
2020-04-05 09:38:31 +00:00
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
},
},
2020-08-18 13:27:55 +00:00
'databases': {
'synapse': {
'owner': 'synapse_user',
},
2020-08-18 13:27:55 +00:00
},
}
}