Split config
This commit is contained in:
parent
286b81f692
commit
eed12415f9
4 changed files with 8 additions and 6 deletions
|
@ -38,6 +38,7 @@
|
|||
group: '{{ matrix__synapse__group }}'
|
||||
with_items:
|
||||
- '{{ matrix__synapse__conf_dir }}'
|
||||
- '{{ matrix__synapse__conf_subdir }}'
|
||||
- '{{ matrix__synapse__opt_dir }}'
|
||||
- '{{ matrix__synapse__lib_dir }}'
|
||||
- '{{ matrix__synapse__log_dir }}'
|
||||
|
@ -46,12 +47,13 @@
|
|||
|
||||
- name: Create Matrix Synapse config
|
||||
template:
|
||||
src: '../templates/synapse/config.yml'
|
||||
dest: '{{ matrix__synapse__conf_file }}'
|
||||
src: '../templates/synapse/config/{{ item }}.yaml'
|
||||
dest: '{{ matrix__synapse__conf_subdir }}/{{ item }}.yaml'
|
||||
mode: 'u=rw,g=rw,o='
|
||||
owner: '{{ matrix__synapse__user }}'
|
||||
group: '{{ matrix__synapse__group }}'
|
||||
notify: Load, enable and restart Matrix Synapse
|
||||
with_items: [other]
|
||||
|
||||
- name: Create Matrix Synapse log config
|
||||
template:
|
||||
|
|
|
@ -3,9 +3,9 @@ After=network.target
|
|||
Description=Matrix Synapse
|
||||
|
||||
[Service]
|
||||
ExecReload={{ matrix__synapse__venv_dir }}/bin/synctl restart {{ matrix__synapse__conf_file }}
|
||||
ExecStart={{ matrix__synapse__venv_dir }}/bin/synctl start {{ matrix__synapse__conf_file }}
|
||||
ExecStop={{ matrix__synapse__venv_dir }}/bin/synctl stop {{ matrix__synapse__conf_file }}
|
||||
ExecReload={{ matrix__synapse__venv_dir }}/bin/synctl restart {{ matrix__synapse__conf_subdir }}
|
||||
ExecStart={{ matrix__synapse__venv_dir }}/bin/synctl start {{ matrix__synapse__conf_subdir }}
|
||||
ExecStop={{ matrix__synapse__venv_dir }}/bin/synctl stop {{ matrix__synapse__conf_subdir }}
|
||||
Group={{ matrix__synapse__group }}
|
||||
PIDFile={{ matrix__synapse__pid_file }}
|
||||
Restart=always
|
||||
|
|
|
@ -22,7 +22,7 @@ matrix__synapse__run_dir: '{{ matrix__run_dir }}/synapse'
|
|||
matrix__static__conf_dir: '{{ matrix__conf_dir }}/static'
|
||||
matrix__static__opt_dir: '{{ matrix__opt_dir }}/static'
|
||||
|
||||
matrix__synapse__conf_file: '{{ matrix__synapse__conf_dir }}/config.yml'
|
||||
matrix__synapse__conf_subdir: '{{ matrix__synapse__conf_dir }}/config'
|
||||
matrix__synapse__log_conf_file: '{{ matrix__synapse__conf_dir }}/log_config.yml'
|
||||
matrix__synapse__key_file: '{{ matrix__synapse__conf_dir }}/signing_key'
|
||||
matrix__synapse__venv_dir: '{{ matrix__synapse__opt_dir }}/venv'
|
||||
|
|
Reference in a new issue