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
matrix:
file: matrix_riot.yml
file: matrix_element.yml
domain: "matrix.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/matrix"
version: v1.80.0
postgres_version: 15-alpine
allowed_sender_domain: true
riot:
element:
domains:
- "riot.{{ base_domain }}"
- "element.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/riot"
volume_folder: "{{ volume_root_folder }}/element"
version: v1.11.28
privatebin:

View file

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