move matrix variables to pottwal playbook

This commit is contained in:
teuserer 2025-04-13 17:35:32 +02:00
parent bde8f4ee71
commit 35909a7f5e
3 changed files with 20 additions and 10 deletions
group_vars/all
host-pottwal.yml
host_vars/pottwal.n39.eu

View file

@ -1,3 +0,0 @@
# Matrix configuration
matrix_domain_name: "matrix.n39.eu"
matrix_admin_password: "{{ lookup('password', '/dev/null length=32 chars=ascii_letters,digits') }}"

View file

@ -41,13 +41,10 @@
# RabbitMQ setup can be found in the inventory
- role: netz39.matrix_synapse
vars:
matrix_server_name: "{{ matrix_domain_name }}"
matrix_database_host: "localhost"
matrix_register_admin: true
matrix_admin_password: "{{ matrix_admin_password }}"
matrix_ssl_enabled: true
matrix_ssl_cert_path: "/etc/letsencrypt/live/{{ matrix_domain_name }}/fullchain.pem"
matrix_ssl_key_path: "/etc/letsencrypt/live/{{ matrix_domain_name }}/privkey.pem"
matrix_data_path: "{{ data_dir }}/matrix/data"
matrix_media_path: "{{ data_dir }}/matrix/media"
matrix_postgres_data_path: "{{ data_dir }}/matrix/postgres"
matrix_http_port: "{{ matrix_host_port }}"
tasks:
@ -636,6 +633,14 @@
tags:
- homebox
- name: Setup proxy site "{{ matrix_domain_name }}"
ansible.builtin.include_role:
name: setup_http_site_proxy
vars:
site_name: "{{ matrix_domain_name }}"
proxy_port: "{{ matrix_host_port }}"
tags: ["matrix"]
- name: Setup proxy site spaceapi.n39.eu
ansible.builtin.template:
src: templates/pottwal/spaceapi-apache-site.j2

View file

@ -63,3 +63,11 @@ renovate_image: renovate/renovate:39.220.1
renovate_forgejo_pat: "{{ vault_renovate_forgejo_pat }}"
renovate_github_pat: "{{ vault_renovate_github_pat }}"
renovate_git_user: "Renovate Bot <accounts+renovatebot@netz39.de>"
matrix_host_port: 8008
matrix_domain_name: matrix.n39.eu
matrix_docker_image: matrixdotorg/synapse:v1.128.0
matrix_postgres_docker_image: postgres:17.4-alpine
matrix_database_password: "{{ vault_matrix_database_password }}"
matrix_register_admin: true
matrix_admin_password: "{{ vault_matrix_admin_password }}"