mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 13:44:16 +00:00
chore(synapse): update pusher config
This commit is contained in:
parent
1153e4e732
commit
411c78b65d
3 changed files with 17 additions and 4 deletions
|
@ -24,6 +24,19 @@
|
|||
federation_sender_instances: "{{ matrix_synapse_worker_fed_senders }}"
|
||||
when: matrix_synapse_workers_federation_out|int > 0
|
||||
|
||||
- name: Merge federation sender costum config into homeserver config
|
||||
- name: Build homeserver pusher override
|
||||
set_fact:
|
||||
matrix_synapse_worker_config: "{{ [ matrix_synapse_worker_config, matrix_synapse_fed_sender_override, matrix_synapse_media_worker_override ] | combine(recursive=True) }}"
|
||||
matrix_synapse_pusher_override:
|
||||
pusher_instances: "worker_pusher"
|
||||
when: matrix_synapse_worker_push
|
||||
|
||||
- name: Merge worker config into homeserver config
|
||||
set_fact:
|
||||
matrix_synapse_worker_config: >-2
|
||||
{{
|
||||
[ matrix_synapse_worker_config,
|
||||
matrix_synapse_media_worker_override,
|
||||
matrix_synapse_fed_sender_override,
|
||||
matrix_synapse_pusher_override
|
||||
] | combine(recursive=True)
|
||||
}}
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
worker_pusher_info: "{{ [ worker_config ] }}"
|
||||
vars:
|
||||
name: "worker_pusher"
|
||||
app: "synapse.app.pusher"
|
||||
app: "synapse.app.generic_worker"
|
||||
config_file: "{{ matrix_synapse_base_path }}/{{ name }}.yaml"
|
||||
worker_labels:
|
||||
labels: "{{ matrix_synapse_worker_labels_base }}"
|
||||
|
|
|
@ -11,12 +11,12 @@ matrix_synapse_config: "{{ matrix_synapse_base_config | combine(matrix_synapse_e
|
|||
# Worker-specific config
|
||||
matrix_synapse_media_worker_override: {}
|
||||
matrix_synapse_fed_sender_override: {}
|
||||
matrix_synapse_pusher_override: {}
|
||||
matrix_synapse_worker_fed_senders: []
|
||||
matrix_synapse_worker_metrics_listener:
|
||||
- type: metrics
|
||||
port: "{{ matrix_synapse_worker_metrics_port }}"
|
||||
matrix_synapse_worker_config:
|
||||
start_pushers: "{{ not matrix_synapse_worker_push }}"
|
||||
notify_appservices: "{{ not matrix_synapse_worker_appservice }}"
|
||||
update_user_directory: "{{ not matrix_synapse_worker_user_search }}"
|
||||
listeners:
|
||||
|
|
Loading…
Reference in a new issue