Slavi Pantaleev
9fb21b89a8
Fix import-postgres/run-postgres-vacuum failures being suppressed
We were only reporting failures for when the async task didn't finish.
We also need to report a failure for when the task finished, but
returned a non-zero exit code.
3 anni fa
Slavi Pantaleev
3fc19295e2
Fix ansible-lint error (ansible.builtin.synchronize -> ansible.posix.synchronize)
3 anni fa
Slavi Pantaleev
30180048c3
Upgrade Synapse (v1.69.0 -> v1.70.1)
3 anni fa
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
3 anni fa
Slavi Pantaleev
cb2fecbea9
Fix some ansible-lint-reported warnings
3 anni fa
Aine
c781bdea99
Update Synapse 1.68.0 -> 1.69.0
3 anni fa
Slavi Pantaleev
30745db6d5
Add storage-class support to the s3_media_upload command and mention matrix-synapse-s3-storage-provider-migrate script
3 anni fa
Slavi Pantaleev
de8fd519c5
Document matrix-synapse-s3-storage-provider-migrate.{service,timer}
3 anni fa
Slavi Pantaleev
2e0fc5c11c
Fix some ansible-lint-reported warnings
3 anni fa
Slavi Pantaleev
fe96475595
Remove some useless PG_ variables fron the s3-storage-provider env-file
These Postgres configuration variables are part of the `database.yaml` file
and don't need to be here.
3 anni fa
Slavi Pantaleev
a3759b0466
Announce Synapse customization and synapse-s3-storage-provider support
3 anni fa
Slavi Pantaleev
ac7cb3619d
Add support for synapse-s3-storage-provider
3 anni fa
Slavi Pantaleev
881fdd28f0
Add support for Synapse container image customization
This allows people to augment the Synapse image with custom tools and
addons without having to rebuild it from scratch.
If customizations are enabled, the playbook will build a new
`localhost/matrixdotorg/synapse:VERSION-customized` image
on top of the default one (`FROM matrixdotorg/synapse:VERSION`)
and with custom Dockerfile build steps.
For servers that self-build the Synapse image, the Synapse image will be
built first, before proceding to extend it the same way.
In the future, we'll also have easy to enable Dockerfile build steps
for modules that the playbook supports.
3 anni fa
Slavi Pantaleev
0da068c7e6
Add support for configuring Synapse's media_storage_providers
In the future, we'll also inject media storage providers that we support
into the `matrix_synapse_media_storage_providers_auto` list.
3 anni fa
Slavi Pantaleev
a12cbeac3b
Fix async commands
Fixes a regression introduced in d1b5681ba0 .
Looks like `.finished` is a property on the main object, not on some
`.async_result` object.
3 anni fa
Slavi Pantaleev
d1b5681ba0
Report async task failures better
We were previously trying to reach into `.rc`,
but there's no such thing if `async_result.finished == 0`.
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2153
3 anni fa
Slavi Pantaleev
5d5642abc5
Upgrade Synapse (v1.67.0 -> v1.68.0)
3 anni fa
Slavi Pantaleev
1ea1597020
Fix some ansible-lint-reported warnings
This mostly fixes `key-order` warnings around
`block` statements.
3 anni fa
Slavi Pantaleev
f623cf3550
Only download Grafana dashboard URLs for enabled services
If someone is using Dendrite and enabling Grafana, we'll no longer
download Synapse dashboards.
If someone is not using node-exporter, we'll no longer download node
exporter dashboards.
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2133
3 anni fa
mjarr
dd8106790e
synapse: match upstream rate limit defaults
3 anni fa
Slavi Pantaleev
89648cf58e
Fix some ansible-lint-reported warnings
3 anni fa
borisrunakov
49c64a8d65
change stream writer worker metrics range start
3 anni fa
Slavi Pantaleev
b07fd76830
Fix prometheus.yml.j2 indentation and worker ids for stream writers
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2105
3 anni fa
Slavi Pantaleev
800267b182
Fix incorrect if checks breaking start_pushers/send_federaiton/enable_media_repo
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2103
3 anni fa
Slavi Pantaleev
109e1addb8
Improve reliability when using more than 1 media_repository worker
3 anni fa
Slavi Pantaleev
8887aed500
Do not add federation_sender_instances/pusher_instances configuration if not necessary
This keeps the configuration cleaner and hopefully prevents odd issues
if Synapse (by any chance) happens to interpret `pusher_instances: []`
as "no pushers", instead of as "push from the master process".
I haven't confirmed what an empty pushers/federation-senders list means,
so it's safer to just avoid it.
3 anni fa
Slavi Pantaleev
a1fb082618
Add support for running background tasks on a worker
3 anni fa
Slavi Pantaleev
5f3f460cda
Restore support for appservice and user_dir workers
3 anni fa
Slavi Pantaleev
8cd7c1ec2f
Relocate enable_media_repo and make it configurable via matrix_synapse_enable_media_repo
.. although.. manual configuration is discouraged in most cases.
3 anni fa
Slavi Pantaleev
b842447047
Add support for multiple pusher workers
3 anni fa
Slavi Pantaleev
22cf259155
Put common worker configuration options at the top
3 anni fa
Slavi Pantaleev
ec654ca91e
Add support for multiple federation sender workers
3 anni fa
Slavi Pantaleev
226c550ffa
Add support for stream writer Synapse workers
As stream writer workers are also powered by the `generic_worker`
Synapse app, this necessitated that we provide means for distinguishing
between them and regular `generic_workers`.
I've also taken the time to optimize nginx configuration generation
(more Jinja2 macro usage, less duplication).
Worker names have also changed.
Workers are now named sequentially like this:
- `matrix-synapse-worker-0-generic`
- `matrix-synapse-worker-1-stream-writer-typing`
- `matrix-synapse-worker-2-pusher`
instead of `matrix-synapse-worker_generic_worker-18111` (indexed with a
port number).
People who modify `matrix_synapse_workers_enabled_list` directly will
need to adjust their configuration.
3 anni fa
Slavi Pantaleev
ef523d68a4
Suppress errors in docker kill/rm calls for Synapse workers
We do the same everywhere else. This is an omission.
3 anni fa
Slavi Pantaleev
f12206676f
Upgrade Synapse (v1.66.0 -> 1.67.0) and remove `frontend_proxy` workers
`frontend_proxy` workers have been superseded by `generic_worker` workers.
Related to https://github.com/matrix-org/synapse/pull/13645
3 anni fa
Slavi Pantaleev
664406af57
Upgrade Synapse (v1.65.0 -> v1.66.0)
3 anni fa
Slavi Pantaleev
8e0e9fa878
Deprecate matrix_synapse_account_threepid_delegates_email before Synapse v1.66.0
This is done in anticipation of this option's removal in the
upcoming Synapse v1.66.0 release (likely tomorrow).
See: https://matrix-org.github.io/synapse/v1.66/upgrade.html#delegation-of-email-validation-no-longer-supported
3 anni fa
Slavi Pantaleev
b196e15796
Fix incorrectly named module arguments (ansible.builtin.group -> group)
Regression since the mass-replace in 34cdaade0 .
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2054
3 anni fa
Shaleen Jain
f674afe5e8
appservice: add and use homeserver_container_* vars ( #2045 )
* appservice: add and use matrix_homeserver_* vars
* appservice: use the new vars
* Apply suggestions from code review
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
3 anni fa
Benjamin Castellan
22db7914e5
added rc_invites configuration for synapse
3 anni fa
Slavi Pantaleev
a9bef3337d
Upgrade Synapse (v1.64.0 -> v1.65.0)
3 anni fa
Aine
01dfbee51e
Update Synapse 1.63.1 -> 1.64.0
3 anni fa
Slavi Pantaleev
89bd25995a
Upgrade Synapse (v1.63.0 -> v1.63.1)
3 anni fa
Aaron Raimist
817830bb3d
Update telemetry documentation to more closely match upstream
Synapse no longer describes the stats as anonymized since the `server_name` is included.
https://github.com/matrix-org/synapse/pull/13321
3 anni fa
Aine
24a027c6b9
Update Synapse 1.62.0 -> 1.63.0
3 anni fa
Slavi Pantaleev
c1849ae888
Fix the remaining var-spacing ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#var-spacing
3 anni fa
Slavi Pantaleev
cac9bf2637
Fix syntax error regression
3 anni fa
Slavi Pantaleev
d073c7ecb3
More ansible-lint fixes
3 anni fa
Slavi Pantaleev
983bf819ef
Explictly set Synapse's worker configuration's owner/permissions
3 anni fa
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
3 anni fa