Rename Riot to Element globally

This commit is contained in:
Sam A. 2023-04-08 00:35:49 +02:00
parent f1df97ca04
commit d2681c27a0
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA
5 changed files with 22 additions and 22 deletions

View file

@ -92,18 +92,18 @@ services:
allowed_sender_domain: true allowed_sender_domain: true
matrix: matrix:
file: matrix_riot.yml file: matrix_element.yml
domain: "matrix.{{ base_domain }}" domain: "matrix.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/matrix" volume_folder: "{{ volume_root_folder }}/matrix"
version: v1.80.0 version: v1.80.0
postgres_version: 15-alpine postgres_version: 15-alpine
allowed_sender_domain: true allowed_sender_domain: true
riot: element:
domains: domains:
- "riot.{{ base_domain }}" - "riot.{{ base_domain }}"
- "element.{{ base_domain }}" - "element.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/riot" volume_folder: "{{ volume_root_folder }}/element"
version: v1.11.28 version: v1.11.28
privatebin: privatebin:

View file

@ -1,6 +1,6 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
--- ---
- name: create matrix volume folders - name: Create Matrix volume folders
file: file:
name: "{{ services.matrix.volume_folder }}/{{ volume }}" name: "{{ services.matrix.volume_folder }}/{{ volume }}"
state: directory state: directory
@ -13,42 +13,42 @@
loop_control: loop_control:
loop_var: volume loop_var: volume
- name: create matrix DB folder - name: Create Matrix DB folder
file: file:
name: "{{ services.matrix.volume_folder }}/db" name: "{{ services.matrix.volume_folder }}/db"
state: "directory" state: "directory"
- name: create riot volume folders - name: Create Element volume folders
file: file:
name: "{{ services.riot.volume_folder }}/{{ volume }}" name: "{{ services.element.volume_folder }}/{{ volume }}"
state: directory state: directory
loop: loop:
- "data" - "data"
loop_control: loop_control:
loop_var: volume loop_var: volume
- name: upload riot config.json - name: Upload Element config.json
template: template:
src: files/configs/riot/config.json src: files/configs/element/config.json
dest: "{{ services.riot.volume_folder }}/data/config.json" dest: "{{ services.element.volume_folder }}/data/config.json"
- name: upload riot.im.conf - name: Upload Element riot.im.conf
template: template:
src: files/configs/riot/riot.im.conf src: files/configs/element/riot.im.conf
dest: "{{ services.riot.volume_folder }}/data/riot.im.conf" dest: "{{ services.element.volume_folder }}/data/riot.im.conf"
- name: upload vhost config for matrix domain - name: upload vhost config for matrix domain
template: template:
src: files/configs/matrix/vhost-matrix src: files/configs/matrix/vhost-matrix
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.matrix.domain }}" dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.matrix.domain }}"
- name: upload vhost config for riot domain - name: Upload vhost config for Element domain
template: template:
src: files/configs/matrix/vhost-riot src: files/configs/matrix/vhost-element
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ item }}" dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ item }}"
loop: "{{ services.riot.domains }}" loop: "{{ services.element.domains }}"
- name: upload homeserver.yaml - name: Upload homeserver.yaml
template: template:
src: "files/configs/matrix/homeserver.yaml.j2" src: "files/configs/matrix/homeserver.yaml.j2"
dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml" dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml"
@ -58,7 +58,7 @@
src: "files/configs/matrix/matrix.data.coop.log.config" src: "files/configs/matrix/matrix.data.coop.log.config"
dest: "{{ services.matrix.volume_folder }}/data/matrix.data.coop.log.config" dest: "{{ services.matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: set up matrix and riot - name: Set up Matrix and Element
docker_compose: docker_compose:
project_name: matrix project_name: matrix
pull: true pull: true
@ -94,7 +94,7 @@
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
element: element:
image: "avhost/docker-matrix-riot:{{ services.riot.version }}" image: "avhost/docker-matrix-element:{{ services.element.version }}"
restart: unless-stopped restart: unless-stopped
networks: networks:
- matrix - matrix
@ -102,11 +102,11 @@
expose: expose:
- 8080 - 8080
volumes: volumes:
- "{{ services.riot.volume_folder }}/data:/data" - "{{ services.element.volume_folder }}/data:/data"
environment: environment:
VIRTUAL_HOST: "{{ services.riot.domains | join(',') }}" VIRTUAL_HOST: "{{ services.element.domains | join(',') }}"
VIRTUAL_PORT: "8080" VIRTUAL_PORT: "8080"
LETSENCRYPT_HOST: "{{ services.riot.domains | join(',') }}" LETSENCRYPT_HOST: "{{ services.element.domains | join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
networks: networks: