Merge branch 'master' into pub.solar
This commit is contained in:
commit
32efa25ba7
22
CHANGELOG.md
22
CHANGELOG.md
|
@ -1,3 +1,25 @@
|
||||||
|
# 2020-11-13
|
||||||
|
|
||||||
|
## Breaking change matrix-sms-bridge
|
||||||
|
|
||||||
|
The new version of [matrix-sms-bridge](https://github.com/benkuly/matrix-sms-bridge) changed its database from neo4j to h2. You need to sync the bridge at the first start. Note that this only will sync rooms where the @smsbot:yourServer is member. For rooms without @smsbot:yourServer you need to kick and invite the telephone number **or** invite @smsbot:yourServer.
|
||||||
|
|
||||||
|
1. Add the following to your `vars.yml` file: `matrix_sms_bridge_container_extra_arguments=['--env SPRING_PROFILES_ACTIVE=initialsync']`
|
||||||
|
2. Login to your host shell and remove old systemd file from your host: `rm /etc/systemd/system/matrix-sms-bridge-database.service`
|
||||||
|
2. Run `ansible-playbook -i inventory/hosts setup.yml --tags=setup-matrix-sms-bridge,start`
|
||||||
|
3. Login to your host shell and check the logs with `journalctl -u matrix-sms-bridge` until the sync finished.
|
||||||
|
4. Remove the var from the first step.
|
||||||
|
5. Run `ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start`.
|
||||||
|
|
||||||
|
# 2020-11-10
|
||||||
|
|
||||||
|
## Dynamic DNS support
|
||||||
|
|
||||||
|
Thanks to [Scott Crossen](https://github.com/scottcrossen), the playbook can now manage Dynamic DNS for you using [ddclient](https://ddclient.net/).
|
||||||
|
|
||||||
|
To learn more, follow our [Dynamic DNS docs page](docs/configuring-playbook-dynamic-dns.md).
|
||||||
|
|
||||||
|
|
||||||
# 2020-10-28
|
# 2020-10-28
|
||||||
|
|
||||||
## (Compatibility Break) https://matrix.DOMAIN/ now redirects to https://element.DOMAIN/
|
## (Compatibility Break) https://matrix.DOMAIN/ now redirects to https://element.DOMAIN/
|
||||||
|
|
27
docs/configuring-playbook-dynamic-dns.md
Normal file
27
docs/configuring-playbook-dynamic-dns.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Dynamic DNS
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Most cloud providers / ISPs will charge you extra for a static IP address. If you're
|
||||||
|
not hosting a highly reliable homeserver you can workaround this via dynamic DNS. To
|
||||||
|
set this up, you'll need to get the username/password from your DNS provider. For
|
||||||
|
google domains, this process is described [here](https://support.google.com/domains/answer/6147083).
|
||||||
|
After you've gotten the proper credentials you can add the following config to your `inventory/host_vars/matrix.DOMAIN/vars.yml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
matrix_dynamic_dns_enabled: true
|
||||||
|
|
||||||
|
matrix_dynamic_dns_domain_configurations:
|
||||||
|
- provider: domains.google.com
|
||||||
|
protocol: dyndn2
|
||||||
|
username: XXXXXXXXXXXXXXXX
|
||||||
|
password: XXXXXXXXXXXXXXXX
|
||||||
|
domain: "{{ matrix_domain }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Additional Reading
|
||||||
|
|
||||||
|
Additional resources:
|
||||||
|
|
||||||
|
- https://matrix.org/docs/guides/free-small-matrix-server
|
|
@ -23,3 +23,12 @@ matrix_nginx_proxy_proxy_matrix_nginx_status_allowed_addresses:
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Synapse + OpenID Connect for Single-Sign-On
|
||||||
|
|
||||||
|
If you want to use OpenID Connect as an SSO provider (as per the [Synapse OpenID docs](https://github.com/matrix-org/synapse/blob/develop/docs/openid.md)), you need to use the following configuration (in your `vars.yml` file) to instruct nginx to forward `/_synapse/oidc` to Synapse:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_oidc_api_enabled: true
|
||||||
|
```
|
||||||
|
|
|
@ -193,3 +193,38 @@ Note that this configuration on its own does **not** redirect traffic on port 80
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
permanent = true
|
permanent = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can use the following `docker-compose.yml` as example to launch Traefik.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3.3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
traefik:
|
||||||
|
image: "traefik:v2.3"
|
||||||
|
restart: always
|
||||||
|
container_name: "traefik"
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
command:
|
||||||
|
- "--api.insecure=true"
|
||||||
|
- "--providers.docker=true"
|
||||||
|
- "--providers.docker.network=traefik"
|
||||||
|
- "--providers.docker.exposedbydefault=false"
|
||||||
|
- "--entrypoints.web-secure.address=:443"
|
||||||
|
- "--entrypoints.synapse.address=:8448"
|
||||||
|
- "--certificatesresolvers.default.acme.tlschallenge=true"
|
||||||
|
- "--certificatesresolvers.default.acme.email=YOUR EMAIL"
|
||||||
|
- "--certificatesresolvers.default.acme.storage=/letsencrypt/acme.json"
|
||||||
|
ports:
|
||||||
|
- "443:443"
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
- "./letsencrypt:/letsencrypt"
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
```
|
||||||
|
|
|
@ -21,3 +21,8 @@ Alternatively, **if there is no pre-defined variable** for a Synapse setting you
|
||||||
## Synapse Admin
|
## Synapse Admin
|
||||||
|
|
||||||
Certain Synapse administration tasks (managing users and rooms, etc.) can be performed via a web user-interace, if you install [Synapse Admin](configuring-playbook-synapse-admin.md).
|
Certain Synapse administration tasks (managing users and rooms, etc.) can be performed via a web user-interace, if you install [Synapse Admin](configuring-playbook-synapse-admin.md).
|
||||||
|
|
||||||
|
|
||||||
|
## Synapse + OpenID Connect for Single-Sign-On
|
||||||
|
|
||||||
|
If you'd like to use OpenID Connect authentication with Synapse, you'll need some additional reverse-proxy configuration (see [our nginx reverse-proxy doc page](configuring-playbook-nginx.md#synapse-openid-connect-for-single-sign-on)).
|
||||||
|
|
|
@ -33,6 +33,7 @@ When you're done with all the configuration you'd like to do, continue with [Ins
|
||||||
|
|
||||||
- [Setting up the Jitsi video-conferencing platform](configuring-playbook-jitsi.md) (optional)
|
- [Setting up the Jitsi video-conferencing platform](configuring-playbook-jitsi.md) (optional)
|
||||||
|
|
||||||
|
- [Setting Dynamic DNS](configuring-playbook-dynamic-dns.md) (optional)
|
||||||
|
|
||||||
### Core service adjustments
|
### Core service adjustments
|
||||||
|
|
||||||
|
|
|
@ -619,6 +619,23 @@ matrix_dimension_homeserver_federationUrl: "http://matrix-synapse:{{ 8048 if mat
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
#
|
||||||
|
# matrix-dynamic-dns
|
||||||
|
#
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
matrix_dynamic_dns_enabled: false
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
#
|
||||||
|
# /matrix-dynamic-dns
|
||||||
|
#
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# matrix-email2matrix
|
# matrix-email2matrix
|
||||||
|
@ -837,6 +854,8 @@ matrix_ssl_architecture: "{{
|
||||||
}[matrix_architecture]
|
}[matrix_architecture]
|
||||||
}}"
|
}}"
|
||||||
|
|
||||||
|
matrix_ssl_pre_obtaining_required_service_name: "{{ 'matrix-dynamic-dns' if matrix_dynamic_dns_enabled else '' }}"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# /matrix-nginx-proxy
|
# /matrix-nginx-proxy
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
matrix_bot_matrix_reminder_bot_enabled: true
|
matrix_bot_matrix_reminder_bot_enabled: true
|
||||||
|
|
||||||
matrix_bot_matrix_reminder_bot_docker_image: "anoa/matrix-reminder-bot:release-v0.2.0"
|
matrix_bot_matrix_reminder_bot_docker_image: "docker.io/anoa/matrix-reminder-bot:release-v0.2.0"
|
||||||
matrix_bot_matrix_reminder_bot_docker_image_force_pull: "{{ matrix_bot_matrix_reminder_bot_docker_image.endswith(':latest') }}"
|
matrix_bot_matrix_reminder_bot_docker_image_force_pull: "{{ matrix_bot_matrix_reminder_bot_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_bot_matrix_reminder_bot_base_path: "{{ matrix_base_data_path }}/matrix-reminder-bot"
|
matrix_bot_matrix_reminder_bot_base_path: "{{ matrix_base_data_path }}/matrix-reminder-bot"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
matrix_appservice_discord_enabled: true
|
matrix_appservice_discord_enabled: true
|
||||||
|
|
||||||
matrix_appservice_discord_docker_image: "halfshot/matrix-appservice-discord:latest"
|
matrix_appservice_discord_docker_image: "docker.io/halfshot/matrix-appservice-discord:latest"
|
||||||
matrix_appservice_discord_docker_image_force_pull: "{{ matrix_appservice_discord_docker_image.endswith(':latest') }}"
|
matrix_appservice_discord_docker_image_force_pull: "{{ matrix_appservice_discord_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
|
matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
matrix_appservice_irc_enabled: true
|
matrix_appservice_irc_enabled: true
|
||||||
|
|
||||||
matrix_appservice_irc_docker_image: "matrixdotorg/matrix-appservice-irc:release-0.17.1"
|
matrix_appservice_irc_docker_image: "docker.io/matrixdotorg/matrix-appservice-irc:release-0.17.1"
|
||||||
matrix_appservice_irc_docker_image_force_pull: "{{ matrix_appservice_irc_docker_image.endswith(':latest') }}"
|
matrix_appservice_irc_docker_image_force_pull: "{{ matrix_appservice_irc_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_appservice_irc_base_path: "{{ matrix_base_data_path }}/appservice-irc"
|
matrix_appservice_irc_base_path: "{{ matrix_base_data_path }}/appservice-irc"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
matrix_appservice_slack_enabled: true
|
matrix_appservice_slack_enabled: true
|
||||||
|
|
||||||
matrix_appservice_slack_docker_image: "matrixdotorg/matrix-appservice-slack:release-1.5.0"
|
matrix_appservice_slack_docker_image: "docker.io/matrixdotorg/matrix-appservice-slack:release-1.5.0"
|
||||||
matrix_appservice_slack_docker_image_force_pull: "{{ matrix_appservice_slack_docker_image.endswith(':latest') }}"
|
matrix_appservice_slack_docker_image_force_pull: "{{ matrix_appservice_slack_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
|
matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
matrix_appservice_webhooks_enabled: true
|
matrix_appservice_webhooks_enabled: true
|
||||||
|
|
||||||
matrix_appservice_webhooks_docker_image: "turt2live/matrix-appservice-webhooks:latest"
|
matrix_appservice_webhooks_docker_image: "docker.io/turt2live/matrix-appservice-webhooks:latest"
|
||||||
matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
|
matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
|
matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
|
||||||
|
|
|
@ -6,7 +6,8 @@ matrix_mautrix_facebook_enabled: true
|
||||||
matrix_mautrix_facebook_container_image_self_build: false
|
matrix_mautrix_facebook_container_image_self_build: false
|
||||||
|
|
||||||
# See: https://mau.dev/tulir/mautrix-facebook/container_registry
|
# See: https://mau.dev/tulir/mautrix-facebook/container_registry
|
||||||
matrix_mautrix_facebook_docker_image: "dock.mau.dev/tulir/mautrix-facebook:latest"
|
matrix_mautrix_facebook_docker_image: "{{ matrix_mautrix_facebook_docker_image_name_prefix }}tulir/mautrix-facebook:latest"
|
||||||
|
matrix_mautrix_facebook_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_facebook_container_image_self_build else 'dock.mau.dev/' }}"
|
||||||
matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
|
matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
|
matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
|
||||||
|
|
|
@ -43,12 +43,12 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mautrix_facebook_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mautrix_facebook_docker_src_files_path }}"
|
path: "{{ matrix_mautrix_facebook_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mautrix_facebook_enabled|bool and matrix_mautrix_facebook_container_image_self_build and matrix_mautrix_facebook_git_pull_results.changed"
|
when: "matrix_mautrix_facebook_enabled|bool and matrix_mautrix_facebook_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -6,7 +6,8 @@ matrix_mautrix_hangouts_enabled: true
|
||||||
matrix_mautrix_hangouts_container_image_self_build: false
|
matrix_mautrix_hangouts_container_image_self_build: false
|
||||||
|
|
||||||
# See: https://mau.dev/tulir/mautrix-hangouts/container_registry
|
# See: https://mau.dev/tulir/mautrix-hangouts/container_registry
|
||||||
matrix_mautrix_hangouts_docker_image: "dock.mau.dev/tulir/mautrix-hangouts:latest"
|
matrix_mautrix_hangouts_docker_image: "{{ matrix_mautrix_hangouts_docker_image_name_prefix }}tulir/mautrix-hangouts:latest"
|
||||||
|
matrix_mautrix_hangouts_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_hangouts_container_image_self_build else 'dock.mau.dev/' }}"
|
||||||
matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
|
matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
|
matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
|
||||||
|
|
|
@ -36,18 +36,18 @@
|
||||||
dest: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
dest: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
register: matrix_mautrix_hangouts_git_pull_results
|
register: matrix_mautrix_hangouts_git_pull_results
|
||||||
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build"
|
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Mautrix Hangouts Docker image is built
|
- name: Ensure Mautrix Hangouts Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mautrix_hangouts_docker_image }}"
|
name: "{{ matrix_mautrix_hangouts_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mautrix_hangouts_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
path: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build and matrix_mautrix_hangouts_git_pull_results.changed"
|
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -10,7 +10,8 @@ matrix_mx_puppet_discord_container_image_self_build: false
|
||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_discord_container_http_host_bind_port: ''
|
matrix_mx_puppet_discord_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_discord_docker_image: "sorunome/mx-puppet-discord:latest"
|
matrix_mx_puppet_discord_docker_image: "{{ matrix_mx_puppet_discord_docker_image_name_prefix }}sorunome/mx-puppet-discord:latest"
|
||||||
|
matrix_mx_puppet_discord_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_discord_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
|
matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
|
||||||
|
|
|
@ -35,17 +35,19 @@
|
||||||
repo: https://github.com/matrix-discord/mx-puppet-discord.git
|
repo: https://github.com/matrix-discord/mx-puppet-discord.git
|
||||||
dest: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_discord_git_pull_results
|
||||||
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Discord Docker image is built
|
- name: Ensure MX Puppet Discord Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_discord_docker_image }}"
|
name: "{{ matrix_mx_puppet_discord_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_discord_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -5,7 +5,8 @@ matrix_mx_puppet_instagram_enabled: true
|
||||||
|
|
||||||
matrix_mx_puppet_instagram_container_image_self_build: false
|
matrix_mx_puppet_instagram_container_image_self_build: false
|
||||||
|
|
||||||
matrix_mx_puppet_instagram_docker_image: "docker.io/sorunome/mx-puppet-instagram:latest"
|
matrix_mx_puppet_instagram_docker_image: "{{ matrix_mx_puppet_instagram_docker_image_name_prefix }}sorunome/mx-puppet-instagram:latest"
|
||||||
|
matrix_mx_puppet_instagram_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_instagram_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_instagram_docker_image_force_pull: "{{ matrix_mx_puppet_instagram_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_instagram_docker_image_force_pull: "{{ matrix_mx_puppet_instagram_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_instagram_base_path: "{{ matrix_base_data_path }}/mx-puppet-instagram"
|
matrix_mx_puppet_instagram_base_path: "{{ matrix_base_data_path }}/mx-puppet-instagram"
|
||||||
|
|
|
@ -35,17 +35,19 @@
|
||||||
repo: https://github.com/Sorunome/mx-puppet-instagram.git
|
repo: https://github.com/Sorunome/mx-puppet-instagram.git
|
||||||
dest: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build"
|
register: matrix_mx_puppet_instagram_git_pull_results
|
||||||
|
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-instagram Docker image is built
|
- name: Ensure mx-puppet-instagram Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_instagram_docker_image }}"
|
name: "{{ matrix_mx_puppet_instagram_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_instagram_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build"
|
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-instagram config.yaml installed
|
- name: Ensure mx-puppet-instagram config.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -5,7 +5,8 @@ matrix_mx_puppet_skype_enabled: true
|
||||||
|
|
||||||
matrix_mx_puppet_skype_container_image_self_build: false
|
matrix_mx_puppet_skype_container_image_self_build: false
|
||||||
|
|
||||||
matrix_mx_puppet_skype_docker_image: "sorunome/mx-puppet-skype:latest"
|
matrix_mx_puppet_skype_docker_image: "{{ matrix_mx_puppet_skype_docker_image_name_prefix }}sorunome/mx-puppet-skype:latest"
|
||||||
|
matrix_mx_puppet_skype_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_skype_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
|
matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
|
||||||
|
|
|
@ -36,18 +36,18 @@
|
||||||
dest: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
register: matrix_mx_puppet_skype_git_pull_results
|
register: matrix_mx_puppet_skype_git_pull_results
|
||||||
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build"
|
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Skype Docker image is built
|
- name: Ensure MX Puppet Skype Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_skype_docker_image }}"
|
name: "{{ matrix_mx_puppet_skype_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mx_puppet_skype_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build and matrix_mx_puppet_skype_git_pull_results.changed"
|
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -10,7 +10,8 @@ matrix_mx_puppet_slack_container_image_self_build: false
|
||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_slack_container_http_host_bind_port: ''
|
matrix_mx_puppet_slack_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_slack_docker_image: "sorunome/mx-puppet-slack:latest"
|
matrix_mx_puppet_slack_docker_image: "{{ matrix_mx_puppet_slack_docker_image_name_prefix }}sorunome/mx-puppet-slack:latest"
|
||||||
|
matrix_mx_puppet_slack_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_slack_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_slack_docker_image_force_pull: "{{ matrix_mx_puppet_slack_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_slack_docker_image_force_pull: "{{ matrix_mx_puppet_slack_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_slack_base_path: "{{ matrix_base_data_path }}/mx-puppet-slack"
|
matrix_mx_puppet_slack_base_path: "{{ matrix_base_data_path }}/mx-puppet-slack"
|
||||||
|
|
|
@ -35,12 +35,14 @@
|
||||||
repo: https://github.com/Sorunome/mx-puppet-slack.git
|
repo: https://github.com/Sorunome/mx-puppet-slack.git
|
||||||
dest: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_slack_git_pull_results
|
||||||
when: "matrix_mx_puppet_slack_enabled|bool and matrix_mx_puppet_slack_container_image_self_build"
|
when: "matrix_mx_puppet_slack_enabled|bool and matrix_mx_puppet_slack_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Slack Docker image is built
|
- name: Ensure MX Puppet Slack Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_slack_docker_image }}"
|
name: "{{ matrix_mx_puppet_slack_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_slack_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
||||||
|
|
|
@ -10,7 +10,8 @@ matrix_mx_puppet_steam_container_image_self_build: false
|
||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_steam_container_http_host_bind_port: ''
|
matrix_mx_puppet_steam_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_steam_docker_image: "icewind1991/mx-puppet-steam:latest"
|
matrix_mx_puppet_steam_docker_image: "{{ matrix_mx_puppet_steam_docker_image_name_prefix }}icewind1991/mx-puppet-steam:latest"
|
||||||
|
matrix_mx_puppet_steam_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_steam_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_steam_docker_image_force_pull: "{{ matrix_mx_puppet_steam_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_steam_docker_image_force_pull: "{{ matrix_mx_puppet_steam_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_steam_base_path: "{{ matrix_base_data_path }}/mx-puppet-steam"
|
matrix_mx_puppet_steam_base_path: "{{ matrix_base_data_path }}/mx-puppet-steam"
|
||||||
|
|
|
@ -35,12 +35,14 @@
|
||||||
repo: https://github.com/icewind1991/mx-puppet-steam.git
|
repo: https://github.com/icewind1991/mx-puppet-steam.git
|
||||||
dest: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_steam_git_pull_results
|
||||||
when: "matrix_mx_puppet_steam_enabled|bool and matrix_mx_puppet_steam_container_image_self_build"
|
when: "matrix_mx_puppet_steam_enabled|bool and matrix_mx_puppet_steam_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Steam Docker image is built
|
- name: Ensure MX Puppet Steam Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_steam_docker_image }}"
|
name: "{{ matrix_mx_puppet_steam_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_steam_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
||||||
|
|
|
@ -10,7 +10,8 @@ matrix_mx_puppet_twitter_container_image_self_build: false
|
||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_twitter_container_http_host_bind_port: ''
|
matrix_mx_puppet_twitter_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_twitter_docker_image: "sorunome/mx-puppet-twitter:latest"
|
matrix_mx_puppet_twitter_docker_image: "{{ matrix_mx_puppet_twitter_docker_image_name_prefix }}sorunome/mx-puppet-twitter:latest"
|
||||||
|
matrix_mx_puppet_twitter_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_twitter_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_twitter_docker_image_force_pull: "{{ matrix_mx_puppet_twitter_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_twitter_docker_image_force_pull: "{{ matrix_mx_puppet_twitter_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_twitter_base_path: "{{ matrix_base_data_path }}/mx-puppet-twitter"
|
matrix_mx_puppet_twitter_base_path: "{{ matrix_base_data_path }}/mx-puppet-twitter"
|
||||||
|
|
|
@ -35,12 +35,14 @@
|
||||||
repo: https://github.com/Sorunome/mx-puppet-twitter.git
|
repo: https://github.com/Sorunome/mx-puppet-twitter.git
|
||||||
dest: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_twitter_git_pull_results
|
||||||
when: "matrix_mx_puppet_twitter_enabled|bool and matrix_mx_puppet_twitter_container_image_self_build"
|
when: "matrix_mx_puppet_twitter_enabled|bool and matrix_mx_puppet_twitter_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Twitter Docker image is built
|
- name: Ensure MX Puppet Twitter Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_twitter_docker_image }}"
|
name: "{{ matrix_mx_puppet_twitter_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_twitter_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
|
|
||||||
matrix_sms_bridge_enabled: true
|
matrix_sms_bridge_enabled: true
|
||||||
|
|
||||||
matrix_sms_bridge_docker_image: "folivonet/matrix-sms-bridge:0.3.2.RELEASE"
|
matrix_sms_bridge_docker_image: "docker.io/folivonet/matrix-sms-bridge:0.4.2.RELEASE"
|
||||||
matrix_sms_bridge_database_docker_image: "neo4j:latest"
|
|
||||||
matrix_sms_bridge_database_docker_image_force_pull: "{{ matrix_sms_bridge_docker_image.endswith(':latest') }}"
|
|
||||||
|
|
||||||
matrix_sms_bridge_base_path: "{{ matrix_base_data_path }}/matrix-sms-bridge"
|
matrix_sms_bridge_base_path: "{{ matrix_base_data_path }}/matrix-sms-bridge"
|
||||||
matrix_sms_bridge_config_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/config"
|
matrix_sms_bridge_config_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/config"
|
||||||
|
@ -17,29 +15,22 @@ matrix_sms_bridge_data_spool_inbox_processed_path: "{{ matrix_base_data_path }}/
|
||||||
matrix_sms_bridge_data_spool_outbox_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/outbox"
|
matrix_sms_bridge_data_spool_outbox_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/outbox"
|
||||||
matrix_sms_bridge_data_spool_sent_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/sent"
|
matrix_sms_bridge_data_spool_sent_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/sent"
|
||||||
matrix_sms_bridge_data_spool_error_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/error"
|
matrix_sms_bridge_data_spool_error_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data/spool/error"
|
||||||
matrix_sms_bridge_database_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/database"
|
|
||||||
|
|
||||||
matrix_sms_bridge_appservice_token: ''
|
matrix_sms_bridge_appservice_token: ''
|
||||||
matrix_sms_bridge_homeserver_token: ''
|
matrix_sms_bridge_homeserver_token: ''
|
||||||
|
|
||||||
matrix_sms_bridge_database_username: 'neo4j'
|
|
||||||
matrix_sms_bridge_database_password: ''
|
|
||||||
|
|
||||||
matrix_sms_bridge_container_http_host_bind_port: ''
|
matrix_sms_bridge_container_http_host_bind_port: ''
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container
|
# A list of extra arguments to pass to the container
|
||||||
matrix_sms_bridge_container_extra_arguments: []
|
matrix_sms_bridge_container_extra_arguments: []
|
||||||
|
|
||||||
# List of systemd services that service depends on.
|
# List of systemd services that service depends on.
|
||||||
matrix_sms_bridge_systemd_required_services_list: ['docker.service','matrix-sms-bridge-database.service']
|
matrix_sms_bridge_systemd_required_services_list: ['docker.service']
|
||||||
matrix_sms_bridge_database_systemd_required_services_list: ['docker.service']
|
|
||||||
|
|
||||||
# List of systemd services that service wants
|
# List of systemd services that service wants
|
||||||
matrix_sms_bridge_systemd_wanted_services_list: []
|
matrix_sms_bridge_systemd_wanted_services_list: []
|
||||||
matrix_sms_bridge_database_systemd_wanted_services_list: []
|
|
||||||
|
|
||||||
matrix_sms_bridge_appservice_url: 'http://matrix-sms-bridge:8080'
|
matrix_sms_bridge_appservice_url: 'http://matrix-sms-bridge:8080'
|
||||||
matrix_sms_bridge_database_url: 'bolt://matrix-sms-bridge-database:7687'
|
|
||||||
matrix_sms_bridge_homeserver_hostname: 'matrix-synapse'
|
matrix_sms_bridge_homeserver_hostname: 'matrix-synapse'
|
||||||
matrix_sms_bridge_homeserver_port: '8008'
|
matrix_sms_bridge_homeserver_port: '8008'
|
||||||
|
|
||||||
|
@ -47,25 +38,19 @@ matrix_sms_bridge_homserver_domain: "{{ matrix_domain }}"
|
||||||
matrix_sms_bridge_default_room: ''
|
matrix_sms_bridge_default_room: ''
|
||||||
matrix_sms_bridge_default_region: ''
|
matrix_sms_bridge_default_region: ''
|
||||||
matrix_sms_bridge_default_timezone: ''
|
matrix_sms_bridge_default_timezone: ''
|
||||||
|
matrix_sms_bridge_single_mode_enabled: false
|
||||||
|
|
||||||
matrix_sms_bridge_gammu_modem: ''
|
matrix_sms_bridge_gammu_modem: ''
|
||||||
matrix_sms_bridge_modem_group: 'dialout'
|
matrix_sms_bridge_modem_group: 'dialout'
|
||||||
matrix_sms_bridge_gammu_reset_frequency: 0
|
matrix_sms_bridge_gammu_reset_frequency: 0
|
||||||
matrix_sms_bridge_gammu_hard_reset_frequency: 0
|
matrix_sms_bridge_gammu_hard_reset_frequency: 0
|
||||||
|
matrix_sms_bridge_gammu_smsc: ''
|
||||||
|
|
||||||
|
|
||||||
matrix_sms_bridge_configuration_yaml: |
|
matrix_sms_bridge_configuration_yaml: |
|
||||||
#jinja2: lstrip_blocks: "True"
|
#jinja2: lstrip_blocks: "True"
|
||||||
|
|
||||||
# Database connection
|
# Database connection
|
||||||
org:
|
|
||||||
neo4j:
|
|
||||||
driver:
|
|
||||||
uri: {{ matrix_sms_bridge_database_url }}
|
|
||||||
authentication:
|
|
||||||
username: {{ matrix_sms_bridge_database_username }}
|
|
||||||
password: {{ matrix_sms_bridge_database_password }}
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
bridge:
|
bridge:
|
||||||
sms:
|
sms:
|
||||||
|
@ -74,6 +59,7 @@ matrix_sms_bridge_configuration_yaml: |
|
||||||
defaultRoomId: "{{ matrix_sms_bridge_default_room }}"
|
defaultRoomId: "{{ matrix_sms_bridge_default_room }}"
|
||||||
defaultRegion: "{{ matrix_sms_bridge_default_region }}"
|
defaultRegion: "{{ matrix_sms_bridge_default_region }}"
|
||||||
defaultTimeZone: "{{ matrix_sms_bridge_default_timezone }}"
|
defaultTimeZone: "{{ matrix_sms_bridge_default_timezone }}"
|
||||||
|
singleModeEnabled: "{{ matrix_sms_bridge_single_mode_enabled }}"
|
||||||
provider:
|
provider:
|
||||||
gammu:
|
gammu:
|
||||||
# (optional) default is disabled
|
# (optional) default is disabled
|
||||||
|
@ -85,6 +71,12 @@ matrix_sms_bridge_configuration_yaml: |
|
||||||
bot:
|
bot:
|
||||||
# The domain-part of matrix-ids. E. g. example.org when your userIds look like @unicorn:example.org
|
# The domain-part of matrix-ids. E. g. example.org when your userIds look like @unicorn:example.org
|
||||||
serverName: {{ matrix_sms_bridge_homserver_domain }}
|
serverName: {{ matrix_sms_bridge_homserver_domain }}
|
||||||
|
migration:
|
||||||
|
url: "jdbc:h2:file:/data/database/db"
|
||||||
|
username: sa
|
||||||
|
database:
|
||||||
|
url: "r2dbc:h2:file:////data/database/db"
|
||||||
|
username: sa
|
||||||
client:
|
client:
|
||||||
homeServer:
|
homeServer:
|
||||||
# The hostname of your Homeserver.
|
# The hostname of your Homeserver.
|
||||||
|
@ -128,6 +120,9 @@ matrix_sms_bridge_gammu_configuration: |
|
||||||
InboxFormat = detail
|
InboxFormat = detail
|
||||||
OutboxFormat = detail
|
OutboxFormat = detail
|
||||||
TransmitFormat = auto
|
TransmitFormat = auto
|
||||||
|
{% if matrix_sms_bridge_gammu_smsc is defined and matrix_sms_bridge_gammu_smsc|length %}
|
||||||
|
SMSC = {{ matrix_sms_bridge_gammu_smsc }}
|
||||||
|
{% endif %}
|
||||||
ResetFrequency = {{ matrix_sms_bridge_gammu_reset_frequency }}
|
ResetFrequency = {{ matrix_sms_bridge_gammu_reset_frequency }}
|
||||||
HardResetFrequency = {{ matrix_sms_bridge_gammu_hard_reset_frequency }}
|
HardResetFrequency = {{ matrix_sms_bridge_gammu_hard_reset_frequency }}
|
||||||
debugLevel = 1
|
debugLevel = 1
|
||||||
|
@ -145,6 +140,9 @@ matrix_sms_bridge_registration_yaml: |
|
||||||
users:
|
users:
|
||||||
- exclusive: true
|
- exclusive: true
|
||||||
regex: '^@sms_.+:{{ matrix_sms_bridge_homserver_domain|regex_escape }}$'
|
regex: '^@sms_.+:{{ matrix_sms_bridge_homserver_domain|regex_escape }}$'
|
||||||
|
aliases:
|
||||||
|
- exclusive: true
|
||||||
|
regex: '^#sms_.+:{{ matrix_sms_bridge_homserver_domain|regex_escape }}$'
|
||||||
url: {{ matrix_sms_bridge_appservice_url }}
|
url: {{ matrix_sms_bridge_appservice_url }}
|
||||||
sender_localpart: smsbot
|
sender_localpart: smsbot
|
||||||
rate_limited: false
|
rate_limited: false
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
when: "matrix_sms_bridge_enabled and matrix_synapse_role_executed|default(False)"
|
when: "matrix_sms_bridge_enabled and matrix_synapse_role_executed|default(False)"
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-sms-bridge','matrix-sms-bridge-database'] }}"
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-sms-bridge'] }}"
|
||||||
when: matrix_sms_bridge_enabled|bool
|
when: matrix_sms_bridge_enabled|bool
|
||||||
|
|
||||||
# If the matrix-synapse role is not used, these variables may not exist.
|
# If the matrix-synapse role is not used, these variables may not exist.
|
||||||
|
|
|
@ -5,14 +5,6 @@
|
||||||
name: "{{ matrix_sms_bridge_docker_image }}"
|
name: "{{ matrix_sms_bridge_docker_image }}"
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge databse image is pulled
|
|
||||||
docker_image:
|
|
||||||
name: "{{ matrix_sms_bridge_database_docker_image }}"
|
|
||||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
||||||
force_source: "{{ matrix_sms_bridge_database_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
||||||
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_sms_bridge_database_docker_image_force_pull }}"
|
|
||||||
|
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge paths exist
|
- name: Ensure matrix-sms-bridge paths exist
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -31,7 +23,6 @@
|
||||||
- "{{ matrix_sms_bridge_data_spool_outbox_path }}"
|
- "{{ matrix_sms_bridge_data_spool_outbox_path }}"
|
||||||
- "{{ matrix_sms_bridge_data_spool_sent_path }}"
|
- "{{ matrix_sms_bridge_data_spool_sent_path }}"
|
||||||
- "{{ matrix_sms_bridge_data_spool_error_path }}"
|
- "{{ matrix_sms_bridge_data_spool_error_path }}"
|
||||||
- "{{ matrix_sms_bridge_database_path }}"
|
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge application.yml installed
|
- name: Ensure matrix-sms-bridge application.yml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -64,14 +55,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: matrix_sms_bridge_systemd_service_result
|
register: matrix_sms_bridge_systemd_service_result
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge-database.service installed
|
- name: Ensure systemd reloaded after matrix-sms-bridge.service installation
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-sms-bridge-database.service.j2"
|
|
||||||
dest: "{{ matrix_systemd_path }}/matrix-sms-bridge-database.service"
|
|
||||||
mode: 0644
|
|
||||||
register: matrix_sms_bridge_database_systemd_service_result
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-sms-bridge.service or matrix-sms-bridge-database.service installation
|
|
||||||
service:
|
service:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: matrix_sms_bridge_systemd_service_result.changed or matrix_sms_bridge_database_systemd_service_result.changed
|
when: matrix_sms_bridge_systemd_service_result.changed
|
|
@ -5,11 +5,6 @@
|
||||||
path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
|
path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
|
||||||
register: matrix_sms_bridge_service_stat
|
register: matrix_sms_bridge_service_stat
|
||||||
|
|
||||||
- name: Check existence of matrix-sms-bridge-database service
|
|
||||||
stat:
|
|
||||||
path: "{{ matrix_systemd_path }}/matrix-sms-bridge-database.service"
|
|
||||||
register: matrix_sms_bridge_database_service_stat
|
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge is stopped
|
- name: Ensure matrix-sms-bridge is stopped
|
||||||
service:
|
service:
|
||||||
name: matrix-sms-bridge
|
name: matrix-sms-bridge
|
||||||
|
@ -17,26 +12,8 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: "matrix_sms_bridge_service_stat.stat.exists"
|
when: "matrix_sms_bridge_service_stat.stat.exists"
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge-database is stopped
|
|
||||||
service:
|
|
||||||
name: matrix-sms-bridge-database
|
|
||||||
state: stopped
|
|
||||||
daemon_reload: yes
|
|
||||||
when: "matrix_sms_bridge_database_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge.service doesn't exist
|
- name: Ensure matrix-sms-bridge.service doesn't exist
|
||||||
file:
|
file:
|
||||||
path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
|
path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
|
||||||
state: absent
|
state: absent
|
||||||
when: "matrix_sms_bridge_service_stat.stat.exists"
|
when: "matrix_sms_bridge_service_stat.stat.exists"
|
||||||
|
|
||||||
- name: Ensure matrix-sms-bridge-database.service doesn't exist
|
|
||||||
file:
|
|
||||||
path: "{{ matrix_systemd_path }}/matrix-sms-bridge-database.service"
|
|
||||||
state: absent
|
|
||||||
when: "matrix_sms_bridge_database_service_stat.stat.exists"
|
|
||||||
|
|
||||||
- name: Ensure systemd reloaded after matrix-sms-bridge.service or matrix-sms-bridge-database.service removal
|
|
||||||
service:
|
|
||||||
daemon_reload: yes
|
|
||||||
when: matrix_sms_bridge_service_stat.stat.exists or matrix_sms_bridge_database_service_stat.stat.exists
|
|
|
@ -8,7 +8,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- "matrix_sms_bridge_appservice_token"
|
- "matrix_sms_bridge_appservice_token"
|
||||||
- "matrix_sms_bridge_homeserver_token"
|
- "matrix_sms_bridge_homeserver_token"
|
||||||
- "matrix_sms_bridge_database_password"
|
|
||||||
- "matrix_sms_bridge_gammu_modem"
|
- "matrix_sms_bridge_gammu_modem"
|
||||||
- "matrix_sms_bridge_default_region"
|
- "matrix_sms_bridge_default_region"
|
||||||
- "matrix_sms_bridge_default_timezone"
|
- "matrix_sms_bridge_default_timezone"
|
|
@ -2,7 +2,8 @@ matrix_client_element_enabled: true
|
||||||
|
|
||||||
matrix_client_element_container_image_self_build: false
|
matrix_client_element_container_image_self_build: false
|
||||||
|
|
||||||
matrix_client_element_docker_image: "vectorim/element-web:v1.7.12"
|
matrix_client_element_docker_image: "{{ matrix_client_element_docker_image_name_prefix }}vectorim/element-web:v1.7.13"
|
||||||
|
matrix_client_element_docker_image_name_prefix: "{{ 'localhost/' if matrix_client_element_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_client_element_docker_image_force_pull: "{{ matrix_client_element_docker_image.endswith(':latest') }}"
|
matrix_client_element_docker_image_force_pull: "{{ matrix_client_element_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_client_element_data_path: "{{ matrix_base_data_path }}/client-element"
|
matrix_client_element_data_path: "{{ matrix_base_data_path }}/client-element"
|
||||||
|
|
|
@ -30,17 +30,19 @@
|
||||||
dest: "{{ matrix_client_element_docker_src_files_path }}"
|
dest: "{{ matrix_client_element_docker_src_files_path }}"
|
||||||
version: "{{ matrix_client_element_docker_image.split(':')[1] }}"
|
version: "{{ matrix_client_element_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build"
|
register: matrix_client_element_git_pull_results
|
||||||
|
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Element Docker image is built
|
- name: Ensure Element Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_client_element_docker_image }}"
|
name: "{{ matrix_client_element_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_client_element_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_client_element_docker_src_files_path }}"
|
path: "{{ matrix_client_element_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build"
|
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Element configuration installed
|
- name: Ensure Element configuration installed
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -19,7 +19,7 @@ matrix_corporal_container_extra_arguments: []
|
||||||
# List of systemd services that matrix-corporal.service depends on
|
# List of systemd services that matrix-corporal.service depends on
|
||||||
matrix_corporal_systemd_required_services_list: ['docker.service']
|
matrix_corporal_systemd_required_services_list: ['docker.service']
|
||||||
|
|
||||||
matrix_corporal_docker_image: "devture/matrix-corporal:1.11.0"
|
matrix_corporal_docker_image: "docker.io/devture/matrix-corporal:1.11.0"
|
||||||
matrix_corporal_docker_image_force_pull: "{{ matrix_corporal_docker_image.endswith(':latest') }}"
|
matrix_corporal_docker_image_force_pull: "{{ matrix_corporal_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_corporal_base_path: "{{ matrix_base_data_path }}/corporal"
|
matrix_corporal_base_path: "{{ matrix_base_data_path }}/corporal"
|
||||||
|
|
|
@ -2,7 +2,8 @@ matrix_coturn_enabled: true
|
||||||
|
|
||||||
matrix_coturn_container_image_self_build: false
|
matrix_coturn_container_image_self_build: false
|
||||||
|
|
||||||
matrix_coturn_docker_image: "instrumentisto/coturn:4.5.1.3"
|
matrix_coturn_docker_image: "{{ matrix_coturn_docker_image_name_prefix }}instrumentisto/coturn:4.5.1.3"
|
||||||
|
matrix_coturn_docker_image_name_prefix: "{{ 'localhost/' if matrix_coturn_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_coturn_docker_image_force_pull: "{{ matrix_coturn_docker_image.endswith(':latest') }}"
|
matrix_coturn_docker_image_force_pull: "{{ matrix_coturn_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# The Docker network that Coturn would be put into.
|
# The Docker network that Coturn would be put into.
|
||||||
|
|
|
@ -29,17 +29,19 @@
|
||||||
dest: "{{ matrix_coturn_docker_src_files_path }}"
|
dest: "{{ matrix_coturn_docker_src_files_path }}"
|
||||||
version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_coturn_git_pull_results
|
||||||
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure Coturn Docker image is built
|
- name: Ensure Coturn Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_coturn_docker_image }}"
|
name: "{{ matrix_coturn_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_coturn_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_coturn_docker_src_files_path }}"
|
path: "{{ matrix_coturn_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Coturn configuration path exists
|
- name: Ensure Coturn configuration path exists
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -12,7 +12,7 @@ matrix_dimension_widgets_allow_self_signed_ssl_certificates: false
|
||||||
|
|
||||||
matrix_dimension_base_path: "{{ matrix_base_data_path }}/dimension"
|
matrix_dimension_base_path: "{{ matrix_base_data_path }}/dimension"
|
||||||
|
|
||||||
matrix_dimension_docker_image: "turt2live/matrix-dimension:latest"
|
matrix_dimension_docker_image: "docker.io/turt2live/matrix-dimension:latest"
|
||||||
matrix_dimension_docker_image_force_pull: "{{ matrix_dimension_docker_image.endswith(':latest') }}"
|
matrix_dimension_docker_image_force_pull: "{{ matrix_dimension_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# The user and group id correspond to the node user in the `turt2live/matrix-dimension` image.
|
# The user and group id correspond to the node user in the `turt2live/matrix-dimension` image.
|
||||||
|
|
45
roles/matrix-dynamic-dns/defaults/main.yml
Normal file
45
roles/matrix-dynamic-dns/defaults/main.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# Whether dynamic dns is enabled
|
||||||
|
matrix_dynamic_dns_enabled: true
|
||||||
|
|
||||||
|
# The dynamic dns daemon interval
|
||||||
|
matrix_dynamic_dns_daemon_interval: '300'
|
||||||
|
|
||||||
|
# The docker container to use when in mode
|
||||||
|
matrix_dynamic_dns_docker_image: '{{ matrix_dynamic_dns_docker_image_name_prefix }}linuxserver/ddclient:v3.9.1-ls45'
|
||||||
|
|
||||||
|
matrix_dynamic_dns_docker_image_name_prefix: "{{ 'localhost/' if matrix_dynamic_dns_container_image_self_build else 'docker.io/' }}"
|
||||||
|
|
||||||
|
# The image to force pull
|
||||||
|
matrix_dynamic_dns_docker_image_force_pull: "{{ matrix_dynamic_dns_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
|
# List of extra arguments to pass to the ontainer mode
|
||||||
|
matrix_dynamic_dns_container_extra_arguments: []
|
||||||
|
|
||||||
|
# List of wanted services when running in mode
|
||||||
|
matrix_dynamic_dns_systemd_wanted_services_list: []
|
||||||
|
|
||||||
|
# List of required services when running in mode
|
||||||
|
matrix_dynamic_dns_systemd_required_services_list: ['docker.service']
|
||||||
|
|
||||||
|
# Build the container from source when running in mode
|
||||||
|
matrix_dynamic_dns_container_image_self_build: false
|
||||||
|
|
||||||
|
# Config paths
|
||||||
|
matrix_dynamic_dns_base_path: "{{ matrix_base_data_path }}/dynamic-dns"
|
||||||
|
matrix_dynamic_dns_config_path: "{{ matrix_dynamic_dns_base_path }}/config"
|
||||||
|
matrix_dynamic_dns_docker_src_files_path: "{{ matrix_dynamic_dns_base_path }}/docker-src"
|
||||||
|
|
||||||
|
# Holds the configurations (the domains to update DNS for, the providers they use, etc.)
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# matrix_dynamic_dns_domain_configurations:
|
||||||
|
# - provider: domains.google.com
|
||||||
|
# protocol: dyndn2
|
||||||
|
# username: XXXXXXXXXXXXXXXX
|
||||||
|
# password: XXXXXXXXXXXXXXXX
|
||||||
|
# domain: "{{ matrix_domain }}"
|
||||||
|
matrix_dynamic_dns_domain_configurations: []
|
||||||
|
|
||||||
|
# Config options
|
||||||
|
matrix_dynamic_dns_additional_configuration_blocks: []
|
||||||
|
matrix_dynamic_dns_use: "web"
|
3
roles/matrix-dynamic-dns/tasks/init.yml
Normal file
3
roles/matrix-dynamic-dns/tasks/init.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
- set_fact:
|
||||||
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-dynamic-dns'] }}"
|
||||||
|
when: "matrix_dynamic_dns_enabled|bool"
|
61
roles/matrix-dynamic-dns/tasks/install.yml
Normal file
61
roles/matrix-dynamic-dns/tasks/install.yml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure Dynamic DNS image is pulled
|
||||||
|
docker_image:
|
||||||
|
name: "{{ matrix_dynamic_dns_docker_image }}"
|
||||||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||||
|
force_source: "{{ matrix_dynamic_dns_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_dynamic_dns_docker_image_force_pull }}"
|
||||||
|
when: matrix_dynamic_dns_enabled|bool and not matrix_dynamic_dns_container_image_self_build
|
||||||
|
|
||||||
|
- name: Ensure Dynamic DNS paths exist
|
||||||
|
file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0751
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
with_items:
|
||||||
|
- { path: "{{ matrix_dynamic_dns_base_path }}", when: true }
|
||||||
|
- { path: "{{ matrix_dynamic_dns_config_path }}", when: true }
|
||||||
|
- { path: "{{ matrix_dynamic_dns_docker_src_files_path }}", when: "{{ matrix_dynamic_dns_container_image_self_build }}" }
|
||||||
|
when: matrix_dynamic_dns_enabled|bool and item.when|bool
|
||||||
|
|
||||||
|
- name: Ensure Dynamic DNS repository is present on self build
|
||||||
|
git:
|
||||||
|
repo: https://github.com/linuxserver/docker-ddclient.git
|
||||||
|
dest: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
||||||
|
force: "yes"
|
||||||
|
register: matrix_dynamic_dns_git_pull_results
|
||||||
|
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build|bool"
|
||||||
|
|
||||||
|
- name: Ensure Dynamic DNS Docker image is built
|
||||||
|
docker_image:
|
||||||
|
name: "{{ matrix_dynamic_dns_docker_image }}"
|
||||||
|
source: build
|
||||||
|
force_source: "{{ matrix_dynamic_dns_git_pull_results.changed }}"
|
||||||
|
build:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
path: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
||||||
|
pull: yes
|
||||||
|
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build|bool"
|
||||||
|
|
||||||
|
- name: Ensure Dynamic DNS ddclient.conf installed
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/ddclient.conf.j2"
|
||||||
|
dest: "{{ matrix_dynamic_dns_config_path }}/ddclient.conf"
|
||||||
|
mode: 0644
|
||||||
|
owner: "{{ matrix_user_username }}"
|
||||||
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
|
- name: Ensure matrix-dynamic-dns.service installed
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/systemd/matrix-dynamic-dns.service.j2"
|
||||||
|
dest: "/etc/systemd/system/matrix-dynamic-dns.service"
|
||||||
|
mode: 0644
|
||||||
|
register: matrix_dynamic_dns_systemd_service_result
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-dynamic-dns.service installation
|
||||||
|
service:
|
||||||
|
daemon_reload: yes
|
||||||
|
when: "matrix_dynamic_dns_systemd_service_result.changed"
|
21
roles/matrix-dynamic-dns/tasks/main.yml
Normal file
21
roles/matrix-dynamic-dns/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
- import_tasks: "{{ role_path }}/tasks/init.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
|
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
|
||||||
|
tags:
|
||||||
|
- setup-all
|
||||||
|
- setup-dynamic-dns
|
||||||
|
|
||||||
|
- import_tasks: "{{ role_path }}/tasks/install.yml"
|
||||||
|
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
|
||||||
|
tags:
|
||||||
|
- setup-all
|
||||||
|
- setup-dynamic-dns
|
||||||
|
|
||||||
|
- import_tasks: "{{ role_path }}/tasks/uninstall.yml"
|
||||||
|
when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool"
|
||||||
|
tags:
|
||||||
|
- setup-all
|
||||||
|
- setup-dynamic-dns
|
24
roles/matrix-dynamic-dns/tasks/uninstall.yml
Normal file
24
roles/matrix-dynamic-dns/tasks/uninstall.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Check existence of matrix-dynamic-dns service
|
||||||
|
stat:
|
||||||
|
path: "{{ matrix_systemd_path }}/matrix-dynamic-dns.service"
|
||||||
|
register: matrix_dynamic_dns_service_stat
|
||||||
|
|
||||||
|
- name: Ensure matrix-dynamic-dns is stopped
|
||||||
|
service:
|
||||||
|
name: matrix-dynamic-dns
|
||||||
|
state: stopped
|
||||||
|
daemon_reload: yes
|
||||||
|
when: "matrix_dynamic_dns_service_stat.stat.exists"
|
||||||
|
|
||||||
|
- name: Ensure matrix-dynamic-dns.service doesn't exist
|
||||||
|
file:
|
||||||
|
path: "{{ matrix_systemd_path }}/matrix-dynamic-dns.service"
|
||||||
|
state: absent
|
||||||
|
when: "matrix_dynamic_dns_service_stat.stat.exists"
|
||||||
|
|
||||||
|
- name: Ensure systemd reloaded after matrix-dynamic-dns.service removal
|
||||||
|
service:
|
||||||
|
daemon_reload: yes
|
||||||
|
when: "matrix_dynamic_dns_service_stat.stat.exists"
|
16
roles/matrix-dynamic-dns/tasks/validate_config.yml
Normal file
16
roles/matrix-dynamic-dns/tasks/validate_config.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Fail if no configurations specified
|
||||||
|
fail:
|
||||||
|
msg: >-
|
||||||
|
You need to define at least one configuration in `matrix_dynamic_dns_domain_configurations` for using matrix-dynamic-dns.
|
||||||
|
when: "matrix_dynamic_dns_domain_configurations|length == 0"
|
||||||
|
|
||||||
|
- name: Fail if required settings not defined in configuration blocks
|
||||||
|
fail:
|
||||||
|
msg: >-
|
||||||
|
One of the configurations in matrix_dynamic_dns_domain_configurations is missing a required key (domain, provider, protocol).
|
||||||
|
when: "'domain' not in configuration or 'provider' not in configuration or 'protocol' not in configuration"
|
||||||
|
with_items: "{{ matrix_dynamic_dns_domain_configurations }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: configuration
|
26
roles/matrix-dynamic-dns/templates/ddclient.conf.j2
Normal file
26
roles/matrix-dynamic-dns/templates/ddclient.conf.j2
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
daemon={{ matrix_dynamic_dns_daemon_interval }}
|
||||||
|
syslog=no
|
||||||
|
pid=/var/run/ddclient/ddclient.pid
|
||||||
|
ssl=yes
|
||||||
|
use={{ matrix_dynamic_dns_use }}
|
||||||
|
|
||||||
|
{% for dynamic_dns_domain_configuration in matrix_dynamic_dns_domain_configurations %}
|
||||||
|
protocol={{ dynamic_dns_domain_configuration.protocol }}
|
||||||
|
server={{ dynamic_dns_domain_configuration.provider }} {% if 'username' in dynamic_dns_domain_configuration %}
|
||||||
|
login='{{ dynamic_dns_domain_configuration.username }}' {% endif %} {% if 'password' in dynamic_dns_domain_configuration %}
|
||||||
|
password='{{ dynamic_dns_domain_configuration.password }}' {% endif %} {% if 'static' in dynamic_dns_domain_configuration %}
|
||||||
|
static=yes {% endif %} {% if 'custom' in dynamic_dns_domain_configuration %}
|
||||||
|
custom=yes {% endif %} {% if 'zone' in dynamic_dns_domain_configuration %}
|
||||||
|
zone={{ dynamic_dns_domain_configuration.zone }} {% endif %} {% if 'ttl' in dynamic_dns_domain_configuration %}
|
||||||
|
ttl={{ dynamic_dns_domain_configuration.ttl }} {% endif %} {% if 'mx' in dynamic_dns_domain_configuration %}
|
||||||
|
mx={{ dynamic_dns_domain_configuration.mx }} {% endif %} {% if 'wildcard' in dynamic_dns_domain_configuration %}
|
||||||
|
wildcard=yes {% endif %}
|
||||||
|
{{ dynamic_dns_domain_configuration.domain }}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
{% for matrix_dynamic_dns_additional_configuration in matrix_dynamic_dns_additional_configuration_blocks %}
|
||||||
|
{{ matrix_dynamic_dns_additional_configuration }}
|
||||||
|
|
||||||
|
{% endfor %}
|
|
@ -0,0 +1,34 @@
|
||||||
|
#jinja2: lstrip_blocks: "True"
|
||||||
|
[Unit]
|
||||||
|
Description=Matrix Dynamic DNS
|
||||||
|
{% for service in matrix_dynamic_dns_systemd_required_services_list %}
|
||||||
|
Requires={{ service }}
|
||||||
|
After={{ service }}
|
||||||
|
{% endfor %}
|
||||||
|
{% for service in matrix_dynamic_dns_systemd_wanted_services_list %}
|
||||||
|
Wants={{ service }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-dynamic-dns
|
||||||
|
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-dynamic-dns
|
||||||
|
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-dynamic-dns \
|
||||||
|
--log-driver=none \
|
||||||
|
--network={{ matrix_docker_network }} \
|
||||||
|
-e PUID={{ matrix_user_uid }} \
|
||||||
|
-e PGID={{ matrix_user_gid }} \
|
||||||
|
-v {{ matrix_dynamic_dns_config_path }}:/config:z \
|
||||||
|
{% for arg in matrix_dynamic_dns_container_extra_arguments %}
|
||||||
|
{{ arg }} \
|
||||||
|
{% endfor %}
|
||||||
|
{{ matrix_dynamic_dns_docker_image }}
|
||||||
|
|
||||||
|
ExecStop=-{{ matrix_host_command_docker }} kill matrix-dynamic-dns
|
||||||
|
ExecStop=-{{ matrix_host_command_docker }} rm matrix-dynamic-dns
|
||||||
|
Restart=always
|
||||||
|
RestartSec=30
|
||||||
|
SyslogIdentifier=matrix-dynamic-dns
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -3,7 +3,7 @@ matrix_email2matrix_enabled: true
|
||||||
matrix_email2matrix_base_path: "{{ matrix_base_data_path }}/email2matrix"
|
matrix_email2matrix_base_path: "{{ matrix_base_data_path }}/email2matrix"
|
||||||
matrix_email2matrix_config_dir_path: "{{ matrix_email2matrix_base_path }}/config"
|
matrix_email2matrix_config_dir_path: "{{ matrix_email2matrix_base_path }}/config"
|
||||||
|
|
||||||
matrix_email2matrix_docker_image: "devture/email2matrix:1.0.1"
|
matrix_email2matrix_docker_image: "docker.io/devture/email2matrix:1.0.1"
|
||||||
matrix_email2matrix_docker_image_force_pull: "{{ matrix_email2matrix_docker_image.endswith(':latest') }}"
|
matrix_email2matrix_docker_image_force_pull: "{{ matrix_email2matrix_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container
|
# A list of extra arguments to pass to the container
|
||||||
|
|
|
@ -51,9 +51,9 @@ matrix_jitsi_jibri_recorder_password: ''
|
||||||
|
|
||||||
matrix_jitsi_enable_lobby: false
|
matrix_jitsi_enable_lobby: false
|
||||||
|
|
||||||
matrix_jitsi_container_image_tag: "stable-4857"
|
matrix_jitsi_container_image_tag: "stable-5142"
|
||||||
|
|
||||||
matrix_jitsi_web_docker_image: "jitsi/web:{{ matrix_jitsi_container_image_tag }}"
|
matrix_jitsi_web_docker_image: "docker.io/jitsi/web:{{ matrix_jitsi_container_image_tag }}"
|
||||||
matrix_jitsi_web_docker_image_force_pull: "{{ matrix_jitsi_web_docker_image.endswith(':latest') }}"
|
matrix_jitsi_web_docker_image_force_pull: "{{ matrix_jitsi_web_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_jitsi_web_base_path: "{{ matrix_base_data_path }}/jitsi/web"
|
matrix_jitsi_web_base_path: "{{ matrix_base_data_path }}/jitsi/web"
|
||||||
|
@ -114,7 +114,7 @@ matrix_jitsi_web_config_constraints_video_height_ideal: 720
|
||||||
matrix_jitsi_web_config_constraints_video_height_max: 720
|
matrix_jitsi_web_config_constraints_video_height_max: 720
|
||||||
matrix_jitsi_web_config_constraints_video_height_min: 240
|
matrix_jitsi_web_config_constraints_video_height_min: 240
|
||||||
|
|
||||||
matrix_jitsi_prosody_docker_image: "jitsi/prosody:{{ matrix_jitsi_container_image_tag }}"
|
matrix_jitsi_prosody_docker_image: "docker.io/jitsi/prosody:{{ matrix_jitsi_container_image_tag }}"
|
||||||
matrix_jitsi_prosody_docker_image_force_pull: "{{ matrix_jitsi_prosody_docker_image.endswith(':latest') }}"
|
matrix_jitsi_prosody_docker_image_force_pull: "{{ matrix_jitsi_prosody_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_jitsi_prosody_base_path: "{{ matrix_base_data_path }}/jitsi/prosody"
|
matrix_jitsi_prosody_base_path: "{{ matrix_base_data_path }}/jitsi/prosody"
|
||||||
|
@ -128,7 +128,7 @@ matrix_jitsi_prosody_container_extra_arguments: []
|
||||||
matrix_jitsi_prosody_systemd_required_services_list: ['docker.service']
|
matrix_jitsi_prosody_systemd_required_services_list: ['docker.service']
|
||||||
|
|
||||||
|
|
||||||
matrix_jitsi_jicofo_docker_image: "jitsi/jicofo:{{ matrix_jitsi_container_image_tag }}"
|
matrix_jitsi_jicofo_docker_image: "docker.io/jitsi/jicofo:{{ matrix_jitsi_container_image_tag }}"
|
||||||
matrix_jitsi_jicofo_docker_image_force_pull: "{{ matrix_jitsi_jicofo_docker_image.endswith(':latest') }}"
|
matrix_jitsi_jicofo_docker_image_force_pull: "{{ matrix_jitsi_jicofo_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_jitsi_jicofo_base_path: "{{ matrix_base_data_path }}/jitsi/jicofo"
|
matrix_jitsi_jicofo_base_path: "{{ matrix_base_data_path }}/jitsi/jicofo"
|
||||||
|
@ -145,7 +145,7 @@ matrix_jitsi_jicofo_auth_user: focus
|
||||||
matrix_jitsi_jicofo_auth_password: ''
|
matrix_jitsi_jicofo_auth_password: ''
|
||||||
|
|
||||||
|
|
||||||
matrix_jitsi_jvb_docker_image: "jitsi/jvb:{{ matrix_jitsi_container_image_tag }}"
|
matrix_jitsi_jvb_docker_image: "docker.io/jitsi/jvb:{{ matrix_jitsi_container_image_tag }}"
|
||||||
matrix_jitsi_jvb_docker_image_force_pull: "{{ matrix_jitsi_jvb_docker_image.endswith(':latest') }}"
|
matrix_jitsi_jvb_docker_image_force_pull: "{{ matrix_jitsi_jvb_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_jitsi_jvb_base_path: "{{ matrix_base_data_path }}/jitsi/jvb"
|
matrix_jitsi_jvb_base_path: "{{ matrix_base_data_path }}/jitsi/jvb"
|
||||||
|
|
|
@ -7,7 +7,8 @@ matrix_ma1sd_container_image_self_build: false
|
||||||
|
|
||||||
matrix_ma1sd_architecture: "amd64"
|
matrix_ma1sd_architecture: "amd64"
|
||||||
|
|
||||||
matrix_ma1sd_docker_image: "ma1uta/ma1sd:2.4.0-{{ matrix_ma1sd_architecture }}"
|
matrix_ma1sd_docker_image: "{{ matrix_ma1sd_docker_image_name_prefix }}ma1uta/ma1sd:2.4.0-{{ matrix_ma1sd_architecture }}"
|
||||||
|
matrix_ma1sd_docker_image_name_prefix: "{{ 'localhost/' if matrix_ma1sd_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
|
matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
|
matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
dest: "{{ matrix_ma1sd_docker_src_files_path }}"
|
dest: "{{ matrix_ma1sd_docker_src_files_path }}"
|
||||||
version: "{{ matrix_ma1sd_docker_image.split(':')[1].split('-')[0] }}"
|
version: "{{ matrix_ma1sd_docker_image.split(':')[1].split('-')[0] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_ma1sd_git_pull_results
|
||||||
|
|
||||||
- name: Ensure ma1sd Docker image is built
|
- name: Ensure ma1sd Docker image is built
|
||||||
shell: "./gradlew dockerBuild"
|
shell: "./gradlew dockerBuild"
|
||||||
|
@ -64,7 +65,10 @@
|
||||||
|
|
||||||
- name: Ensure ma1sd Docker image is tagged correctly
|
- name: Ensure ma1sd Docker image is tagged correctly
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_ma1sd_docker_image.split('-')[0] }}"
|
# The build script always tags the image with something like `ma1uta/ma1sd:2.4.0`.
|
||||||
|
# Remove the `-{{ matrix_ma1sd_architecture }}` suffix and our `localhost/` prefix (applied when self-building)
|
||||||
|
# to get to what has actually been built, so we can retag it as `{{ matrix_ma1sd_docker_image }}`.
|
||||||
|
name: "{{ matrix_ma1sd_docker_image.split('-')[0].replace('localhost/', '') }}"
|
||||||
repository: "{{ matrix_ma1sd_docker_image }}"
|
repository: "{{ matrix_ma1sd_docker_image }}"
|
||||||
force_tag: yes
|
force_tag: yes
|
||||||
source: local
|
source: local
|
||||||
|
|
|
@ -7,7 +7,8 @@ matrix_mailer_container_image_self_build_repository_url: "https://github.com/dev
|
||||||
matrix_mailer_container_image_self_build_src_files_path: "{{ matrix_mailer_base_path }}/docker-src"
|
matrix_mailer_container_image_self_build_src_files_path: "{{ matrix_mailer_base_path }}/docker-src"
|
||||||
matrix_mailer_container_image_self_build_version: "{{ matrix_mailer_docker_image.split(':')[1] }}"
|
matrix_mailer_container_image_self_build_version: "{{ matrix_mailer_docker_image.split(':')[1] }}"
|
||||||
|
|
||||||
matrix_mailer_docker_image: "devture/exim-relay:4.93.1-r0"
|
matrix_mailer_docker_image: "{{ matrix_mailer_docker_image_name_prefix }}devture/exim-relay:4.93.1-r0"
|
||||||
|
matrix_mailer_docker_image_name_prefix: "{{ 'localhost/' if matrix_mailer_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mailer_docker_image_force_pull: "{{ matrix_mailer_docker_image.endswith(':latest') }}"
|
matrix_mailer_docker_image_force_pull: "{{ matrix_mailer_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# The user/group that the container runs with.
|
# The user/group that the container runs with.
|
||||||
|
|
|
@ -29,12 +29,14 @@
|
||||||
dest: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
dest: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
||||||
version: "{{ matrix_mailer_container_image_self_build_version }}"
|
version: "{{ matrix_mailer_container_image_self_build_version }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_mailer_container_image_self_build|bool"
|
register: matrix_mailer_git_pull_results
|
||||||
|
when: "matrix_mailer_enabled|bool and matrix_mailer_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure exim-relay Docker image is built
|
- name: Ensure exim-relay Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mailer_docker_image }}"
|
name: "{{ matrix_mailer_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mailer_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
path: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
||||||
|
|
|
@ -3,7 +3,7 @@ matrix_nginx_proxy_enabled: true
|
||||||
# We use an official nginx image, which we fix-up to run unprivileged.
|
# We use an official nginx image, which we fix-up to run unprivileged.
|
||||||
# An alternative would be an `nginxinc/nginx-unprivileged` image, but
|
# An alternative would be an `nginxinc/nginx-unprivileged` image, but
|
||||||
# that is frequently out of date.
|
# that is frequently out of date.
|
||||||
matrix_nginx_proxy_docker_image: "nginx:1.19.3-alpine"
|
matrix_nginx_proxy_docker_image: "docker.io/nginx:1.19.4-alpine"
|
||||||
matrix_nginx_proxy_docker_image_force_pull: "{{ matrix_nginx_proxy_docker_image.endswith(':latest') }}"
|
matrix_nginx_proxy_docker_image_force_pull: "{{ matrix_nginx_proxy_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_nginx_proxy_base_path: "{{ matrix_base_data_path }}/nginx-proxy"
|
matrix_nginx_proxy_base_path: "{{ matrix_base_data_path }}/nginx-proxy"
|
||||||
|
@ -150,10 +150,14 @@ matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container: "127.0.0.1:8008"
|
||||||
matrix_nginx_proxy_proxy_matrix_client_api_client_max_body_size_mb: 50
|
matrix_nginx_proxy_proxy_matrix_client_api_client_max_body_size_mb: 50
|
||||||
|
|
||||||
|
|
||||||
# Tells wheter `/_synapse/client` is forwarded to the Matrix Client API server.
|
# Tells whether `/_synapse/client` is forwarded to the Matrix Client API server.
|
||||||
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_client_api_enabled: true
|
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_client_api_enabled: true
|
||||||
|
|
||||||
# Tells wheter `/_synapse/admin` is forwarded to the Matrix Client API server.
|
# Tells whether `/_synapse/oidc` is forwarded to the Matrix Client API server.
|
||||||
|
# Enable this if you need OpenID Connect authentication support.
|
||||||
|
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_oidc_api_enabled: false
|
||||||
|
|
||||||
|
# Tells whether `/_synapse/admin` is forwarded to the Matrix Client API server.
|
||||||
# Following these recommendations (https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md), by default, we don't.
|
# Following these recommendations (https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md), by default, we don't.
|
||||||
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: false
|
matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: false
|
||||||
|
|
||||||
|
@ -166,6 +170,8 @@ matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_prefix_regexes: |
|
||||||
+
|
+
|
||||||
(['/_synapse/client'] if matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_client_api_enabled else [])
|
(['/_synapse/client'] if matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_client_api_enabled else [])
|
||||||
+
|
+
|
||||||
|
(['/_synapse/oidc'] if matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_oidc_api_enabled else [])
|
||||||
|
+
|
||||||
(['/_synapse/admin'] if matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled else [])
|
(['/_synapse/admin'] if matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled else [])
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -253,7 +259,7 @@ matrix_ssl_domains_to_obtain_certificates_for: []
|
||||||
|
|
||||||
# Controls whether to obtain production or staging certificates from Let's Encrypt.
|
# Controls whether to obtain production or staging certificates from Let's Encrypt.
|
||||||
matrix_ssl_lets_encrypt_staging: false
|
matrix_ssl_lets_encrypt_staging: false
|
||||||
matrix_ssl_lets_encrypt_certbot_docker_image: "certbot/certbot:{{ matrix_ssl_architecture }}-v1.9.0"
|
matrix_ssl_lets_encrypt_certbot_docker_image: "docker.io/certbot/certbot:{{ matrix_ssl_architecture }}-v1.9.0"
|
||||||
matrix_ssl_lets_encrypt_certbot_docker_image_force_pull: "{{ matrix_ssl_lets_encrypt_certbot_docker_image.endswith(':latest') }}"
|
matrix_ssl_lets_encrypt_certbot_docker_image_force_pull: "{{ matrix_ssl_lets_encrypt_certbot_docker_image.endswith(':latest') }}"
|
||||||
matrix_ssl_lets_encrypt_certbot_standalone_http_port: 2402
|
matrix_ssl_lets_encrypt_certbot_standalone_http_port: 2402
|
||||||
matrix_ssl_lets_encrypt_support_email: ~
|
matrix_ssl_lets_encrypt_support_email: ~
|
||||||
|
@ -269,6 +275,10 @@ matrix_ssl_base_path: "{{ matrix_base_data_path }}/ssl"
|
||||||
matrix_ssl_config_dir_path: "{{ matrix_ssl_base_path }}/config"
|
matrix_ssl_config_dir_path: "{{ matrix_ssl_base_path }}/config"
|
||||||
matrix_ssl_log_dir_path: "{{ matrix_ssl_base_path }}/log"
|
matrix_ssl_log_dir_path: "{{ matrix_ssl_base_path }}/log"
|
||||||
|
|
||||||
|
# If you'd like to start some service before a certificate is obtained, specify it here.
|
||||||
|
# This could be something like `matrix-dynamic-dns`, etc.
|
||||||
|
matrix_ssl_pre_obtaining_required_service_name: ~
|
||||||
|
matrix_ssl_pre_obtaining_required_service_start_wait_time_seconds: 60
|
||||||
|
|
||||||
# nginx status page configurations.
|
# nginx status page configurations.
|
||||||
matrix_nginx_proxy_proxy_matrix_nginx_status_enabled: false
|
matrix_nginx_proxy_proxy_matrix_nginx_status_enabled: false
|
||||||
|
|
|
@ -12,6 +12,19 @@
|
||||||
- set_fact:
|
- set_fact:
|
||||||
domain_name_needs_cert: "{{ not domain_name_certificate_path_stat.stat.exists }}"
|
domain_name_needs_cert: "{{ not domain_name_certificate_path_stat.stat.exists }}"
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: Ensure required service for obtaining is started
|
||||||
|
service:
|
||||||
|
name: "{{ matrix_ssl_pre_obtaining_required_service_name }}"
|
||||||
|
state: started
|
||||||
|
register: matrix_ssl_pre_obtaining_required_service_start_result
|
||||||
|
|
||||||
|
- name: Wait some time, so that the required service for obtaining can start
|
||||||
|
wait_for:
|
||||||
|
timeout: "{{ matrix_ssl_service_to_start_before_obtaining_start_wait_time_seconds }}"
|
||||||
|
when: "matrix_ssl_pre_obtaining_required_service_start_result.changed|bool"
|
||||||
|
when: "domain_name_needs_cert|bool and matrix_ssl_pre_obtaining_required_service_name != ''"
|
||||||
|
|
||||||
# This will fail if there is something running on port 80 (like matrix-nginx-proxy).
|
# This will fail if there is something running on port 80 (like matrix-nginx-proxy).
|
||||||
# We suppress the error, as we'll try another method below.
|
# We suppress the error, as we'll try another method below.
|
||||||
- name: Attempt initial SSL certificate retrieval with standalone authenticator (directly)
|
- name: Attempt initial SSL certificate retrieval with standalone authenticator (directly)
|
||||||
|
|
|
@ -8,11 +8,11 @@ matrix_postgres_db_name: ""
|
||||||
matrix_postgres_base_path: "{{ matrix_base_data_path }}/postgres"
|
matrix_postgres_base_path: "{{ matrix_base_data_path }}/postgres"
|
||||||
matrix_postgres_data_path: "{{ matrix_postgres_base_path }}/data"
|
matrix_postgres_data_path: "{{ matrix_postgres_base_path }}/data"
|
||||||
|
|
||||||
matrix_postgres_docker_image_v9: "postgres:9.6.19-alpine"
|
matrix_postgres_docker_image_v9: "docker.io/postgres:9.6.19-alpine"
|
||||||
matrix_postgres_docker_image_v10: "postgres:10.14-alpine"
|
matrix_postgres_docker_image_v10: "docker.io/postgres:10.14-alpine"
|
||||||
matrix_postgres_docker_image_v11: "postgres:11.9-alpine"
|
matrix_postgres_docker_image_v11: "docker.io/postgres:11.9-alpine"
|
||||||
matrix_postgres_docker_image_v12: "postgres:12.4-alpine"
|
matrix_postgres_docker_image_v12: "docker.io/postgres:12.4-alpine"
|
||||||
matrix_postgres_docker_image_v13: "postgres:13.0-alpine"
|
matrix_postgres_docker_image_v13: "docker.io/postgres:13.0-alpine"
|
||||||
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v13 }}"
|
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v13 }}"
|
||||||
|
|
||||||
# This variable is assigned at runtime. Overriding its value has no effect.
|
# This variable is assigned at runtime. Overriding its value has no effect.
|
||||||
|
|
|
@ -12,7 +12,8 @@ matrix_registration_docker_src_files_path: "{{ matrix_registration_base_path }}/
|
||||||
|
|
||||||
matrix_registration_version: "v0.7.0"
|
matrix_registration_version: "v0.7.0"
|
||||||
|
|
||||||
matrix_registration_docker_image: "devture/zeratax-matrix-registration:{{ matrix_registration_version }}"
|
matrix_registration_docker_image: "{{ matrix_registration_docker_image_name_prefix }}devture/zeratax-matrix-registration:{{ matrix_registration_version }}"
|
||||||
|
matrix_registration_docker_image_name_prefix: "{{ 'localhost/' if matrix_registration_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_registration_docker_image_force_pull: "{{ matrix_registration_docker_image.endswith(':latest') }}"
|
matrix_registration_docker_image_force_pull: "{{ matrix_registration_docker_image.endswith(':latest') }}"
|
||||||
matrix_registration_docker_repo: "https://github.com/ZerataX/matrix-registration"
|
matrix_registration_docker_repo: "https://github.com/ZerataX/matrix-registration"
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,12 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_registration_docker_image }}"
|
name: "{{ matrix_registration_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_registration_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_registration_docker_src_files_path }}"
|
path: "{{ matrix_registration_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_registration_enabled|bool and matrix_registration_container_image_self_build|bool and matrix_registration_git_pull_results.changed"
|
when: "matrix_registration_enabled|bool and matrix_registration_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure matrix-registration config installed
|
- name: Ensure matrix-registration config installed
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -7,7 +7,8 @@ matrix_synapse_admin_container_self_build: false
|
||||||
matrix_synapse_admin_docker_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
|
matrix_synapse_admin_docker_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
|
||||||
matrix_synapse_admin_docker_src_files_path: "{{ matrix_base_data_path }}/synapse-admin/docker-src"
|
matrix_synapse_admin_docker_src_files_path: "{{ matrix_base_data_path }}/synapse-admin/docker-src"
|
||||||
|
|
||||||
matrix_synapse_admin_docker_image: "awesometechnologies/synapse-admin:0.5.0"
|
matrix_synapse_admin_docker_image: "{{ matrix_synapse_admin_docker_image_name_prefix }}awesometechnologies/synapse-admin:0.5.0"
|
||||||
|
matrix_synapse_admin_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_admin_container_self_build else 'docker.io/' }}"
|
||||||
matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
|
matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container
|
# A list of extra arguments to pass to the container
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_synapse_admin_docker_image }}"
|
name: "{{ matrix_synapse_admin_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_synapse_admin_git_pull_results }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_synapse_admin_docker_src_files_path }}"
|
path: "{{ matrix_synapse_admin_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_synapse_admin_enabled|bool and matrix_synapse_admin_container_self_build|bool and matrix_synapse_admin_git_pull_results.changed"
|
when: "matrix_synapse_admin_enabled|bool and matrix_synapse_admin_container_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure matrix-synapse-admin.service installed
|
- name: Ensure matrix-synapse-admin.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -5,7 +5,8 @@ matrix_synapse_enabled: true
|
||||||
|
|
||||||
matrix_synapse_container_image_self_build: false
|
matrix_synapse_container_image_self_build: false
|
||||||
|
|
||||||
matrix_synapse_docker_image: "matrixdotorg/synapse:v1.22.1"
|
matrix_synapse_docker_image: "{{ matrix_synapse_docker_image_name_prefix }}matrixdotorg/synapse:v1.22.1"
|
||||||
|
matrix_synapse_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
|
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
|
matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
|
||||||
|
|
|
@ -24,17 +24,19 @@
|
||||||
dest: "{{ matrix_synapse_docker_src_files_path }}"
|
dest: "{{ matrix_synapse_docker_src_files_path }}"
|
||||||
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
|
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_synapse_container_image_self_build"
|
register: matrix_synapse_git_pull_results
|
||||||
|
when: "matrix_synapse_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Synapse Docker image is built
|
- name: Ensure Synapse Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_synapse_docker_image }}"
|
name: "{{ matrix_synapse_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_synapse_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
path: "{{ matrix_synapse_docker_src_files_path }}"
|
path: "{{ matrix_synapse_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_synapse_container_image_self_build"
|
when: "matrix_synapse_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Synapse Docker image is pulled
|
- name: Ensure Synapse Docker image is pulled
|
||||||
docker_image:
|
docker_image:
|
||||||
|
|
Loading…
Reference in a new issue