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': {
|
|
|
|
'SYNAPSE PROCESS': {
|
|
|
|
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
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': {
|
2020-11-10 11:37:58 +00:00
|
|
|
'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-06-01 09:09:03 +00:00
|
|
|
},
|
2020-08-18 13:27:55 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|