[refactor] turn homeserver.yaml into template
This commit is contained in:
parent
cde72ad340
commit
428e2065b2
4 changed files with 43 additions and 5 deletions
9
ansible/playbook/docker-compose.yaml
Normal file
9
ansible/playbook/docker-compose.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
- name: Add docker-compose
|
||||||
|
hosts: runa
|
||||||
|
tasks:
|
||||||
|
- name: Add docker-compose
|
||||||
|
include_role:
|
||||||
|
name: docker-compose
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
when: docker_compose or matrix_service
|
9
ansible/playbook/ssl.yaml
Normal file
9
ansible/playbook/ssl.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
- name: Configure RUNA Matrix VMs
|
||||||
|
hosts: runa
|
||||||
|
tasks:
|
||||||
|
- name: SSL Certs
|
||||||
|
include_role:
|
||||||
|
name: ssl-certificates
|
||||||
|
tags:
|
||||||
|
- ssl
|
||||||
|
when: has_ssl_certificates
|
|
@ -15,7 +15,6 @@
|
||||||
tags:
|
tags:
|
||||||
- nginx
|
- nginx
|
||||||
- dir
|
- dir
|
||||||
|
|
||||||
- name: Create nginx config
|
- name: Create nginx config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "nginx/synapse.conf"
|
src: "nginx/synapse.conf"
|
||||||
|
@ -25,7 +24,28 @@
|
||||||
tags:
|
tags:
|
||||||
- nginx
|
- nginx
|
||||||
- synapse
|
- synapse
|
||||||
|
- name: Create config dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/config
|
||||||
|
state: directory
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
mode: '0755'
|
||||||
|
tags:
|
||||||
|
- synapse
|
||||||
|
- dir
|
||||||
|
- name: Create homeserver configuration
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "synapse/homeserver.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 worker configurations
|
- name: Create worker configurations
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "synapse/synapse-worker.yaml"
|
src: "synapse/synapse-worker.yaml"
|
||||||
|
|
|
@ -2332,9 +2332,9 @@ oidc_providers:
|
||||||
scopes: ["openid", "profile"]
|
scopes: ["openid", "profile"]
|
||||||
user_mapping_provider:
|
user_mapping_provider:
|
||||||
config:
|
config:
|
||||||
localpart_template: "{{ user.preferred_username }}"
|
localpart_template: "{{ '{{' }} user.preferred_username {{ '}}' }}"
|
||||||
display_name_template: "{{ user.name }}"
|
display_name_template: "{{ '{{' }} user.name {{ '}}' }}"
|
||||||
subject_template: "{{ user.preferred_username }}"
|
subject_template: "{{ '{{' }} user.preferred_username {{ '}}' }}"
|
||||||
backchannel_logout_enabled: true
|
backchannel_logout_enabled: true
|
||||||
|
|
||||||
password_config:
|
password_config:
|
Loading…
Reference in a new issue