Commit graph

2919 commits

Author SHA1 Message Date
Aine a1469c8e14
Update Element v1.11.0 -> v1.11.1 2022-07-26 16:08:04 +00:00
Slavi Pantaleev 10a5b0d831 Add warnings about using Borg backup with external Postgres
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1982
2022-07-26 17:31:06 +03:00
Slavi Pantaleev 9c15474d94 Upgrade Grafana (9.0.4 -> 9.0.5) 2022-07-26 17:10:00 +03:00
Slavi Pantaleev c85c062c01 Upgrade ddclient (v3.9.1-ls92 -> v3.9.1-ls93) 2022-07-26 09:08:33 +03:00
Slavi Pantaleev 532c4ffb71 Use force=false for appservice-kakaotalk-node
Not that it matters. This option is only used when `type` is `unix`.
2022-07-25 16:54:37 +03:00
Slavi Pantaleev e5c4731f68 Use kakaotalk_ as the puppet prefix
This is what upstream uses and also what
https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1977
used.

Initially, I wanted to make the prefix more unique, in case another
Kakaotalk bridge comes along, but.. it's probably on the new bridge to
come up with a unique puppet prefix, not on us now to override upstream
decisions.
2022-07-25 16:01:15 +03:00
Slavi Pantaleev d14e499365 Add dedicated variables for controlling Kakaotalk encryption 2022-07-25 16:01:15 +03:00
Slavi Pantaleev 7b937cf9a9 Make ansible-lint happy 2022-07-25 16:01:15 +03:00
Slavi Pantaleev e46ba5deba Add matrix-appservice-kakaotalk support
Adds support for: https://src.miscworks.net/fair/matrix-appservice-kakaotalk

This is pretty similar to
https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1977
which just appeared, but has mostly been done independently.

I've taken some inspiration and did some fixups based on that PR.
Thanks to https://github.com/hnarjis for taking the time to contribute!

Notable differences between this branch compared to that PR:

- better naming and documentation around the "configuration" variables
- no unnecessary (5 sec.) intentional delay when starting `matrix-appservice-kakaotalk-node.service`
- stores configuration in `config/`, not in `data/`
- passes configuration as read-only and starts the bridge with (`--no-update`) to ensure no changes are made to it
- starts containers more securely - with `matrix:matrix` user:group (not `root`) and
  reduced capabilities (`--cap-drop=ALL`)
- uses `tcp` for communication between the "node" and the appservice (simpler than sharing unix sockets)
- `registration.yaml` which is closer to the one generated by `matrix-appservice-kakaotalk` (no `de.sorunome.msc2409.push_ephemeral` stuff, etc.)
- `registration.yaml` which is more customizable (customizable bot username and prefix for puppets - see `matrix_appservice_kakaotalk_appservice_bot_username` and `matrix_appservice_kakaotalk_user_prefix`)
- less fragile and more extensible bridge permissions configuration via `matrix_appservice_kakaotalk_bridge_permissions`. Doing `{% if matrix_admin %}` in the bridge configuration sometimes causes syntax problems (I hit some myself) and is not ideal. Other bridges should be redone as well.
- configurable command prefix for the bridge, instead of hardcoding `!kt` (see `matrix_appservice_kakaotalk_command_prefix`)
- logging that is more consistent with the rest of the playbook (console / journald only, no logging to files), as well as configurable log level (via `matrix_appservice_kakaotalk_logging_level`)
- somewhat more detailed documentation (`docs/configuring-playbook-bridge-appservice-kakaotalk.md`)
- removed some dead code (data relocation tasks from `tasks/setup_install.yml`, as well as likely unnecessary SQLite -> Postgres migration)
2022-07-25 16:01:15 +03:00
Slavi Pantaleev 163a423f42 Fix ansible-lint error 2022-07-25 16:01:04 +03:00
Slavi Pantaleev ac72879bf5 Make bridge permissions more easily configurable
Not doing {% if matrix_admin %} checks in the YAML also fixes some issues
with indentation being incorrect sometimes.

