bundlewrap/bundles/matrix-synapse/items.py
Franziska Kunsmann 4b41a00ac4
bundles/matrix-synapse: don't remove conf.d directory
We're taking care of that by deploying a override.conf instead
2020-09-26 15:20:08 +02:00

34 lines
998 B
Python

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/systemd/system/matrix-synapse.service.d/override.conf': {
'needs': {
'pkg_apt:matrix-synapse-py3',
},
'triggers': {
'action:systemd-reload',
'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)),
},
}
svc_systemd = {
'matrix-synapse': {
'needs': {
'file:/etc/matrix-synapse/homeserver.yaml',
'file:/etc/systemd/system/matrix-synapse.service.d/override.conf',
'pkg_apt:matrix-synapse-py3',
},
},
}