Alex Vandiver
6cc480e2b5
kandra: Ensure that we do not error out creating standby.signal.
...
Force us to have restored the `/var/lib/postgresql/14/main` directory
before we try to create `standby.signal` in it.
2024-08-20 14:03:51 -07:00
Alex Vandiver
49e5722a9f
kandra: Match the logic in zulip::profile::postgresql.
2024-08-20 14:03:51 -07:00
Alex Vandiver
9e58780d46
puppet: Fix indentation.
2024-08-20 14:03:51 -07:00
Alex Vandiver
a4e6037dc4
kandra: Automate the second step of configuring database replicas.
...
If there is a replication primary configured, and no current database,
then we check all of the required secrets are in place, then pull down
the latest backup and trigger a PostgreSQL restart, which will pick up
downloading the remaining WAL logs to catch up, then start streaming
from the configured primary.
2024-04-17 17:31:49 -07:00
Alex Vandiver
a8dbdd6d92
kandra: Ensure that pg_hba.conf is in place before starting PostgreSQL.
2024-04-17 17:31:49 -07:00
Alex Vandiver
da243e9fb7
kandra: Force disks to be set up before kernels are changed.
2024-03-29 11:34:18 -07:00
Alex Vandiver
e4883cc2dc
kandra: Move PostgreSQL data mountpoint to /srv/data.
...
We store a lot of other things in `/srv` now, and moving them mid-puppet
confuses things significantly.
2024-03-29 11:34:18 -07:00
Alex Vandiver
93c6fd4746
kandra: Pull instance storage device from nvme information.
2024-03-29 11:34:18 -07:00
Alex Vandiver
b23d90ed62
puppet: Rename puppet/zulip_ops to puppet/kandra.
...
This makes for easier tab-completion, and also is a bit more explicit
about the expected consumer.
2024-02-06 17:56:27 -08:00