Compare commits

...

3 Commits

Author SHA1 Message Date
uumas
1bfb412cf8 simplify matrix_auto_join_users 2023-07-14 13:59:00 +03:00
uumas
a26da1869b synapse: move worker vars under a subfolder 2023-04-27 16:52:47 +03:00
uumas
89af77a2d1 synapse: move persister_workers from defaults to vars 2023-04-27 16:15:53 +03:00
20 changed files with 14 additions and 23 deletions

View File

@@ -9,10 +9,4 @@ matrix_max_upload_size_mb: 100
synapse_metrics: false synapse_metrics: false
synapse_presence: true synapse_presence: true
persister_workers: matrix_auto_join_rooms: []
- event_persister
- typing_persister
- account_persister
- device_persister
- presence_persister
- receipt_persister

View File

@@ -29,6 +29,7 @@
- listeners - listeners
- server_name - server_name
- url_preview - url_preview
- autojoin
notify: Config matrix target notify: Config matrix target
- name: Ensure synapse configs including secrets is in place - name: Ensure synapse configs including secrets is in place
@@ -43,16 +44,6 @@
- general - general
notify: Config matrix target notify: Config matrix target
- name: Ensure autojoin config is in place
ansible.builtin.template:
src: conf.d/autojoin.yaml.j2
dest: /etc/matrix-synapse/conf.d/autojoin.yaml
owner: matrix-synapse
group: nogroup
mode: 0644
when: matrix_auto_join_rooms is defined
notify: Config matrix target
- name: Ensure password provider config is in place - name: Ensure password provider config is in place
ansible.builtin.template: ansible.builtin.template:
src: conf.d/password_providers.yaml.j2 src: conf.d/password_providers.yaml.j2

View File

@@ -5,13 +5,13 @@
worker_type: "{{ synapse_worker.key }}" worker_type: "{{ synapse_worker.key }}"
- name: Include default variables - name: Include default variables
ansible.builtin.include_vars: defaults.yml ansible.builtin.include_vars: workers/defaults.yml
- name: Include variables for {{ worker_type }} - name: Include variables for {{ worker_type }}
ansible.builtin.include_vars: "{{ item }}" ansible.builtin.include_vars: "{{ item }}"
with_first_found: with_first_found:
- files: - files:
- "{{ worker_type }}.yml" - "workers/{{ worker_type }}.yml"
skip: true skip: true
- name: Warn of legacy workers - name: Warn of legacy workers

View File

@@ -1,6 +1,3 @@
# {{ ansible_managed }} # {{ ansible_managed }}
auto_join_rooms: auto_join_rooms: {{ matrix_auto_join_rooms }}
{% for room_id in matrix_auto_join_rooms %}
- "{{ room_id }}"
{% endfor %}

View File

@@ -0,0 +1,9 @@
---
persister_workers:
- event_persister
- typing_persister
- account_persister
- device_persister
- presence_persister
- receipt_persister