[refactor] move worker configs into template
This commit is contained in:
parent
9660cb9a51
commit
cde72ad340
5 changed files with 18 additions and 44 deletions
|
@ -63,6 +63,7 @@ runa:
|
||||||
mtx-elem-1.lta.internal.ru.com:
|
mtx-elem-1.lta.internal.ru.com:
|
||||||
matrix_service: "elementweb"
|
matrix_service: "elementweb"
|
||||||
mtx-syna-1.lta.internal.ru.com:
|
mtx-syna-1.lta.internal.ru.com:
|
||||||
|
matrix_service: "synapse"
|
||||||
nfs:
|
nfs:
|
||||||
mounts:
|
mounts:
|
||||||
- src: mtx-storage-1.lta.internal.ru.com:/srv/nfs_synapse
|
- src: mtx-storage-1.lta.internal.ru.com:/srv/nfs_synapse
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
worker_app: synapse.app.generic_worker
|
|
||||||
worker_name: synapse-worker-federation
|
|
||||||
|
|
||||||
worker_log_config: /config/log-worker-federation.yaml
|
|
||||||
|
|
||||||
worker_listeners:
|
|
||||||
- type: http
|
|
||||||
port: 8008
|
|
||||||
x_forwarded: true
|
|
||||||
resources:
|
|
||||||
- names:
|
|
||||||
- client
|
|
||||||
- federation
|
|
||||||
- port: 9000
|
|
||||||
type: metrics
|
|
||||||
tls: false
|
|
||||||
x_forwarded: true
|
|
||||||
resources:
|
|
||||||
- names: [metrics]
|
|
||||||
compress: false
|
|
|
@ -1,20 +0,0 @@
|
||||||
worker_app: synapse.app.generic_worker
|
|
||||||
worker_name: synapse-worker-sync
|
|
||||||
|
|
||||||
worker_log_config: /config/log-worker-sync.yaml
|
|
||||||
|
|
||||||
worker_listeners:
|
|
||||||
- type: http
|
|
||||||
port: 8008
|
|
||||||
x_forwarded: true
|
|
||||||
resources:
|
|
||||||
- names:
|
|
||||||
- client
|
|
||||||
- federation
|
|
||||||
- port: 9000
|
|
||||||
type: metrics
|
|
||||||
tls: false
|
|
||||||
x_forwarded: true
|
|
||||||
resources:
|
|
||||||
- names: [metrics]
|
|
||||||
compress: false
|
|
|
@ -26,10 +26,23 @@
|
||||||
- nginx
|
- nginx
|
||||||
- synapse
|
- synapse
|
||||||
|
|
||||||
|
- name: Create worker configurations
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "synapse/synapse-worker.yaml"
|
||||||
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/config/synapse-worker-{{ item }}.yaml
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
mode: '0644'
|
||||||
|
tags:
|
||||||
|
- log
|
||||||
|
- synapse
|
||||||
|
loop:
|
||||||
|
- generic
|
||||||
|
- federation
|
||||||
|
- sync
|
||||||
- name: Create log configurations
|
- name: Create log configurations
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "nginx/synapse.conf"
|
src: "synapse/log.yaml"
|
||||||
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/config/log-{{ item }}.conf
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/config/log-{{ item }}.yaml
|
||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
worker_app: synapse.app.generic_worker
|
worker_app: synapse.app.generic_worker
|
||||||
worker_name: synapse-worker-generic
|
worker_name: synapse-worker-{{ item }}
|
||||||
|
|
||||||
worker_log_config: /config/log-worker-generic.yaml
|
worker_log_config: /config/log-worker-{{ item }}.yaml
|
||||||
|
|
||||||
worker_listeners:
|
worker_listeners:
|
||||||
- port: 8008
|
- port: 8008
|
Loading…
Reference in a new issue