Skip to content

Commit

Permalink
Matrix Setup mittels Ansible spantaleev#510
Browse files Browse the repository at this point in the history
  • Loading branch information
GGeorggg committed Jun 2, 2024
1 parent bbab5a3 commit ea52474
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
# ignore roles pulled by ansible-galaxy
/roles/galaxy/*
!/roles/galaxy/.gitkeep
/setup.retry
/setup.yml~
46 changes: 43 additions & 3 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
[defaults]
retry_files_enabled = False
stdout_callback = yaml

[connection]
stderr_callback = debug
#stdout_callback = debug
display_failed_stderr = no
display_ok_hosts = yes
display_skipped_hosts = yes
show_custom_stats = yes
display_args_to_stdout = yes
show_per_host_start = true
retry_files_enabled = true
host_key_checking = False
pipelining = True
#handler_includes_static = True
callback_plugins = plugins/callback_plugins
connection_plugins = plugins/ansible_mitogen/plugins/connection
#allow_world_readable_tmpfiles = true
log_path=ansible.log
cache_plugin=yaml
fact_caching_prefix = None
fact_caching_timeout = 86400
fact_caching_connection = .cache/
forks = 10
action_plugins = ~/.ansible/collections:plugins/ansible_mitogen/plugins/action
strategy_plugins = ~/.ansible/collections:plugins/ansible_mitogen/plugins/strategy
collections_path = ~/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections
strategy = mitogen_linear
gather_timeout = 60
timeout = 90
connect_timeout= 60
interpreter_python = /usr/bin/python3

[inventory]
cache=True

[ssh_connection]
# use to benchmark ssh ciphers
## for i in `ssh -Q cipher`; do dd if=/dev/zero bs=1M count=1000 2> /dev/null | ssh -c $i localhost "(time -p cat) > /dev/null" 2>&1 | grep real | awk '{print "'$i': "1000 / $2" MB/s" }'; done
ssh_args = -o ControlPath=~/.ansible/%h%p%r -o ControlMaster=Auto -o KbdInteractiveAuthentication=no -o TCPKeepAlive=yes -o ForwardAgent=yes -o ControlPersist=300s -c [email protected],[email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected] -o PreferredAuthentications=publickey -o PasswordAuthentication=no
retries=4

[paramiko]
record_host_keys=False

[galaxy]
server = https://old-galaxy.ansible.com/
50 changes: 25 additions & 25 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

roles:
# Most of the roles below are not distributed with the playbook, but downloaded separately using `ansible-galaxy` via the `just roles` command (see `justfile`).
- role: galaxy/playbook_help
- role: playbook_help
tags:
- setup-all
- install-all

- role: galaxy/systemd_docker_base
- role: systemd_docker_base

- role: custom/matrix_playbook_migration

- when: matrix_playbook_docker_installation_enabled | bool
role: galaxy/docker
role: docker
vars:
docker_install_compose: false
docker_install_compose_plugin: false
Expand All @@ -26,15 +26,15 @@
- install-all

- when: devture_docker_sdk_for_python_installation_enabled | bool
role: galaxy/docker_sdk_for_python
role: docker_sdk_for_python
tags:
- setup-docker
- setup-all
- install-docker
- install-all

- when: devture_timesync_installation_enabled | bool
role: galaxy/timesync
role: timesync
tags:
- setup-timesync
- setup-all
Expand All @@ -43,12 +43,12 @@

- custom/matrix-base
- custom/matrix-dynamic-dns
- galaxy/exim_relay
- exim_relay

- role: galaxy/postgres
- role: postgres

- galaxy/redis
- galaxy/keydb
- redis
- keydb
- custom/matrix-corporal
- custom/matrix-appservice-draupnir-for-all
- custom/matrix-bridge-appservice-discord
Expand Down Expand Up @@ -100,56 +100,56 @@
- custom/matrix-dendrite
- custom/matrix-conduit
- custom/matrix-synapse-admin
- galaxy/prometheus_node_exporter
- galaxy/prometheus_postgres_exporter
- prometheus_node_exporter
- prometheus_postgres_exporter
- custom/matrix-prometheus-nginxlog-exporter
- galaxy/prometheus
- galaxy/grafana
- prometheus
- grafana
- custom/matrix-prometheus-services-connect
- custom/matrix-registration
- custom/matrix-client-element
- custom/matrix-client-hydrogen
- custom/matrix-client-cinny
- custom/matrix-client-schildichat
- galaxy/jitsi
- jitsi
- custom/matrix-user-verification-service
- custom/matrix-ldap-registration-proxy
- custom/matrix-ma1sd
- custom/matrix-dimension
- galaxy/etherpad
- etherpad
- custom/matrix-sliding-sync
- custom/matrix-email2matrix
- custom/matrix-sygnal
- galaxy/ntfy
- ntfy
- custom/matrix-static-files
- custom/matrix-coturn
- custom/matrix-media-repo
- custom/matrix-pantalaimon

- role: galaxy/postgres_backup
- role: postgres_backup

- role: galaxy/backup_borg
- role: backup_borg

- custom/matrix-user-creator
- custom/matrix-common-after

- role: galaxy/container_socket_proxy
- role: container_socket_proxy

- role: galaxy/traefik
- role: traefik

- role: galaxy/traefik_certs_dumper
- role: traefik_certs_dumper

- role: galaxy/auxiliary
- role: auxiliary

- when: devture_systemd_service_manager_enabled | bool
role: galaxy/systemd_service_manager
role: systemd_service_manager

# This is pretty much last, because we want it to better serve as a "last known good configuration".
# See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2217#issuecomment-1301487601
- when: devture_playbook_state_preserver_enabled | bool
role: galaxy/playbook_state_preserver
role: playbook_state_preserver
tags:
- setup-all
- install-all

- role: galaxy/playbook_runtime_messages
- role: playbook_runtime_messages

0 comments on commit ea52474

Please sign in to comment.