Template out matrix vars a bit more nicely, make config changes

This commit is contained in:
Salt 2020-06-23 09:47:48 -05:00
parent a26e3630f0
commit 44b3b99990
6 changed files with 16 additions and 16 deletions

View File

@ -62,6 +62,12 @@ grafana_mysql_password: !vault |
grafana_url: "monitor.9iron.club"
grafana_webroot: "/var/www/grafana"
# Matrix
matrix_server_name: "9iron.club"
matrix_url: "matrix.9iron.club"
matrix_webroot: "/var/www/riot"
matrix_enable_registration: "true"
# Nextcloud
nextcloud_mysql_password: !vault |
$ANSIBLE_VAULT;1.1;AES256

View File

@ -0,0 +1,4 @@
# vim:ft=ansible:
matrix_admin_contact: "mailto:rehashedsalt@cock.li"
matrix_disabled_message: "Matrix on this server is down for maintenance"
matrix_enable_registration: "false"

View File

@ -31,9 +31,9 @@ listeners:
compress: false
## Homeserver blocking ##
admin_contact: 'mailto:rehashedsalt@cock.li'
admin_contact: '{{ matrix_admin_contact }}'
#hs_disabled: false
#hs_disabled_message: 'Matrix on this server is down for maintenance'
#hs_disabled_message: '{{ matrix_disabled_message }}'
retention:
enabled: true
default_policy:

View File

@ -1,9 +1,3 @@
# This file is autogenerated, and will be recreated on upgrade if it is deleted.
# Any changes you make will be preserved.
# The domain name of the server, with optional explicit port.
# This is used by remote servers to connect to this server,
# e.g. matrix.org, localhost:8080, etc.
# This is also the last part of your UserID.
#
# This file is managed via Ansible; any changes here will be overwritten
# And rightfully so. Don't screw with this
server_name: {{ matrix_server_name }}

View File

@ -1,3 +1,4 @@
# This file contains shared secrets so you can leave them out of homeserver.yaml
# This file is managed via Ansible; any changes here will be overwritten
# And rightfully so. Don't screw with this
registration_shared_secret: {{ matrix_reg_secret.stdout }}
turn_shared_secret: {{ matrix_turn_secret.stdout }}

View File

@ -9,11 +9,6 @@
- role: backups
tags: [ backups ]
- role: matrix
vars:
matrix_server_name: "9iron.club"
matrix_url: "matrix.9iron.club"
matrix_webroot: "/var/www/riot"
matrix_enable_registration: "true"
tags: [ fedi, matrix ]
- hosts: web1
roles: