matrix config

This commit is contained in:
Hadrien 2022-06-14 23:15:18 +02:00
parent c1cacb6291
commit 87bc16a142
2 changed files with 72 additions and 2861 deletions

View File

@ -1,45 +1,3 @@
---
# - hosts: synapse
# # todo: create user for synapse
# vars:
# matrix_synapse_version: "v1.5.1-py3"
# # matrix_synapse_version: "v1.5.1"
# matrix_server_name: matrix-sonic-beta.local
# matrix_bind_address: "192.168.42.4"
# matrix_synapse_pg_host: synapse-postgres # does it need to be an IP?
# matrix_synapse_db_name: psycopg2
# matrix_synapse_pg_user: "synapse"
# matrix_synapse_pg_pass: "pomme"
# matrix_synapse_pg_db: "synapse"
# matrix_registration_shared_secret: "xxxxx"
# matrix_synapse_report_stats: false
# matrix_synapse_config_path: "/etc/matrix-synapse/homeserver.yaml"
# # to implement
# # matrix_no_tls: true
# tasks:
# # - docker_volume:
# # name: synapse-data
# - template:
# src: templates/synapse_homeserver.yaml.j2
# dest: {{ matrix_synapse_config_path }}
# - template:
# src: templates/docker-compose-matrix.yml.j2
# dest: /etc/docker/docker-compose.yml
# - name: Create and start matrix services
# docker_compose:
# project_src: matrix
# register: output
# # uploads_path: "/var/lib/matrix-synapse/uploads"
# # media_store_path: "/var/lib/matrix-synapse/media"
# ---
- hosts: octo.fuz.re - hosts: octo.fuz.re
tasks: tasks:
- name: synapse installé et upgradé - name: synapse installé et upgradé
@ -51,4 +9,20 @@
src: templates/homeserver.yaml.j2 src: templates/homeserver.yaml.j2
dest: /etc/matrix-synapse/homeserver.yaml dest: /etc/matrix-synapse/homeserver.yaml
vars: vars:
- matrix_server_name: matrix.fuz.re - matrix_server_name: matrix.fuz.re
- synapse_postgres_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
65636365623364333261383933393663356536646562653539343765663631613333323231613564
3836333964313235373865376235373934323861396339330a353637633333386434306533363166
36373238633939303261666263303562653233313339326638393032343531613435326436393739
6535346265653732380a363738333836366334633264303130336435323637303037373563306266
3235
- synapse_turn_password:
!vault |
$ANSIBLE_VAULT;1.1;AES256
32616461613066343434373265376663653230393837313264636130623963383636333739333561
6434613031303161656531303639633437613132336131660a333466356165616434646366333765
31653164633930326434643339616231616235613062663733326339653830306566313735306339
3831646665393963390a636332353233396462663831623966373437306531663331333233363361
31383766356137636661306134326236656666623432656163616132663530343566

File diff suppressed because it is too large Load Diff