The `ensure-matrix-users-created` tag (part of `just install-all` and `just setup-all`) starts services in the middle of a playbook run:
matrix-user-creator starts the homeserver (or Matrix Authentication Service) and matrix-bot-meowlnir starts itself (pulling in the homeserver and Traefik) before creating bots.
Both of these roles ran before container_socket_proxy and traefik.
On a host where those roles had not run yet (a fresh install, or one whose /var/lib/docker was wiped), this meant:
- the `traefik` and `matrix-container-socket-proxy` container networks did not exist yet,
so starting the homeserver (which joins the `traefik` network) and Traefik failed with "network ... not found"
- even with the networks in place, Traefik's configuration (including the internal Matrix Client API entrypoint
through which addons like Meowlnir reach the homeserver) was missing or stale
The playbook run would then block on the service start, waiting for these failing services' health checks.
Traefik and the container socket proxy do not depend on runtime state produced by other roles (their wiring only uses static variables),
and their install tasks do not start services, so they can safely run early.
They now run right after Postgres and Valkey, similar to how the MASH playbook orders them.
traefik_certs_dumper moves along with Traefik.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tuwunel has no `[global.blurhashing]` configuration section, so rendering it
(the default) only produced an "unknown config parameter" warning on every start.
The related variables are now reported as removed by the role's validation.
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5747
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse v1.165.0 deprecates the `livekit` MatrixRTC transport in favor of
the stable `m.livekit` one. Clients using the latter reach the LiveKit
authorization service through the homeserver, which needs the service
registered as an application service.
When Synapse is the homeserver, run LiveKit JWT Service as such:
register it with Synapse, enable MSC4502 and MSC4512 there, and advertise
`m.livekit` for the SFU the service issues tokens for. The `livekit`
transport stays advertised for clients which don't support `m.livekit`
yet. Other homeservers keep the legacy transport only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse v1.165.0 adds stable MatrixRTC transport discovery and deprecates
the `livekit` transport type in favor of `m.livekit`. Upstream recommends
advertising `m.livekit` for each LiveKit SFU, while keeping the matching
`livekit` entry (with the same `url`) for clients which still need it.
Setting the new `matrix_synapse_matrix_rtc_transports_livekit_sfu_url`
does exactly that. Leaving it empty keeps the previous legacy-only list.
`m.livekit` clients reach the LiveKit authorization service through the
homeserver, which requires the MSC4502 and MSC4512 experimental features.
These get their own variables, like the other flags.
Ref: https://element-hq.github.io/synapse/v1.165/upgrade.html#upgrading-to-v11650
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lk-jwt-service can run as an application service of the homeserver.
This is what serves the stable MatrixRTC LiveKit transport (`m.livekit`):
clients reach the service through the homeserver, which proxies the
`rtc/livekit` endpoints (MSC4512), and the service verifies room
membership through it (MSC4502).
The role now renders the registration file for this when
`matrix_livekit_jwt_service_appservice_enabled` is set. The service reads
its tokens from that same file, so both sides always agree on them.
Wiring the homeserver up is left to the playbook.
The Molecule scenario covers the registration, homeserver token checks
and membership-gated token requests through the proxied endpoint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse v1.165.0 serves the stable `/_matrix/client/v1/rtc/transports`
endpoint (MSC4143) next to the unstable one, on all processes.
Route it like its unstable counterpart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The job refreshed the package database (pacman -Sy) and later installed
packages without upgrading the image's existing ones. Once the
repositories moved on (python now pulling in the new openssl-3 package),
this partial upgrade failed with file conflicts. Install everything in one
full upgrade (pacman -Syu) instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hook reports custom roles' `install-*` tags which have no service group
of the same name, as `just install-service` would not start these services.
Tags of galaxy roles are not checked, because the roles are not available
where the hook runs in CI. Whether a group contains all of a role's services
is not checked either, so the style guide now documents that requirement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`just install-service mautrix-wsproxy` and `just install-service synapse`
installed services which their groups did not contain, so these services
did not get restarted to pick up changes.
The `start-group` and `stop-group` commands for these groups now also
affect the syncproxy, goofys and the S3 storage provider migration timer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`just install-service` starts the group named after the service, but these
services had no such group, so they were installed without being started.
The documentation for the user verification service used the group's name,
which has no install tag, so it started the service without installing it.
It now uses the name which has both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This lists all playbook tags, one per line, without opening role files.
The tags are captured before being processed, so that an Ansible failure
fails the recipe instead of getting lost in a pipe.
Unlike in mash-playbook, the tags are not limited to the services in use
by the inventory, because this playbook does not optimize its roles.
This also drops the mention of the `setup-nginx-proxy` tag, which no
longer exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>