Slavi Pantaleev
f84c69c164
Relocate custom ma1sd threepid email templates to config/
...
We used to store them in data/, but that seems inappropriate,
since it's just static configuration that the playbook can recreate.
2021-01-03 07:35:13 +02:00
Slavi Pantaleev
b5812b539b
Rename ma1sd custom email template variable
...
Keeps up with https://github.com/ma1uta/ma1sd/commit/a1f64f515919e40708a4be59e508ac0dbf86f12f#diff-0ccf69eb4d59a7645eb4d0a0b077e693948edb33ad06df043bba3fb30122879b
2021-01-03 00:58:31 +02:00
Slavi Pantaleev
fb83eccf99
Relocate SQL template file
2021-01-03 00:58:31 +02:00
Sabine Laszakovits
84cac25c11
added config data_dir (else in ~, which isn't set)
2021-01-02 19:01:21 +01:00
Sabine Laszakovits
56af2b1a8c
small fixes
2021-01-02 00:56:45 +01:00
Sabine Laszakovits
89f7f3c3b8
added log level configuration
2021-01-02 00:55:55 +01:00
Sabine Laszakovits
ffb837d4bc
made the bridge use the default postgres db
2021-01-02 00:39:11 +01:00
Sabine Laszakovits
a06c58c753
Merge branch 'master' into signal
2021-01-01 21:05:00 +01:00
Slavi Pantaleev
1ed991e25c
Merge pull request #769 from aaronraimist/check-for-buggy-ansible
...
Check for buggy version of Ansible that Ubuntu 20.04 provides
2020-12-29 11:19:37 +02:00
Slavi Pantaleev
86da489b9b
Never fail when stopping systemd service during (SQLite -> Postgres) migration
...
We need to suppress systemd service-stopping requests in certain rare
cases like https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/771
That issue seems to describe a case, where a migration from mxisd to
ma1sd was happening (DB files had just been moved), and then we were
attemping to stop `matrix-ma1sd.service` so we could import that database into
Postgres. However, there's neither `matrix-mxisd.service`, nor
`matrix-ma1sd.service` after `migrate_mxisd.yml` had just run, so
stopping `matrix-ma1sd.service` was failing.
2020-12-29 10:31:20 +02:00
Aaron Raimist
8827a49e21
Check equality properly
2020-12-26 20:20:00 -06:00
Aaron Raimist
3dd0517f04
Check for buggy version of Ansible that Ubuntu 20.04 provides
2020-12-26 20:13:49 -06:00
Slavi Pantaleev
a2a4218e95
Make mautrix-python-based bridges E2EE happier
...
Fixes a problem like this:
> File "/usr/lib/python3.8/site-packages/mautrix/bridge/e2ee.py", line 79, in __init__
> raise RuntimeError("Unsupported database scheme")
mautrix-python's e2ee.py module expects to find `postgres://` instead of
`postgresql://`.
2020-12-23 15:39:12 +02:00
Slavi Pantaleev
80c72615c7
Fixup all Dimension boolean fields after pgloader import
...
This is 8b6174786b done right. There were many more fields
that we had to account for.
2020-12-23 14:12:11 +02:00
Slavi Pantaleev
21662af3be
Archive database only after additional_psql_statements_list had executed
2020-12-23 14:12:11 +02:00
Stuart Mumford
019a4d7dcd
Use role relative paths for things
2020-12-23 11:34:48 +00:00
Slavi Pantaleev
be0c599565
Feed more slashes to mautrix bridges when using SQLite
...
This makes the `sqlite://` URI match what we were using before
and what the config expects.
2020-12-23 13:33:25 +02:00
Slavi Pantaleev
8b6174786b
Fixup Dimension database schema a bit after pgloader import
2020-12-23 12:57:43 +02:00
Slavi Pantaleev
c5f8b1f61b
Fix mautrix-whatsapp Postgres connection string to not use SSL by default
2020-12-23 11:40:22 +02:00
Slavi Pantaleev
f19b29846d
Merge pull request #740 from jdreichmann/postgres-per-default
...
postgres: create databases for all services
2020-12-23 11:00:41 +02:00
Slavi Pantaleev
ad1425eee4
Add pgloader self-building support (for ARM)
2020-12-23 09:08:54 +02:00
Slavi Pantaleev
8675dedbdb
Add support for automatic (nedb -> Postgres) migration to matrix-appservice-slack
2020-12-22 19:56:52 +02:00
Slavi Pantaleev
9b95e1937c
Auto-restart matrix-appservice-irc after (nedb -> Postgres) migration
2020-12-22 19:34:08 +02:00
Slavi Pantaleev
715bdf2c64
Add support for automatic (nedb -> Postgres) migration to mx-appservice-irc
2020-12-22 19:32:43 +02:00
Slavi Pantaleev
15f4cc924d
Rename variables (_database_db_name -> _database_name)
2020-12-22 17:10:02 +02:00
Slavi Pantaleev
ab6563ce4e
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-twitter
2020-12-22 17:09:08 +02:00
Slavi Pantaleev
69cc2145d2
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-steam
2020-12-22 16:51:59 +02:00
Slavi Pantaleev
262a25f997
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-slack
2020-12-22 16:39:21 +02:00
Slavi Pantaleev
e49eb078a2
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-skype
2020-12-22 16:29:47 +02:00
Dan Arnfield
c3b63c6c97
Update element-web (1.7.15 -> 1.7.16)
2020-12-22 08:29:37 -06:00
Dan Arnfield
10e0fa17ad
Update nginx (1.19.5 -> 1.19.6)
2020-12-22 08:23:37 -06:00
Slavi Pantaleev
d135cd9cd3
Ensure mx-puppet-discord directories are created before attempting migration
...
Our old (base-path -> data-path) SQLite migration can't work otherwise.
It's probably not necessary to keep it anymore, but since we still do,
at least we should take care to ensure it works.
2020-12-22 13:44:36 +02:00
Slavi Pantaleev
44c9f4daca
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-instagram
2020-12-22 13:30:52 +02:00
Slavi Pantaleev
e64758c119
Add missing restart task
...
Should have been part of 149872e00c
2020-12-22 13:24:53 +02:00
Slavi Pantaleev
149872e00c
Add support for automatic (Postgres -> SQLite) migration to mx-puppet-discord
2020-12-22 11:10:10 +02:00
Slavi Pantaleev
9b4bf73587
Fix undefined variable reference
2020-12-22 11:08:07 +02:00
Slavi Pantaleev
6488e11d69
Relocate some tasks
2020-12-22 10:52:36 +02:00
Slavi Pantaleev
ca066217d1
Merge pull request #757 from 0x46616c6b/disable-nginx-logging-option
...
add option to disable nginx access log
2020-12-21 22:30:25 +02:00
louis
dcd4716636
add option to disable nginx access log
2020-12-21 21:26:49 +01:00
Slavi Pantaleev
d0ee86e0a5
Fix matrix_corporal_docker_image_name_prefix referencing matrix_synapse_ stuff
2020-12-21 15:44:14 +02:00
Agustin Ferrario
a06feba281
Merge branch 'master' of https://github.com/spantaleev/matrix-docker-ansible-deploy
2020-12-18 10:22:43 +01:00
Slavi Pantaleev
8748f3d443
Move python{,3}-docker installation to another task
...
This also adds support for installing python3-docker (not python-docker)
in systems that run Python 3.
2020-12-17 11:49:56 +02:00
Slavi Pantaleev
349fbb6434
Do not hardcode armhf for Raspbian
...
Raspbian doesn't seem to support arm64, so this is somewhat pointless
right now.
However, they might in the future. Doing this should also unify us
some more with `setup_debian.yml` with the ultimate goal of
eliminating `setup_raspbian.yml`.
2020-12-17 11:47:34 +02:00
Slavi Pantaleev
a09ed58892
Ensure gnupg installed on Raspbian
...
It's likely installed by default, but it doesn't hurt to specify it.
It also makes us more the same with `setup_debian.yml`.
2020-12-17 11:45:32 +02:00
Slavi Pantaleev
f545de53f7
Do not hardcode "ubuntu" for the Docker APT key URL
...
Well, `ubuntu` or `debian`, the same key is served right now,
so it doesn't really matter.
This seems cleaner and less prone to breakage though.
2020-12-17 11:39:18 +02:00
Slavi Pantaleev
55f252a6ed
Do not hardcode amd64 in setup_debian.yml
...
Until now, we've only supported non-amd64 on Raspbian.
Seems like there are now people running Debian/Ubuntu on ARM,
so we were forcing them into amd64 Docker packages.
I've gotten a report that this change fixes support
for Ubuntu Server 20.04 on RPi 4B.
2020-12-17 11:37:30 +02:00
Slavi Pantaleev
ed159cc742
Move matrix_architecture to matrix-base
...
We were only defining this in `group_vars/matrix_servers`, which is
inconsistent with how we normally do things.
2020-12-17 11:33:18 +02:00
Agustin Ferrario
2082242499
Add matrix_nginx_proxy_ssl_config
...
A new variable called `matrix_nginx_proxy_ssl_config` is created for
configuring how the nginx proxy configures SSL. Also a new configuration
validation option and other auxiliary variables are created.
A new variable configuration called `matrix_nginx_proxy_ssl_config` is
created. This allow to set the SSL configuration easily using the
default options proposed by Mozilla. The default configuration is set to
"Intermediate", removing the weak ciphers used in the old
configurations.
The new variable can also be set to "Custom" for a more granular control.
This allows to set another three variables called:
- `matrix_nginx_proxy_ssl_protocols`,
- `matrix_nginx_proxy_ssl_prefer_server_ciphers`
- `matrix_nginx_proxy_ssl_ciphers`
Also a new task is added to validate the SSL configuration variable.
2020-12-16 10:35:37 +01:00
Slavi Pantaleev
0f4649a45c
Merge branch 'master' into postgres-per-default
2020-12-16 03:35:39 +02:00
Slavi Pantaleev
a4b8baee49
Fix inability to send (Matrix -> Discord) messages via appservice-discord
...
Revert "Correct inabillity for appservice-discord to connect"
This reverts commit 673e19f830 .
While certain things do work even with such a local URL, sending
messages leads to an error like this:
> [DiscordBot] verbose: DiscordAPIError: Invalid Form Body
> avatar_url: Not a well formed URL.
Fixes https://github.com/Half-Shot/matrix-appservice-discord/issues/649
The sample configuration file for appservice-discord
https://github.com/Half-Shot/matrix-appservice-discord/blob/c29cfc72f55f1f81e43e2d71f5c080d752d1a884/config/config.sample.yaml#L8
explicitly says that we need a public URL.
2020-12-16 03:35:13 +02:00