fix(synapse): use appservice group IDs instead of group names

This fixes that the groups aren't available by name in the container
image, so we're using the IDs instead.
This commit is contained in:
Jan Christian Grünhage 2024-05-13 20:33:08 +02:00
parent 4ee415f8e5
commit 2ae5058842
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
2 changed files with 3 additions and 2 deletions

View file

@ -44,7 +44,8 @@
entrypoint: "python" entrypoint: "python"
command: "{{ item.container_command }}" command: "{{ item.container_command }}"
env: "{{ matrix_synapse_docker_env }}" env: "{{ matrix_synapse_docker_env }}"
user: "{{ synapse_user.uid }}:{{ appservice_group.gid }}" user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
groups: "{{ appservice_group.results | map(attribute='gid') }}"
volumes: "{{ matrix_synapse_docker_volumes + item.extra_volumes }}" volumes: "{{ matrix_synapse_docker_volumes + item.extra_volumes }}"
ports: "{{ item.ports | default(omit) }}" ports: "{{ item.ports | default(omit) }}"
healthcheck: healthcheck:

View file

@ -79,7 +79,7 @@
entrypoint: "{{ matrix_synapse_docker_entrypoint }}" entrypoint: "{{ matrix_synapse_docker_entrypoint }}"
command: "{{ matrix_synapse_docker_command }}" command: "{{ matrix_synapse_docker_command }}"
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}" user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
groups: "{{ matrix_synapse_appservice_groups }}" groups: "{{ appservice_group.results | map(attribute='gid') }}"
volumes: "{{ matrix_synapse_docker_volumes }}" volumes: "{{ matrix_synapse_docker_volumes }}"
restart_policy: unless-stopped restart_policy: unless-stopped
state: started state: started