2020-04-05 09:38:31 +00:00
|
|
|
files = {
|
|
|
|
'/etc/matrix-synapse/homeserver.yaml': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'context': node.metadata['matrix-synapse'],
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:matrix-synapse-py3',
|
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:matrix-synapse:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'/etc/matrix-synapse/homeserver.signing.key': {
|
|
|
|
'content': repo.vault.decrypt_file('matrix-synapse/{}/homeserver_signing.key.vault'.format(node.name)),
|
|
|
|
},
|
|
|
|
'/etc/matrix-synapse/conf.d': {
|
2020-08-18 13:34:20 +00:00
|
|
|
'delete': True,
|
2020-04-05 09:38:31 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd = {
|
|
|
|
'matrix-synapse': {
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/matrix-synapse/homeserver.yaml',
|
2020-08-18 13:34:20 +00:00
|
|
|
'file:/etc/matrix-synapse/conf.d',
|
2020-04-05 09:38:31 +00:00
|
|
|
'pkg_apt:matrix-synapse-py3',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|