bundles/matrix-synapse: ensure matrix-synapse does not mess with our homeserver.yaml
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-07-17 09:32:49 +02:00
parent 77f785135d
commit 337b660f5a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# This file is autogenerated, and will be recreated on upgrade if it is deleted.
# Any changes you make will be preserved.
# Whether to report anonymized homeserver usage statistics.
report_stats: false

View file

@ -0,0 +1,9 @@
# This file is autogenerated, and will be recreated on upgrade if it is deleted.
# Any changes you make will be preserved.
# The domain name of the server, with optional explicit port.
# This is used by remote servers to connect to this server,
# e.g. matrix.org, localhost:8080, etc.
# This is also the last part of your UserID.
#
server_name: ${server_name}

View file

@ -24,6 +24,18 @@ files = {
'/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
},
}
svc_systemd = {