This should be backward compatible, except for mautrix-signal's case
where `matrix_mautrix_signal_bridge_permissions` previously existed
as a string, not a dictionary. `tasks/validate_config.yml` will catch
the problem an even provide a quick fix.
2022-07-25 15:57:16 +03:00
Slavi Pantaleev b2f47fcfcd Make linkedin logging level configurable 2022-07-25 15:57:16 +03:00
Slavi Pantaleev 9e65ba3298
Merge pull request #1958 from xangelix/migrate-mx-puppet-groupme-repo
Migrate mx-puppet-groupme to new repo
2022-07-25 15:15:06 +03:00
Slavi Pantaleev 53ea0ccca5 Fix linkedin bridge building regression
Regression since 1693c4ca1d

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1975
2022-07-23 09:07:34 +03:00
MdotAmaan 8621ff1379 Add Mautrix Discord Bridge 2022-07-22 18:55:44 +04:00
Maxdeso 75961359fb dendrite_recaptcha_siteverify_api 2022-07-21 20:54:56 +03:00
Slavi Pantaleev 1f9c7e746d
Merge pull request #1967 from aaronraimist/hydrogen
Allow new Hydrogen options from #1940 to be customized
2022-07-21 18:26:33 +03:00
Aaron Raimist 14296db9ef
Update roles/matrix-client-hydrogen/defaults/main.yml
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2022-07-21 15:24:08 +00:00
Slavi Pantaleev 4155ed2518 Leave docker_image module calls unprefixed to increase compatibility
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1965
2022-07-21 11:24:47 +03:00
Aaron Raimist b8d3453e32
lint 2022-07-21 03:17:34 +00:00
Aaron Raimist 0e77d2c2f5
lint 2022-07-21 03:15:35 +00:00
Aaron Raimist ca5d7df161
Allow new Hydrogen options from #1940 to be customized 2022-07-21 03:12:42 +00:00
Simone db604f81ec Upgrade heisenbridge 1.13.0 1.13.1 2022-07-20 19:21:23 +02:00
Aine 592c88b021
Update Grafana 9.0.3 -> 9.0.4 2022-07-20 16:52:03 +00:00
Slavi Pantaleev 89bd25995a Upgrade Synapse (v1.63.0 -> v1.63.1) 2022-07-20 16:06:01 +03:00
Slavi Pantaleev 90551e82ec Make use of matrix_bot_maubot_management_interface_port variable to actually make maubot port configurable
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 13:06:11 +03:00
Slavi Pantaleev 8a689813ff Remove unused maubot variable
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 13:04:35 +03:00
Slavi Pantaleev 5ce2732899 Make maubot logging level configurable
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 13:03:50 +03:00
Slavi Pantaleev b575409ed7 Use |to_json in maubot configuration
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 13:02:19 +03:00
Slavi Pantaleev d2fb6a86e1 Fix matrix-bot-maubot.service.j2 indentation (tabs only)
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 12:55:15 +03:00
Slavi Pantaleev 46ced6134c Store maubot configuration separately from data
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894

Because the configuration file is now mounted as readonly and maubot tries to update it on start,
we get this warning:
> Failed to create tempfile to write updated config to disk: [Errno 30] Read-only file system: '/config/tmpfa8vcb3y.yaml'

It doesn't seem to cause issues though.

