Slavi Pantaleev
7fb45a507d
Make --tags=run-postgres-vacuum and --tags=upgrade-postgres not assume Synapse
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2211
пре 3 година
Slavi Pantaleev
ff0fc88fae
Make Postgres import not break for databases with special names
We haven't encountered such a problem yet, but it doesn't hurt to
make things more robust.
пре 3 година
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.
пре 3 година
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.
пре 3 година
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.
пре 3 година
David Napier
2eef6af23e
Bump postgres version to newly released 15
пре 3 година
Slavi Pantaleev
62215a87fe
Upgrade Postgres minor versions (14.4 -> 14.5, 13.7 -> 13.8, etc.)
пре 3 година
Slavi Pantaleev
1ea1597020
Fix some ansible-lint-reported warnings
This mostly fixes `key-order` warnings around
`block` statements.
пре 3 година
Slavi Pantaleev
c1849ae888
Fix the remaining var-spacing ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#var-spacing
пре 3 година
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
пре 3 година
Aine
e149f33140
add/unify 'Project source code URL' link across all roles
пре 3 година
Slavi Pantaleev
5963a387f0
Upgrade Postgres (14.3 -> 14.4)
пре 3 година
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 година
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
пре 4 година
Aaron Raimist
f0e30c76f3
Postgres Minor Updates (14.2, 13.6, 12.10, 11.15, 10.20)
пре 4 година
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
пре 4 година
Aaron Raimist
61b743f86d
Postgres Minor Updates (14.1, 13.5, 12.9, 11.14, 10.19)
пре 4 година
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
пре 4 година
Slavi Pantaleev
096c960b84
Add support for Postgres v14
пре 4 година
sakkiii
48548eb561
Postgres Minor Updates
пре 4 година
Michael Collins
98e6cd685d
sync with previous repo
пре 4 година
Michael-GMH
86e4649578
GoMatrixHosting v0.5.5
пре 4 година
Michael-GMH
03006eb5ab
GoMatrixHosting v0.5.5
пре 4 година
sakkiii
d338090f00
postgres minor updates
пре 4 година
Michael-GMH
89cb5a3d7a
GMH v0.4.2 update
пре 4 година
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 година
Ahmad Haghighi
f52a8b6484
use custom docker registry
пре 4 година
Slavi Pantaleev
7d39e5153a
Upgrade Postgres minor versions
пре 5 година
Slavi Pantaleev
bef0702fea
Wait some more when starting Postgres during setup on ARM
пре 5 година
Slavi Pantaleev
f9c1d62435
Fix Postgres database (-alpine) failing to start on ARM32
пре 5 година
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.
пре 5 година
Slavi Pantaleev
ad1425eee4
Add pgloader self-building support (for ARM)
пре 5 година
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).
пре 5 година
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.
пре 5 година
Slavi Pantaleev
183d2a10db
Ensure matrix-postgres.service is started before creating additional users/databases
пре 5 година
Slavi Pantaleev
46a4034d3e
Use "password" for additional Postgres databases, not "pass"
Being more explicit sounds better.
пре 5 година
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.
пре 5 година
Slavi Pantaleev
dac0d3a682
Add default matrix_postgres_additional_databases
пре 5 година
Slavi Pantaleev
47613e5a27
Remove synapse-janitor support
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/746
пре 5 година
Slavi Pantaleev
3e2355282b
Upgrade Postgres minor versions
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/727
пре 5 година
Slavi Pantaleev
ccabc82d4c
Use more fully-qualified container images
This is both for consistency with 93cc71cb69976c
and for making things more obvious.
пре 5 година
Dan Arnfield
3a3383fada
Add support for postgres 13
пре 5 година
Max Klenk
1e68d8b2e5
allow to pass arguments to the postgres process
пре 5 година
Dan Arnfield
20eea648a5
Update postgres versions (12.3 -> 12.4, etc)
пре 5 година
Dan Arnfield
ee3944bcdb
Update postgres (12.2 -> 12.3, etc)
пре 5 година
Dan Arnfield
e36de7e627
Update postgres (12.1 -> 12.2, etc)
пре 6 година
David Gnedt
c55682d099
Update synapse-janitor to support current synapse database schema
пре 6 година
Dan Arnfield
4a60f385d1
Update postgres versions (12.0 -> 12.1, etc)
пре 6 година
Slavi Pantaleev
9c438a3870
Add support for Postgres v12
пре 6 година
Dan Arnfield
dc11704c11
Bump postgres versions (11.5, 10.10, 9.6.15)
пре 6 година