Slavi Pantaleev
0b44ec19b4
Do not override matrix_postgres_import_roles_to_ignore/matrix_postgres_import_databases_to_ignore in group_vars
...
These values that we were setting also make sense in the context of the
`matrix-postgres` role even when not used within the playbook.
2 years ago
Slavi Pantaleev
bed9c18ab0
Pin Postgres version to 15.0
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2180
Just specifying `15` means we won't automatically re-pull `15.1` when it comes out.
2 years ago
Slavi Pantaleev
af3a32cf6a
Fix Jinja2 interpolation for some default variables
...
We're overriding these in the correct way in `group_vars/matrix_servers`
so this wasn't causing any problem in practice.
2 years ago
David Napier
2eef6af23e
Bump postgres version to newly released 15
2 years ago
Slavi Pantaleev
62215a87fe
Upgrade Postgres minor versions (14.4 -> 14.5, 13.7 -> 13.8, etc.)
2 years ago
Slavi Pantaleev
1ea1597020
Fix some ansible-lint-reported warnings
...
This mostly fixes `key-order` warnings around
`block` statements.
2 years ago
Slavi Pantaleev
c1849ae888
Fix the remaining var-spacing ansible-lint errors
...
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#var-spacing
2 years ago
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
2 years ago
Aine
e149f33140
add/unify 'Project source code URL' link across all roles
2 years ago
Slavi Pantaleev
5963a387f0
Upgrade Postgres (14.3 -> 14.4)
2 years ago
Aine
4109dc3bcd
Update Postgres (CVE-2022-1552 + last 9.x update)
...
CVE: https://security-tracker.debian.org/tracker/CVE-2022-1552
Source: https://www.postgresql.org/about/news/postgresql-143-137-1211-1116-and-1021-released-2449/
Postgres 9.6 upgrade (**not a CVE fix, 9.x still vulnerable**): https://www.postgresql.org/docs/release/9.6.24/
3 years ago
Slavi Pantaleev
d5de1e8352
Document that using an external Postgres server has serious downsides
...
Related to:
- https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1682
- https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1679
3 years ago
Aaron Raimist
f0e30c76f3
Postgres Minor Updates (14.2, 13.6, 12.10, 11.15, 10.20)
3 years ago
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
3 years ago
Aaron Raimist
61b743f86d
Postgres Minor Updates (14.1, 13.5, 12.9, 11.14, 10.19)
3 years ago
Slavi Pantaleev
09ac950d17
Fix dump importing (backup restore) into Postgres v14
...
In short, the problem is that older Postgres versions store passwords
hashed as md5. When you dump such a database, the dump naturally also
contains md5-hashed passwords.
Restoring from that dump used to create users and updates their passwords
with these md5 hashes.
However, Postgres v14 prefers does not like md5-hashed passwords now (by default),
which breaks connectivity. Postgres v14 prefers `scram-sha-256` for
authentication.
Our solution is to just ignore setting passwords (`ALTER ROLE ..`
statements) when restoring dumps. We don't need to set passwords as
defined in the dump anyway, because the playbook creates users
and manages their passwords by itself.
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1340
3 years ago
Slavi Pantaleev
096c960b84
Add support for Postgres v14
3 years ago
sakkiii
48548eb561
Postgres Minor Updates
3 years ago
sakkiii
d338090f00
postgres minor updates
3 years ago
Ahmad Haghighi
e335f3fc77
rename matrix_global_registry to matrix_container_global_registry_prefix related to #990
...
Signed-off-by: Ahmad Haghighi <haghighi@fedoraproject.org>
4 years ago
Ahmad Haghighi
f52a8b6484
use custom docker registry
4 years ago
Slavi Pantaleev
5cfeae806b
Merge branch 'master' into synapse-workers
4 years ago
Slavi Pantaleev
7d39e5153a
Upgrade Postgres minor versions
4 years ago
Marcel Partap
183adec3d8
Merge remote-tracking branch 'origin/master' into synapse-workers
4 years ago
Slavi Pantaleev
bef0702fea
Wait some more when starting Postgres during setup on ARM
4 years ago
Slavi Pantaleev
f9c1d62435
Fix Postgres database (-alpine) failing to start on ARM32
4 years ago
Slavi Pantaleev
95346f3117
Reorganize Postgres access (breaking change)
...
In short, this makes Synapse a 2nd class citizen,
preparing for a future where it's just one-of-many homeserver software
options.
We also no longer have a default Postgres superuser password,
which improves security.
The changelog explains more as to why this was done
and how to proceed from here.
4 years ago
Marcel Partap
cd8100544b
Merge remote-tracking branch 'origin/master' into synapse-workers
...
Sync with upstream
4 years ago
Slavi Pantaleev
ad1425eee4
Add pgloader self-building support (for ARM)
4 years ago
Slavi Pantaleev
dd797ba6a7
Fix Postgres database importing/upgrading conflicts
...
We were running into conflicts, because having initialized
the roles (users) and databases, trying to import leads to
errors (role XXX already exists, etc.).
We were previously ignoring the Synapse database (`homeserver`)
when upgrading/importing, because that one gets created by default
whenever the container starts.
For our additional databases, it's a similar situation now.
It's not created by default as soon as Postgres starts with an empty
database, but rather we create it as part of running the playbook.
So we either need to skip those role/database creation statements
while upgrading/importing, or to avoid creating the additional database
and rely on the import for that. I've gone for the former, because
it's already similar to what we were doing and it's simpler
(it lets `setup_postgres.yml` be the same in all scenarios).
4 years ago
Slavi Pantaleev
cb969c6ca2
Add --tags=import-generic-sqlite-db (pgloader import)
...
This can be used by various bridges, etc., to import an SQLite
(or some other supported) database into Postgres.
4 years ago
Slavi Pantaleev
183d2a10db
Ensure matrix-postgres.service is started before creating additional users/databases
4 years ago
Slavi Pantaleev
46a4034d3e
Use "password" for additional Postgres databases, not "pass"
...
Being more explicit sounds better.
4 years ago
Slavi Pantaleev
0641106370
Allow username of additional Postgres databases to be different
...
We'll most likely use one that matches the database name, but
it's better to have it configurable.
4 years ago
Slavi Pantaleev
dac0d3a682
Add default matrix_postgres_additional_databases
4 years ago
Slavi Pantaleev
47613e5a27
Remove synapse-janitor support
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/746
4 years ago
Marcel Partap
b73ac965ac
Merge remote-tracking branch 'origin/master' into synapse-workers
4 years ago
Slavi Pantaleev
3e2355282b
Upgrade Postgres minor versions
...
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/727
4 years ago
Slavi Pantaleev
ccabc82d4c
Use more fully-qualified container images
...
This is both for consistency with 93cc71cb69976c
and for making things more obvious.
4 years ago
Marcel Partap
93a8ea7e4a
Merge remote-tracking branch 'master' into feature/add-worker-support
4 years ago
Dan Arnfield
3a3383fada
Add support for postgres 13
4 years ago
Max Klenk
1e68d8b2e5
allow to pass arguments to the postgres process
4 years ago
Dan Arnfield
20eea648a5
Update postgres versions (12.3 -> 12.4, etc)
4 years ago
Dan Arnfield
ee3944bcdb
Update postgres (12.2 -> 12.3, etc)
5 years ago
Dan Arnfield
e36de7e627
Update postgres (12.1 -> 12.2, etc)
5 years ago
David Gnedt
c55682d099
Update synapse-janitor to support current synapse database schema
5 years ago
Dan Arnfield
4a60f385d1
Update postgres versions (12.0 -> 12.1, etc)
5 years ago
Slavi Pantaleev
9c438a3870
Add support for Postgres v12
5 years ago
Dan Arnfield
dc11704c11
Bump postgres versions (11.5, 10.10, 9.6.15)
5 years ago
Slavi Pantaleev
0ca21d80d7
Add Synapse Maintenance docs and synapse-janitor integration
5 years ago