Because the configuration is no longer overwritten on every bot start, each
next Ansible run should no longer overwrite it again and report a
"changed" task.
2022-07-20 12:54:43 +03:00
Slavi Pantaleev d1649ff67b Do not restart matrix-bot-maubot.service on every playbook run
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
2022-07-20 12:40:30 +03:00
Julian-Samuel Gebühr b20cfc5015
Clear up maubot role (#1960)
* Make interface hidden behind proxy by default

* Remove expose option and replace with http_bind_port

Reasoning: This is a similar binary trigger but allows to bin not on all interfaces

* Clarify maubot admin purpose

* Remove unnecessary edif

* Extend docs to prevent common misconceptions

* Make http_bind_port singular, do not allow multiple values

* Make optional again
2022-07-20 12:23:32 +03:00
Slavi Pantaleev a1bfad1e9b Fix whitespace in matrix_bot_maubot_database_connection_string 2022-07-20 11:16:49 +03:00
Slavi Pantaleev b8832e3014 Fix some Jinja2 inconsistencies in maubot role 2022-07-20 10:27:13 +03:00
Slavi Pantaleev 1f2d100d91
Merge pull request #1894 from moan0s/maubot_moanos
Maubot moanos
2022-07-20 10:10:14 +03:00
Slavi Pantaleev e306d0051e
Add project introduction to maubot's defaults file 2022-07-20 10:07:03 +03:00
Slavi Pantaleev 492d430cb0 Revert "Revert "Update Hookshot 1.8.0 -> 1.8.1""
This reverts commit 65bfc1396e.

The 1.8.1 image is published now, so we can finally upgrade.
2022-07-20 10:01:42 +03:00
Julian-Samuel Gebühr f2dcbe5c9c Name all tasks 2022-07-20 09:00:47 +02:00
Julian-Samuel Gebühr 04a817aeaa Use explicit version for self build 2022-07-20 08:55:10 +02:00
Julian-Samuel Gebühr f8a8870711 Use FQCN 2022-07-20 08:52:58 +02:00
Julian-Samuel Gebühr d2e6ab6c38 Fix some CI lint errors 2022-07-20 08:41:17 +02:00
Julian-Samuel Gebühr 73ebbdcacd Move maubot nginx config
Reasoning: setup_install.yml only runs on --tags=setup-all or on --tags=setup-bot-maubot.

If --tags=setup-nginx-proxy or similar commands are run, setup_install.yml will not run and the nginx configuration will be incomplete.
2022-07-20 08:29:03 +02:00
Julian-Samuel Gebühr d6d311e810 Fix plugin database issue 2022-07-20 08:27:20 +02:00
Cody Wyatt Neiman 1dea35209b
Fix self-build error image names 2022-07-19 19:46:45 -04:00
Cody Wyatt Neiman dbddd9f989
Migrate mx-puppet-groupme to new repo 2022-07-19 19:02:32 -04:00
Slavi Pantaleev a4a1796518
Merge pull request #1955 from etkecc/patch-28
Update Coturn 4.5.2-r12 -> 4.5.2-r13
2022-07-19 18:40:38 +03:00
Slavi Pantaleev 2a131fd507
Merge pull request #1954 from aaronraimist/stats
Update telemetry documentation to more closely match upstream
2022-07-19 18:38:29 +03:00
Aine 66d4c7e072
[DO NOT MERGE]Update Coturn 4.5.2-r12 -> 4.5.2-r13
**no docker tag yet**, [keep an eye on it](https://hub.docker.com/r/coturn/coturn/tags?page=1&name=4.5.2-r13)
2022-07-19 15:25:32 +00:00
Aaron Raimist 817830bb3d
Update telemetry documentation to more closely match upstream
Synapse no longer describes the stats as anonymized since the `server_name` is included.
https://github.com/matrix-org/synapse/pull/13321
2022-07-19 14:58:19 +00:00
Slavi Pantaleev 65bfc1396e Revert "Update Hookshot 1.8.0 -> 1.8.1"
This reverts commit 05ccee9f6f.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1952
2022-07-19 16:47:08 +03:00
Aine 24a027c6b9
Update Synapse 1.62.0 -> 1.63.0 2022-07-19 13:24:27 +00:00
Slavi Pantaleev a9c1d44059
Merge pull request #1950 from etkecc/honoroit-0910
update Honoroit 0.9.9 -> 0.9.10
2022-07-18 23:45:38 +03:00
Aine 0aca676f7f
Update Redis 7.0.3 -> 7.0.4 2022-07-18 18:35:42 +00:00
Aine 5b0bdced1d
update Honoroit 0.9.9 -> 0.9.10 2022-07-18 21:24:17 +03:00
Aine 05ccee9f6f
Update Hookshot 1.8.0 -> 1.8.1
No docker tag published yet, [keep an eye on it](https://hub.docker.com/r/halfshot/matrix-hookshot/tags?page=1&ordering=last_updated&name=1.8.1)
2022-07-18 15:37:04 +00:00
Slavi Pantaleev 8ad1fa085e Use full path when importing SSL setup tasks
This is an attempt to make ansible-lint happy.
2022-07-18 16:48:25 +03:00
Slavi Pantaleev c73680712b Fix (suppress) var-naming ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#var-naming

We don't really fix these, but just suppress them,
because they're like that intentionally.

We try to name variables in a way that is consistent with the
configuration key they control. If the upstream component uses
camelCase, we also need to include camelCase in the variable name.
2022-07-18 16:43:12 +03:00
Slavi Pantaleev 7831dc91b3 Import tasks from other roles in a better way
One that doesn't trip up ansible-lint, causing `load-failure` errors.
2022-07-18 16:15:04 +03:00
Slavi Pantaleev c1849ae888 Fix the remaining var-spacing ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#var-spacing
2022-07-18 15:33:41 +03:00
Slavi Pantaleev cac9bf2637 Fix syntax error regression 2022-07-18 15:13:09 +03:00
Slavi Pantaleev 1693c4ca1d Fix no-changed-when ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#no-changed-when
2022-07-18 15:08:10 +03:00
Slavi Pantaleev 0ab2001ce7 Fix git-latest ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#git-latest

Our variable naming is not necessarily consistent across roles.
I've tried to follow the naming conventions of each individual role.
All new variables are suffixed with `_version`, but the prefix may be
somewhat different.
2022-07-18 14:43:52 +03:00
Slavi Pantaleev 211ff20891 Fix package-latest ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#package-latest
2022-07-18 14:08:35 +03:00
Slavi Pantaleev 318bfa84d5 Fix spacing around filter invocations 2022-07-18 13:21:32 +03:00
Slavi Pantaleev bb8b8c4bf0 Fix tasks include regression 2022-07-18 13:03:17 +03:00
Slavi Pantaleev d073c7ecb3 More ansible-lint fixes 2022-07-18 13:01:19 +03:00
Slavi Pantaleev 983bf819ef Explictly set Synapse's worker configuration's owner/permissions 2022-07-18 13:01:19 +03:00
Slavi Pantaleev ddf18eadc7 More ansible-lint fixes 2022-07-18 13:01:17 +03:00
Slavi Pantaleev 34cdaade08 Use fully-qualified module names for builtin Ansible modules
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
2022-07-18 12:58:41 +03:00
Slavi Pantaleev 78b5be4a26 Do not generate /.well-known/matrix/support unless explicitly asked to
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1931
2022-07-18 12:54:45 +03:00
Slavi Pantaleev c9e30708be Fix double-quoting in /.well-known/matrix/support
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1931

`|to_json` already adds the surrounding double-quotes for the string, so
adding them explicitly means we've got a double-quotes problem.
2022-07-18 12:46:19 +03:00
Slavi Pantaleev 4a5143fa8d Add variable to influence whether /.well-known/matrix/support is created
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1931
2022-07-18 12:32:41 +03:00
teutates 018ca75d48
Implement MSC 1929 Homeserver Admin Contact (#1931)
* Implement MSC 1929 Homeserver Admin Contact
Fixes #1612

For details to the proposed (not accepted yet) MSC, see:
https://github.com/matrix-org/matrix-spec-proposals/blob/hs/proposal-admin-contact-1/proposals/1929-admin-contact.md

* Implement feedback from PR #1931

* Implement feedback from PR #1931

* Fix mixed indentation
2022-07-18 12:28:59 +03:00
Slavi Pantaleev 9abcb10f9f
Merge pull request #1946 from etkecc/update-redis
update redis 6.2.6 -> 7.0.3
2022-07-17 18:15:38 +03:00
Slavi Pantaleev f99ab3c2e2
Merge pull request #1945 from etkecc/update-sygnal
update sygnal 0.11.0 -> 0.12.0
2022-07-17 18:15:12 +03:00
Slavi Pantaleev 9ef680b45c
Merge pull request #1944 from etkecc/update-prometheus
update prometheus 2.36.2 -> 2.37.0
2022-07-17 18:10:05 +03:00
Slavi Pantaleev 411c42bee5
Merge pull request #1943 from etkecc/update-nginx
update nginx 1.21.6 -> 1.23.0
2022-07-17 18:09:37 +03:00
Slavi Pantaleev 3b3bfa29e9
Merge pull request #1942 from etkecc/update-grafana
update grafana 9.0.2 -> 9.0.3
2022-07-17 18:09:04 +03:00
Slavi Pantaleev fde4297703
Merge pull request #1941 from etkecc/update-dynamic-dns
update dynamic dns 3.9.1-ls89 -> 3.9.1-ls92
2022-07-17 18:08:37 +03:00
Aine 405d07527f
update sygnal 0.11.0 -> 0.12.0 2022-07-17 17:38:05 +03:00
Aine 22a55f4fa7
update redis 6.2.6 -> 7.0.3 2022-07-17 17:33:43 +03:00
Aine 4bc12fd560
update prometheus 2.36.2 -> 2.37.0 2022-07-17 17:31:41 +03:00
Aine a6506cf6ff
update nginx 1.21.6 -> 1.23.0 2022-07-17 17:29:50 +03:00
Aine ca11763e86
update grafana 9.0.2 -> 9.0.3 2022-07-17 17:26:33 +03:00
Aine 0ffac5bb45
update dynamic dns 3.9.1-ls89 -> 3.9.1-ls92 2022-07-17 17:24:51 +03:00
Aine 0453ccc716
update hydrogen 0.2.29 -> 0.2.33; sync config 2022-07-17 17:21:22 +03:00
Aine e3ff6ca01b
mautrix-whatsapp - fix more vars 2022-07-17 14:16:57 +03:00
Aine 88cff139ed
fix mautrix-whatsapp config 2022-07-17 10:29:45 +03:00
Aine e149f33140
add/unify 'Project source code URL' link across all roles 2022-07-16 23:59:21 +03:00
Slavi Pantaleev fa9b34b983
Try to make Jinja not trip up over syntax 2022-07-16 23:25:05 +03:00
Aine 91cbc8b2ff
Update mautrix whatsapp 0.5.0 -> 0.6.0 2022-07-16 22:28:53 +03:00
Slavi Pantaleev e94ec75e1a Remove matrix-bridge-mx-puppet-skype role 2022-07-14 18:09:19 +03:00
Slavi Pantaleev a1d0b58471 Try to do the signald (0.19.0) data migration automatically
Improvement over e4caf3fa81.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1921
2022-07-14 11:50:18 +03:00
Slavi Pantaleev f0450eeb5d
Merge pull request #1921 from pub-solar/bump/signal-bridge
signald: 0.18.5 -> 0.20.0
2022-07-14 10:29:43 +03:00
Julian-Samuel Gebühr 6b7191c939 Fix tabs issue for real 2022-07-12 01:22:20 +02:00
Slavi Pantaleev 3b85a9a994
Upgrade hookshot (1.7.3 -> 1.8.0) 2022-07-11 20:25:32 +03:00
Julian-Samuel Gebühr acf53f604b Fix homserver configuration url 2022-07-10 14:48:00 +02:00
Julian-Samuel Gebühr ffa20357ea Use http_bin_port and make networking clearer 2022-07-10 13:33:29 +02:00
Julian-Samuel Gebühr e62632bf5d Change from spaces to tabs 2022-07-10 11:04:49 +02:00