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 лет назад
Slavi Pantaleev
0ca21d80d7
Add Synapse Maintenance docs and synapse-janitor integration
6 лет назад