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 години