Slavi Pantaleev
39bddefd39
Make addons communicate with the homeserver via a new internal Traefik entrypoint
This also adds labels for Synapse. Support for other homeservers and
components will be added later.
2 лет назад
Slavi Pantaleev
934b73c849
Remove leftover Synapse metrics code for integrating with matrix-nginx-proxy
2 лет назад
Slavi Pantaleev
41a52945d6
Add support for exposing metrics for Synapse workers
2 лет назад
Slavi Pantaleev
22f5f0ba75
Add support for exposing metrics for Synapse (without workers)
2 лет назад
Slavi Pantaleev
015acb6d08
Add native Traefik support to matrix-synapse
2 лет назад
Slavi Pantaleev
abde681b56
Clean up some matrix_nginx_proxy_proxy_matrix_metrics_* references
2 лет назад
Slavi Pantaleev
abdb4375db
Add matrix_synapse_additional_loggers_auto and matrix_synapse_additional_loggers_custom
2 лет назад
Slavi Pantaleev
cc7244c14d
Fix Synapse sub-component (worker, S3, ..) uninstallation
matrix-synapse/tasks/setup_uninstall.yml would previously not run unless
Synapse was completely disabled.
2 лет назад
Slavi Pantaleev
d207edb304
Deprecate matrix_synapse_spam_checker in favor of matrix_synapse_modules
2 лет назад
Slavi Pantaleev
e03ec11fcf
Switch mjolnir-antispam from using spam_checker to modules
`spam_checker` has been deprecated for quite a while.
While it still probably works and while newer versions of
mjolnir-antispam still use it, we should switch to the new API.
2 лет назад
Slavi Pantaleev
92ea048080
Add some missing install-all/install-synapse tags to Synapse role
2 лет назад
Slavi Pantaleev
d02f6b8b93
Force-build customized container image for Synapse when its Dockerfile changes
2 лет назад
Zac
f026c7cee1
Apply suggestions from code review
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 лет назад
cbackas
f6d260dc00
this is better
2 лет назад
cbackas
0e701bbece
add var to make the creds optional
2 лет назад
Zac
ceda4c41cc
remove the offending lines
2 лет назад
Slavi Pantaleev
b71375fac7
Disable healthcheck for Synapse workers which serve no web traffic
This was mostly affecting the stream writer (events) worker, which was
being reported as unhealthy. It wasn't causing any issues, but it just
looked odd and was confusing people.
As an alternative to hitting the regular `/health` healthcheck route (on
the "client" API which this stream writer does not expose),
we may have went for hitting some "replication" API endpoint instead.
This is more complicated and likely unnecessary.
2 лет назад
Slavi Pantaleev
8ef23a655d
Restore --tags=import-synapse-sqlite-db support
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2669
Removed in 04b9483f0d (2022-11-28) when switching from matrix-postgres to
the devture-postgres external Ansible role.
More details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#matrix-postgres-has-been-replaced-by-the-comdevtureansiblerolepostgres-external-role
The `import_synapse_sqlite_db.yml` file and documentation has been adapted somewhat compared to before, so that:
- it doesn't try to start Postgres automatically. You need to handle
this part manually
- it doesn't rely on the integrated Postgres and may potentially work
with external Postgres instances just the same
- it doesn't wipe out the whole database anymore. By default, we assume
it's empty anyway and there's no need for such things. If it's not,
then it's also probably dangerous to be so destructive.
This is all completely untested, but will hopefully work.
2 лет назад
Slavi Pantaleev
1e1ab70965
Make use of matrix_synapse_container_network in the matrix-synapse role
It's the same as `matrix_docker_network` for now, so this practically
doesn't change anything.
2 лет назад
Slavi Pantaleev
2d051679c0
Ensure instance_map.port is numeric
Fixup related to https://github.com/matrix-org/synapse/pull/15431
2 лет назад
Slavi Pantaleev
dddfee16bc
Fix all 300+ ansible-lint-reported errors
3 лет назад
Slavi Pantaleev
5df89a44b3
Add support for customizing Synapse templates
3 лет назад
Slavi Pantaleev
632026513e
Add matrix_synapse_uid, matrix_synapse_gid and matrix_synapse_username
3 лет назад
Slavi Pantaleev
519b32543c
Add matrix_synapse_container_network and matrix_synapse_container_additional_networks
3 лет назад
Slavi Pantaleev
424f79df3a
Replace synapse.app.pusher and synapse.app.federation_sender with synapse.app.generic_worker
Related to https://github.com/matrix-org/synapse/commit/3479599387164aca2613e88d169719
3 лет назад
Luke Moch
dd51ad2ba2
fail if matrix_synapse_ext_synapse_s3_storage_provider_config_endpoint_url 'not' startswith('http')
3 лет назад
Slavi Pantaleev
d81e7d6328
Make matrix_synapse_ext_synapse_s3_storage_provider_config_endpoint_url required
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2330
3 лет назад
Slavi Pantaleev
3824139908
Rename inject_into_nginx_proxy.yml to init.yml when it does more than injection
3 лет назад
Slavi Pantaleev
f186d6236d
Add some missing tags to Synapse role
Without these:
- `--tags=install-synapse` and `--tags=install-all` would be incomplete
and will not contain Synapse worker configuration
- `--tags=install-synapse-reverse-proxy-companion` and
`--tags=setup-synapse-reverse-proxy-companion` would not contain
Synapse worker configuration
3 лет назад
Slavi Pantaleev
663fe29ddb
Do not specify start_pushers in Synapse config
It's unnecessary when `pusher_instances` is populated.
Source: 6acb6d772a
3 лет назад
Slavi Pantaleev
135bb5af3e
Do not specify send_federation in Synapse config
It's unnecessary when `federation_sender_instances` is populated.
Source: 6acb6d772a
3 лет назад
Slavi Pantaleev
7464604ddd
Make use of matrix_synapse_ext_s3_storage_provider_data_path in a few more places
3 лет назад
Quentin Young
b31731ebf8
fix s3 storage provider not ensuring data dir
This path is accessed by the s3 storage provider stuff and needs to be
ensured.
Broken by 7c5c3aedc
3 лет назад
Slavi Pantaleev
910cd9adf0
Replace import_role calls with include_role calls
3 лет назад
Slavi Pantaleev
2688e8bfc3
Optimize initial installation by not reloading systemd after each .service install
We expect `--tags=start` to handle systemd reloading, so we don't need
to do it manually each time we install/uninstall a .service file.
3 лет назад
Slavi Pantaleev
c928148261
Make uninstall tasks for Synapse delete bin/
3 лет назад
Slavi Pantaleev
7c5c3aedc4
Put s3-storage-provider scripts under /matrix/synapse/ext/s3-storage-provider/bin, not /usr/local/bin
3 лет назад
Slavi Pantaleev
735e7355a5
Rename variable (matrix_synapse_ext_s3_storage_provider_path -> matrix_synapse_ext_s3_storage_provider_base_path)
3 лет назад
Slavi Pantaleev
72744f9db9
/usr/local/bin/matrix-synapse-register-user -> /matrix/synapse/bin/register-user
3 лет назад
Slavi Pantaleev
3d5d843418
Replace some devture_postgres_identifier instances with devture_postgres_connection_hostname
3 лет назад
Slavi Pantaleev
04b9483f0d
Switch from matrix-postgres to com.devture.ansible.role.postgres
3 лет назад
Slavi Pantaleev
dd9ae0d25c
Fix accidentally swapped tags (rust-synapse-compress-state and update-user-password)
3 лет назад
Slavi Pantaleev
a04f6f4e3d
Optimize uninstall tasks a bit
- forego removing Docker images - it's not effective anyway, because it
only removes the last version.. which is a drop in the bucket, usually
- do not reload systemd - it's none of our business. `--tags=start`,
etc., handle this
- combine all uninstall tasks under a single block, which only runs if
we detect traces (a leftover systemd .service file) of the component.
If no such .service is detected, we skip them all. This may lead to
incorect cleanup in rare cases, but is good enough for the most part.
3 лет назад
Slavi Pantaleev
61f67d8f0a
Add install-* tags for quicker runs
3 лет назад
Slavi Pantaleev
663a17ea10
Fix ansible-lint-reported errors
3 лет назад
Slavi Pantaleev
c37cf42427
Do not delete and re-create Synapse worker configs needlessly
We had checks to avoid stopping/deleting systemd services for workers
that used to exist and will continue to exist, but we were deleting
config files for workers each time.. Only to recreate them again later.
This lead to:
- too many misleading "changed" tasks
- too much unnecessary work
- potential failures during playbook execution possibly leaving the
system in a bad state (no worker config files)
3 лет назад
Slavi Pantaleev
2e7b5c7b02
Untangle the setup import/include mess in matrix-synapse
3 лет назад
Slavi Pantaleev
d29b0aeddb
Replace even more import_tasks calls with include_tasks
3 лет назад
Slavi Pantaleev
7c2a7a8eb6
Replace most import_tasks calls with include_tasks for improved performance
3 лет назад
Slavi Pantaleev
07c23b7cb0
Remove matrix_synapse_role_executed and various tasks that check it
This was useful when the order of these roles in relation to Synapse
mattered (when we were injecting stuff into Synapse variables during
runtime). This is no longer the case since 0ea7cb5d1812a88, so all of
this can be removed.
3 лет назад