22 Commits

Author SHA1 Message Date
7b061966ad Ignore errors in Patroni
Required during upgrades as the service may be masked.
2023-09-01 15:42:30 -04:00
7c8b6919fe Add Debian 12 Patroni config 2023-09-01 15:42:30 -04:00
2ba8f1cfc3 Add retries to all apt commands 2023-09-01 15:42:30 -04:00
561ecb5c61 Adjust name of bootstrap trigger variable
The PVC bootstrap framework overrides this variable and wreaks havoc on
it. Instead adjust our side so that it looks for do_bootstrap instead.
2023-09-01 15:42:29 -04:00
aa6b4ac3dc Make locale generation universal
Don't rely on a notify/handler, just do it every time in the base role.
2023-09-01 15:42:28 -04:00
3397dacab4 Fix bugs with Patroni bootstrap 2023-09-01 15:42:28 -04:00
1838f8ff56 Add proper PostgreSQL versioning 2023-09-01 15:42:28 -04:00
773fd5a9d4 Ensure all zkCli has -server set 2023-09-01 15:42:28 -04:00
0e9d0b3294 Fix incorrect postgresql version 2023-09-01 15:42:28 -04:00
681afd1d1b Fix excessive whitespace 2023-09-01 15:42:26 -04:00
71b6da6555 Adjust package lists per Debian version 2023-09-01 15:42:26 -04:00
0802cca980 Support both versions of psycopg2 and kazoo 2023-09-01 15:42:26 -04:00
0114ad8ed5 Add python3 version of psycopg2 explicitly 2023-09-01 15:42:26 -04:00
0bf9c6209c Fix incorrect systemd enabling in Patroni 2023-09-01 15:42:25 -04:00
26dbd082ef Retry pgsql bootstrap startup 6 times
This will sometimes fail, so retry it several times
2023-09-01 15:42:25 -04:00
2caed2ae12 Rename remaining "pvc_prov" items to pvc_api 2023-09-01 15:42:24 -04:00
b4079cae88 Use new in-built database migrations in API 2023-09-01 15:42:23 -04:00
211f83995b Ensure the Patroni ZK is clean for bootstrap 2023-09-01 15:42:22 -04:00
da24aaf5ff Install Provisioner schema to database 2023-09-01 15:42:22 -04:00
7689e659fe Make vacuum script more comprehensive 2023-09-01 15:42:21 -04:00
c0acd3e994 Add daily Postgres vacuum script 2023-09-01 15:42:21 -04:00
a922fe4df7 Reorganize and rejigger 2023-09-01 15:42:19 -04:00