mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-02-28 18:03:10 +00:00
Remove synapse-auto-invite-accept (#4943)
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_enabled`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_version`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users`
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Remove roles/custom/matrix-synapse/tasks/ext/synapse-auto-accept-invite
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update README.md
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update container-images.md
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update configuring-playbook.md
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update configuring-playbook-synapse-auto-accept-invite.md
Reuse bf744319e0/docs/configuring-playbook-sliding-sync-proxy.md
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update validate_config.yml
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
* Update CHANGELOG.md
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
---------
Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
Co-authored-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
This commit is contained in:
@@ -8,6 +8,14 @@ Along with the relocation, the `matrix_prometheus_nginxlog_exporter_` prefix on
|
|||||||
|
|
||||||
As always, the playbook would let you know about this and point out any variables you may have missed.
|
As always, the playbook would let you know about this and point out any variables you may have missed.
|
||||||
|
|
||||||
|
## synapse-auto-invite-accept has been removed from the playbook
|
||||||
|
|
||||||
|
[synapse-auto-invite-accept](./docs/configuring-playbook-synapse-auto-accept-invite.md) has been removed from the playbook, as the same functionality [has been integrated](https://github.com/element-hq/synapse/pull/17147) to Synapse since [v1.109.0](https://github.com/element-hq/synapse/releases/tag/v1.109.0).
|
||||||
|
|
||||||
|
See [this section](./docs/configuring-playbook-synapse-auto-accept-invite.md#native-alternative) for details about how to enable the function on Synapse.
|
||||||
|
|
||||||
|
If you're using any `matrix_synapse_ext_synapse_auto_accept_invite_*` variables, the playbook will let you know which one you'll need to remove from `vars.yml`.
|
||||||
|
|
||||||
# 2026-02-16
|
# 2026-02-16
|
||||||
|
|
||||||
## matrix-appservice-slack has been removed from the playbook
|
## matrix-appservice-slack has been removed from the playbook
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ Various services that don't fit any other categories.
|
|||||||
|
|
||||||
| Name | Default? | Description | Documentation |
|
| Name | Default? | Description | Documentation |
|
||||||
| ---- | -------- | ----------- | ------------- |
|
| ---- | -------- | ----------- | ------------- |
|
||||||
| [synapse_auto_accept_invite](https://github.com/matrix-org/synapse-auto-accept-invite) | ❌ | Synapse module to automatically accept invites | [Link](docs/configuring-playbook-synapse-auto-accept-invite.md) |
|
|
||||||
| [synapse_auto_compressor](https://github.com/matrix-org/rust-synapse-compress-state/#automated-tool-synapse_auto_compressor) | ❌ | Cli tool that automatically compresses `state_groups` database table in background | [Link](docs/configuring-playbook-synapse-auto-compressor.md) |
|
| [synapse_auto_compressor](https://github.com/matrix-org/rust-synapse-compress-state/#automated-tool-synapse_auto_compressor) | ❌ | Cli tool that automatically compresses `state_groups` database table in background | [Link](docs/configuring-playbook-synapse-auto-compressor.md) |
|
||||||
| [Matrix Corporal](https://github.com/devture/matrix-corporal) (advanced) | ❌ | Reconciliator and gateway for a managed Matrix server | [Link](docs/configuring-playbook-matrix-corporal.md) |
|
| [Matrix Corporal](https://github.com/devture/matrix-corporal) (advanced) | ❌ | Reconciliator and gateway for a managed Matrix server | [Link](docs/configuring-playbook-matrix-corporal.md) |
|
||||||
| [Matrix.to](https://github.com/matrix-org/matrix.to) | ❌ | Simple URL redirection service for the Matrix ecosystem | [Link](docs/configuring-playbook-matrixto.md) |
|
| [Matrix.to](https://github.com/matrix-org/matrix.to) | ❌ | Simple URL redirection service for the Matrix ecosystem | [Link](docs/configuring-playbook-matrixto.md) |
|
||||||
|
|||||||
@@ -1,45 +1,26 @@
|
|||||||
<!--
|
<!--
|
||||||
SPDX-FileCopyrightText: 2024 MDAD project contributors
|
SPDX-FileCopyrightText: 2019 Eduardo Beltrame
|
||||||
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
|
SPDX-FileCopyrightText: 2019-2025 Slavi Pantaleev
|
||||||
SPDX-FileCopyrightText: 2024 Suguru Hirahara
|
SPDX-FileCopyrightText: 2020 Tulir Asokan
|
||||||
|
SPDX-FileCopyrightText: 2021, 2024 MDAD project contributors
|
||||||
|
SPDX-FileCopyrightText: 2022 Dennis Ciba
|
||||||
|
SPDX-FileCopyrightText: 2022 Vladimir Panteleev
|
||||||
|
SPDX-FileCopyrightText: 2023 Justin Croonenberghs
|
||||||
|
SPDX-FileCopyrightText: 2023 Kuba Orlik
|
||||||
|
SPDX-FileCopyrightText: 2023 Pierre 'McFly' Marty
|
||||||
|
SPDX-FileCopyrightText: 2023 Samuel Meenzen
|
||||||
|
SPDX-FileCopyrightText: 2024 Fabio Bonelli
|
||||||
|
SPDX-FileCopyrightText: 2024-2026 Suguru Hirahara
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# Setting up Synapse Auto Invite Accept (optional)
|
# Setting up Synapse Auto Invite Accept (optional, removed)
|
||||||
|
|
||||||
The playbook can install and configure [synapse-auto-invite-accept](https://github.com/matrix-org/synapse-auto-accept-invite) for you.
|
🪦 The playbook used to be able to install and configure [synapse-auto-invite-accept](https://github.com/matrix-org/synapse-auto-accept-invite), but no longer includes this component, as the same functionality [has been integrated](https://github.com/element-hq/synapse/pull/17147) to Synapse since [v1.109.0](https://github.com/element-hq/synapse/releases/tag/v1.109.0).
|
||||||
|
|
||||||
In short, it automatically accepts room invites. You can specify that only 1:1 room invites are auto-accepted. Defaults to false if not specified.
|
|
||||||
|
|
||||||
See the project's [documentation](https://github.com/matrix-org/synapse-auto-accept-invite/blob/main/README.md) to learn what it does and why it might be useful to you.
|
|
||||||
|
|
||||||
**Note**: Synapse [v1.109.0](https://github.com/element-hq/synapse/releases/tag/v1.109.0), the same feature [has been merged](https://github.com/element-hq/synapse/pull/17147) into Synapse (see the [Native alternative](#native-alternative) section below). You'd better use the native feature, instead of the [synapse-auto-invite-accept](https://github.com/matrix-org/synapse-auto-accept-invite) 3rd party module.
|
|
||||||
|
|
||||||
## Adjusting the playbook configuration
|
|
||||||
|
|
||||||
If you decide that you'd like to let this playbook install the [synapse-auto-invite-accept](https://github.com/matrix-org/synapse-auto-accept-invite module for you, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_enabled: true
|
|
||||||
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### Synapse worker deployments
|
|
||||||
|
|
||||||
In a [workerized Synapse deployment](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/c9a842147e09647c355799ca024d65a5de66b099/docs/configuring-playbook-synapse.md#load-balancing-with-workers) it is possible to run this module on a worker to reduce the load on the main process (Default is `null`). For example, add this to your configuration:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on: 'matrix-synapse-worker-generic-0'
|
|
||||||
```
|
|
||||||
|
|
||||||
There might be an [issue with federation](https://github.com/matrix-org/synapse-auto-accept-invite/issues/18).
|
|
||||||
|
|
||||||
## Native alternative
|
## Native alternative
|
||||||
|
|
||||||
Since Synapse [v1.109.0](https://github.com/element-hq/synapse/releases/tag/v1.109.0), the functionality provided by the [synapse-auto-invite-accept](https://github.com/matrix-org/synapse-auto-accept-invite) 3rd party module [has been made](https://github.com/element-hq/synapse/pull/17147) part of Synapse.
|
|
||||||
|
|
||||||
Here's example configuration for using the **native** Synapse feature:
|
Here's example configuration for using the **native** Synapse feature:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@@ -233,8 +233,6 @@ Various services that don't fit any other categories.
|
|||||||
|
|
||||||
- [Setting up Matrix RTC](configuring-playbook-matrix-rtc.md) (optional)
|
- [Setting up Matrix RTC](configuring-playbook-matrix-rtc.md) (optional)
|
||||||
|
|
||||||
- [Setting up Synapse Auto Invite Accept](configuring-playbook-synapse-auto-accept-invite.md)
|
|
||||||
|
|
||||||
- [Setting up synapse-auto-compressor](configuring-playbook-synapse-auto-compressor.md) for compressing the database on Synapse homeservers
|
- [Setting up synapse-auto-compressor](configuring-playbook-synapse-auto-compressor.md) for compressing the database on Synapse homeservers
|
||||||
|
|
||||||
- [Setting up Matrix Corporal](configuring-playbook-matrix-corporal.md) (advanced)
|
- [Setting up Matrix Corporal](configuring-playbook-matrix-corporal.md) (advanced)
|
||||||
@@ -290,3 +288,5 @@ Various services that don't fit any other categories.
|
|||||||
- [Setting up MX Puppet Slack bridging](configuring-playbook-bridge-mx-puppet-slack.md) (removed; this component has been unmaintained for a long time, so it has been removed from the playbook. Consider [setting up Mautrix Slack bridging](configuring-playbook-bridge-mautrix-slack.md))
|
- [Setting up MX Puppet Slack bridging](configuring-playbook-bridge-mx-puppet-slack.md) (removed; this component has been unmaintained for a long time, so it has been removed from the playbook. Consider [setting up Mautrix Slack bridging](configuring-playbook-bridge-mautrix-slack.md))
|
||||||
|
|
||||||
- [Setting up MX Puppet Twitter bridging](configuring-playbook-bridge-mx-puppet-twitter.md) (removed; this component has been unmaintained for a long time, so it has been removed from the playbook. Consider [setting up Mautrix Twitter bridging](configuring-playbook-bridge-mautrix-twitter.md))
|
- [Setting up MX Puppet Twitter bridging](configuring-playbook-bridge-mx-puppet-twitter.md) (removed; this component has been unmaintained for a long time, so it has been removed from the playbook. Consider [setting up Mautrix Twitter bridging](configuring-playbook-bridge-mautrix-twitter.md))
|
||||||
|
|
||||||
|
- [Setting up Synapse Auto Invite Accept](configuring-playbook-synapse-auto-accept-invite.md) (removed; since Synapse [v1.109.0](https://github.com/element-hq/synapse/releases/tag/v1.109.0) the same feature is available natively.)
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ Various services that don't fit any other categories.
|
|||||||
|
|
||||||
| Service | Container image | Default? | Description |
|
| Service | Container image | Default? | Description |
|
||||||
| ------- | --------------- | -------- | ----------- |
|
| ------- | --------------- | -------- | ----------- |
|
||||||
| [synapse_auto_accept_invite](configuring-playbook-synapse-auto-accept-invite.md) | (N/A) | ❌ | Synapse module to automatically accept invites |
|
|
||||||
| [synapse_auto_compressor](configuring-playbook-synapse-auto-compressor.md) | [mb-saces/rust-synapse-tools](https://gitlab.com/mb-saces/rust-synapse-tools/container_registry) | ❌ | Cli tool that automatically compresses Synapse's `state_groups` database table in background |
|
| [synapse_auto_compressor](configuring-playbook-synapse-auto-compressor.md) | [mb-saces/rust-synapse-tools](https://gitlab.com/mb-saces/rust-synapse-tools/container_registry) | ❌ | Cli tool that automatically compresses Synapse's `state_groups` database table in background |
|
||||||
| [Matrix Corporal](configuring-playbook-matrix-corporal.md) (advanced) | [devture/matrix-corporal](https://hub.docker.com/r/devture/matrix-corporal/) | ❌ | Reconciliator and gateway for a managed Matrix server |
|
| [Matrix Corporal](configuring-playbook-matrix-corporal.md) (advanced) | [devture/matrix-corporal](https://hub.docker.com/r/devture/matrix-corporal/) | ❌ | Reconciliator and gateway for a managed Matrix server |
|
||||||
| [Etherpad](configuring-playbook-etherpad.md) | [etherpad/etherpad](https://hub.docker.com/r/etherpad/etherpad/) | ❌ | Open source collaborative text editor |
|
| [Etherpad](configuring-playbook-etherpad.md) | [etherpad/etherpad](https://hub.docker.com/r/etherpad/etherpad/) | ❌ | Open source collaborative text editor |
|
||||||
@@ -185,3 +184,4 @@ The list of the deprecated or unmaintained services is available [here](configur
|
|||||||
| [mx-puppet-slack](configuring-playbook-bridge-mx-puppet-slack.md) | [mx-puppet/slack/mx-puppet-slack](https://gitlab.com/mx-puppet/slack/mx-puppet-slack/container_registry) | ❌ | Bridge to [Slack](https://slack.com) |
|
| [mx-puppet-slack](configuring-playbook-bridge-mx-puppet-slack.md) | [mx-puppet/slack/mx-puppet-slack](https://gitlab.com/mx-puppet/slack/mx-puppet-slack/container_registry) | ❌ | Bridge to [Slack](https://slack.com) |
|
||||||
| [mx-puppet-twitter](configuring-playbook-bridge-mx-puppet-twitter.md) | [sorunome/mx-puppet-twitter](https://hub.docker.com/r/sorunome/mx-puppet-twitter) | ❌ | Bridge for Twitter-DMs ([Twitter](https://twitter.com/)) |
|
| [mx-puppet-twitter](configuring-playbook-bridge-mx-puppet-twitter.md) | [sorunome/mx-puppet-twitter](https://hub.docker.com/r/sorunome/mx-puppet-twitter) | ❌ | Bridge for Twitter-DMs ([Twitter](https://twitter.com/)) |
|
||||||
| [sliding-sync](configuring-playbook-sliding-sync-proxy.md) | [matrix-org/sliding-sync](https://ghcr.io/matrix-org/sliding-sync) | ❌ | Sliding Sync support for clients which require it (like old Element X versions, before it got switched to Simplified Sliding Sync) |
|
| [sliding-sync](configuring-playbook-sliding-sync-proxy.md) | [matrix-org/sliding-sync](https://ghcr.io/matrix-org/sliding-sync) | ❌ | Sliding Sync support for clients which require it (like old Element X versions, before it got switched to Simplified Sliding Sync) |
|
||||||
|
| [synapse_auto_accept_invite](configuring-playbook-synapse-auto-accept-invite.md) | (N/A) | ❌ | Synapse module to automatically accept invites |
|
||||||
|
|||||||
@@ -40,18 +40,12 @@ matrix_synapse_container_image_customizations_enabled: |-
|
|||||||
matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled
|
matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled
|
||||||
or
|
or
|
||||||
matrix_synapse_container_image_customizations_templates_enabled
|
matrix_synapse_container_image_customizations_templates_enabled
|
||||||
or
|
|
||||||
matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# Controls whether custom build steps will be added to the Dockerfile for installing s3-storage-provider.
|
# Controls whether custom build steps will be added to the Dockerfile for installing s3-storage-provider.
|
||||||
# The version that will be installed is specified in `matrix_synapse_ext_synapse_s3_storage_provider_version`.
|
# The version that will be installed is specified in `matrix_synapse_ext_synapse_s3_storage_provider_version`.
|
||||||
matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled: "{{ matrix_synapse_ext_synapse_s3_storage_provider_enabled }}"
|
matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled: "{{ matrix_synapse_ext_synapse_s3_storage_provider_enabled }}"
|
||||||
|
|
||||||
# Controls whether custom build steps will be added to the Dockerfile for installing auto-accept-invite module.
|
|
||||||
# The version that will be installed is specified in `matrix_synapse_ext_synapse_auto_accept_invite_version`.
|
|
||||||
matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled: "{{ matrix_synapse_ext_synapse_auto_accept_invite_enabled }}"
|
|
||||||
|
|
||||||
# Controls whether custom build steps will be added to the Dockerfile for customizing the email templates used by Synapse.
|
# Controls whether custom build steps will be added to the Dockerfile for customizing the email templates used by Synapse.
|
||||||
#
|
#
|
||||||
# Example usage:
|
# Example usage:
|
||||||
@@ -665,7 +659,6 @@ matrix_synapse_auto_join_mxid_localpart: ''
|
|||||||
|
|
||||||
# Controls whether room invites will be accepted on behalf of users.
|
# Controls whether room invites will be accepted on behalf of users.
|
||||||
# See: https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#auto-accept-invites
|
# See: https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#auto-accept-invites
|
||||||
# This should not be used together with the `synapse_auto_accept_invite` module (see `matrix_synapse_ext_synapse_auto_accept_invite_enabled`).
|
|
||||||
# Also see:
|
# Also see:
|
||||||
# - `matrix_synapse_auto_accept_invites_only_for_direct_messages`
|
# - `matrix_synapse_auto_accept_invites_only_for_direct_messages`
|
||||||
# - `matrix_synapse_auto_accept_invites_only_from_local_users`
|
# - `matrix_synapse_auto_accept_invites_only_from_local_users`
|
||||||
@@ -1550,23 +1543,6 @@ matrix_synapse_ext_synapse_s3_storage_provider_migrate_systemd_required_services
|
|||||||
# List of systemd services that matrix-synapse-s3-storage-provider-migrate.service wants
|
# List of systemd services that matrix-synapse-s3-storage-provider-migrate.service wants
|
||||||
matrix_synapse_ext_synapse_s3_storage_provider_migrate_systemd_wanted_services_list: []
|
matrix_synapse_ext_synapse_s3_storage_provider_migrate_systemd_wanted_services_list: []
|
||||||
|
|
||||||
# Synapse module to automatically accept room invites.
|
|
||||||
#
|
|
||||||
# Since Synapse v1.109.0 (https://github.com/element-hq/synapse/pull/17147),
|
|
||||||
# this functionality has been merged into Synapse. See `matrix_synapse_auto_accept_invites_enabled`.
|
|
||||||
#
|
|
||||||
# See: https://github.com/matrix-org/synapse-auto-accept-invite
|
|
||||||
# Installing it requires building a customized Docker image for Synapse (see `matrix_synapse_container_image_customizations_enabled`).
|
|
||||||
# Enabling this will enable customizations and inject the appropriate Dockerfile clauses for installing synapse-auto-accept-invite.
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_enabled: false
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_version: 1.1.3
|
|
||||||
# Specifies whether only direct messages (1:1 rooms) will be auto accepted.
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages: false
|
|
||||||
# Specifies whether only invites from local users will be auto accepted.
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users: false
|
|
||||||
# When Synapse workers enabled it is possible (but not required) to assign a worker to run this module on (null = main process).
|
|
||||||
matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on: null
|
|
||||||
|
|
||||||
# Specifies whether an external media repository is enabled.
|
# Specifies whether an external media repository is enabled.
|
||||||
# If it is, the Synapse media repo and media-repo workers will be disabled automatically.
|
# If it is, the Synapse media repo and media-repo workers will be disabled automatically.
|
||||||
matrix_synapse_ext_media_repo_enabled: false
|
matrix_synapse_ext_media_repo_enabled: false
|
||||||
|
|||||||
@@ -91,13 +91,3 @@
|
|||||||
|
|
||||||
- when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
|
- when: matrix_synapse_ext_synapse_s3_storage_provider_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/s3-storage-provider/setup_install.yml"
|
||||||
|
|
||||||
# synapse-auto-accept-invite
|
|
||||||
- tags:
|
|
||||||
- setup-all
|
|
||||||
- setup-synapse
|
|
||||||
- install-all
|
|
||||||
- install-synapse
|
|
||||||
block:
|
|
||||||
- when: matrix_synapse_ext_synapse_auto_accept_invite_enabled | bool
|
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/synapse-auto-accept-invite/setup_install.yml"
|
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 MDAD project contributors
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
matrix_synapse_modules: |
|
|
||||||
{{
|
|
||||||
matrix_synapse_modules | default([])
|
|
||||||
+
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"module": "synapse_auto_accept_invite.InviteAutoAccepter",
|
|
||||||
"config": {
|
|
||||||
"accept_invites_only_for_direct_messages": matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages,
|
|
||||||
"accept_invites_only_from_local_users": matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users,
|
|
||||||
"worker_to_run_on": matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on,
|
|
||||||
},
|
|
||||||
}]
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrix_synapse_additional_loggers_auto: >
|
|
||||||
{{
|
|
||||||
matrix_synapse_additional_loggers_auto
|
|
||||||
+
|
|
||||||
[{'name': 'synapse_auto_accept_invite', 'level': 'INFO'}]
|
|
||||||
}}
|
|
||||||
@@ -151,18 +151,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- matrix_synapse_container_image_customizations_templates_git_repository_keyscan_hostname
|
- matrix_synapse_container_image_customizations_templates_git_repository_keyscan_hostname
|
||||||
|
|
||||||
|
|
||||||
- name: Fail when auto-accept-invite enabled as a native feature and a module at the same time
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: >-
|
|
||||||
Your configuration enables the auto-accept invites feature both as a native Synapse feature (`matrix_synapse_auto_accept_invites_enabled`) and a 3rd party module (`matrix_synapse_ext_synapse_auto_accept_invite_enabled`).
|
|
||||||
This is unnecessary, since they both do the same and the native feature is built on top of the 3rd party module anyway.
|
|
||||||
Enabling both at the same time will lead to issues.
|
|
||||||
We recommend leaving `matrix_synapse_auto_accept_invites_enabled` in your configuration and removing `matrix_synapse_ext_synapse_auto_accept_invite_enabled`.
|
|
||||||
when:
|
|
||||||
- matrix_synapse_auto_accept_invites_enabled
|
|
||||||
- matrix_synapse_ext_synapse_auto_accept_invite_enabled
|
|
||||||
|
|
||||||
- name: Fail if known Synapse password provider modules are enabled when auth is delegated to Matrix Authentication Service
|
- name: Fail if known Synapse password provider modules are enabled when auth is delegated to Matrix Authentication Service
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it does not make sense to enable password provider modules, because it is not Synapse that is handling authentication. Please disable {{ item }} before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise."
|
msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it does not make sense to enable password provider modules, because it is not Synapse that is handling authentication. Please disable {{ item }} before enabling Matrix Authentication Service integration for Synapse. Synapse will refuse to start otherwise."
|
||||||
|
|||||||
@@ -40,10 +40,6 @@ RUN chown -R {{ matrix_synapse_uid }}:{{ matrix_synapse_gid }} {{ matrix_synapse
|
|||||||
|
|
||||||
FROM {{ matrix_synapse_docker_image }}
|
FROM {{ matrix_synapse_docker_image }}
|
||||||
|
|
||||||
{% if matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled %}
|
|
||||||
RUN pip install synapse-auto-accept-invite=={{ matrix_synapse_ext_synapse_auto_accept_invite_version }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled %}
|
{% if matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled %}
|
||||||
RUN pip install synapse-s3-storage-provider=={{ matrix_synapse_ext_synapse_s3_storage_provider_version }}
|
RUN pip install synapse-s3-storage-provider=={{ matrix_synapse_ext_synapse_s3_storage_provider_version }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -831,3 +831,15 @@
|
|||||||
|
|
||||||
The following variables in your configuration need to be removed: {{ lookup('ansible.builtin.varnames', '^matrix_sliding_sync_.+', wantlist=True) | join(', ') }}
|
The following variables in your configuration need to be removed: {{ lookup('ansible.builtin.varnames', '^matrix_sliding_sync_.+', wantlist=True) | join(', ') }}
|
||||||
when: "lookup('ansible.builtin.varnames', '^matrix_sliding_sync_.+', wantlist=True) | length > 0"
|
when: "lookup('ansible.builtin.varnames', '^matrix_sliding_sync_.+', wantlist=True) | length > 0"
|
||||||
|
|
||||||
|
- name: (Deprecation) Catch and report the synapse-auto-invite-accept variables
|
||||||
|
ansible.builtin.fail:
|
||||||
|
msg: |-
|
||||||
|
synapse-auto-invite-accept was completely removed from the playbook in February 2026, as the same functionality is available since Synapse v1.109.0.
|
||||||
|
|
||||||
|
Please remove all `matrix_synapse_ext_synapse_auto_accept_invite_*` variables from your configuration file (vars.yml).
|
||||||
|
|
||||||
|
To enable the native feature, see `docs/configuring-playbook-synapse-auto-accept-invite.md` for more information.
|
||||||
|
|
||||||
|
The following variables in your configuration need to be removed: {{ lookup('ansible.builtin.varnames', '^matrix_synapse_ext_synapse_auto_accept_invite_.+', wantlist=True) | join(', ') }}
|
||||||
|
when: "lookup('ansible.builtin.varnames', '^matrix_synapse_ext_synapse_auto_accept_invite_.+', wantlist=True) | length > 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user