feat(ess-pro/compose): deploy Element Server Suite Pro via Compose
initial commit of the converted role from helm charts for qubernetis to compose ansible role
This commit is contained in:
parent
c11f019aae
commit
32eca6b923
33 changed files with 1906 additions and 0 deletions
79
roles/ess_pro_compose/tasks/config.yml
Normal file
79
roles/ess_pro_compose/tasks/config.yml
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
# SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# Render every component's configuration. Each template uses _ess_secrets
|
||||
# facts (loaded in secrets.yml) for password substitution.
|
||||
|
||||
- name: Render HAProxy config
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ ess_compose_conf_dir }}/haproxy/{{ item.dest }}"
|
||||
mode: "0640"
|
||||
loop:
|
||||
- { src: haproxy/haproxy.cfg.j2, dest: haproxy.cfg }
|
||||
- { src: haproxy/429.http.j2, dest: 429.http }
|
||||
- { src: haproxy/path_map_file.j2, dest: path_map_file }
|
||||
- { src: haproxy/path_map_file_get.j2, dest: path_map_file_get }
|
||||
- { src: haproxy/admin-allow-ips.lst.j2, dest: admin-allow-ips.lst }
|
||||
notify: Restart haproxy
|
||||
|
||||
- name: Render well-known files
|
||||
ansible.builtin.template:
|
||||
src: "haproxy/well-known/{{ item }}.j2"
|
||||
dest: "{{ ess_compose_conf_dir }}/haproxy/well-known/{{ item }}"
|
||||
mode: "0644"
|
||||
loop:
|
||||
- server
|
||||
- client
|
||||
- support
|
||||
- element.json
|
||||
notify: Restart haproxy
|
||||
|
||||
- name: Render Synapse configs
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ ess_compose_conf_dir }}/synapse/{{ item.dest }}"
|
||||
mode: "0640"
|
||||
loop:
|
||||
- { src: synapse/homeserver.yaml.j2, dest: homeserver.yaml }
|
||||
- { src: synapse/log_config.yaml.j2, dest: log_config.yaml }
|
||||
- { src: synapse/federation-reader.yaml.j2, dest: federation-reader.yaml }
|
||||
no_log: true
|
||||
notify:
|
||||
- Restart synapse-main
|
||||
- Restart synapse-fed-reader
|
||||
|
||||
- name: Render MAS config
|
||||
ansible.builtin.template:
|
||||
src: mas/config.yaml.j2
|
||||
dest: "{{ ess_compose_conf_dir }}/mas/config.yaml"
|
||||
mode: "0640"
|
||||
no_log: true
|
||||
notify: Restart mas
|
||||
|
||||
- name: Render SFU config
|
||||
ansible.builtin.template:
|
||||
src: sfu/config.yaml.j2
|
||||
dest: "{{ ess_compose_conf_dir }}/sfu/config.yaml"
|
||||
mode: "0640"
|
||||
no_log: true
|
||||
notify: Restart matrix-rtc-sfu
|
||||
|
||||
- name: Render Element Web config
|
||||
ansible.builtin.template:
|
||||
src: element-web/config.json.j2
|
||||
dest: "{{ ess_compose_conf_dir }}/element-web/config.json"
|
||||
mode: "0644"
|
||||
notify: Restart element-web
|
||||
|
||||
- name: Render Postgres init script
|
||||
ansible.builtin.template:
|
||||
src: postgres/configure-dbs.sh.j2
|
||||
dest: "{{ ess_compose_conf_dir }}/postgres/configure-dbs.sh"
|
||||
mode: "0755"
|
||||
|
||||
- name: Render Redis config
|
||||
ansible.builtin.template:
|
||||
src: redis/redis.conf.j2
|
||||
dest: "{{ ess_compose_conf_dir }}/redis/redis.conf"
|
||||
mode: "0644"
|
||||
notify: Restart redis
|
||||
Loading…
Add table
Add a link
Reference in a new issue