bundlewrap/bundles/matrix-synapse/items.py

54 lines
1.8 KiB
Python
Raw Normal View History

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/scripts/synapse-purge-unused-rooms': {
'mode': '0755',
},
'/etc/matrix-synapse/scripts/synapse-reset-federation-timeout': {
'mode': '0755',
},
'/etc/systemd/system/matrix-synapse.service.d/override.conf': {
'needs': {
'pkg_apt:matrix-synapse-py3',
},
'triggers': {
'action:systemd-reload',
'svc_systemd:matrix-synapse:restart',
},
},
2020-04-05 09:38:31 +00:00
'/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/server_name.yaml': {
# We don't actually need this file. However, if we don't put the
# server name in there, synapse will somehow remove it from
# homeserver.yaml when installing a new matrix-synapse package.
# Our override.conf ensures this file is never read, so we don't
# need to restart synapse after changing stuff in here.
'content_type': 'mako',
'context': node.metadata['matrix-synapse'],
},
'/etc/matrix-synapse/conf.d/report_stats.yaml': {
# see comment above
},
2020-04-05 09:38:31 +00:00
}
svc_systemd = {
'matrix-synapse': {
'needs': {
'file:/etc/matrix-synapse/homeserver.yaml',
'file:/etc/systemd/system/matrix-synapse.service.d/override.conf',
2020-04-05 09:38:31 +00:00
'pkg_apt:matrix-synapse-py3',
'postgres_db:synapse',
2020-04-05 09:38:31 +00:00
},
},
}