From 6caf28259e9b94ec643c2857d45eb71f830a0f57 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 2 Jul 2024 11:56:15 -0500 Subject: [PATCH] hosts: db0: Promote to primary All data have been migrated from the PostgreSQL server in Kubernetes and the three applications that used it (Firefly-III, Authelia, and Home Assistant) have been updated to point to the new server. To avoid comingling the backups from the old server with those from the new server, we're reconfiguring WAL-G to push and pull from a new S3 prefix. --- group_vars/postgresql.yml | 2 +- host_vars/db0.pyrocufflink.blue.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/group_vars/postgresql.yml b/group_vars/postgresql.yml index 761950e..601ec19 100644 --- a/group_vars/postgresql.yml +++ b/group_vars/postgresql.yml @@ -46,6 +46,6 @@ wal_g_aws_secret_access_key: !vault | wal_g_pg_config: AWS_ACCESS_KEY_ID: '{{ wal_g_aws_access_key_id }}' AWS_SECRET_ACCESS_KEY: '{{ wal_g_aws_secret_access_key }}' - WALG_S3_PREFIX: s3://pgbackup/spilo/postgresql-default/wal/15 + WALG_S3_PREFIX: s3://pgbackup/pyrocufflink/main/15 AWS_S3_FORCE_PATH_STYLE: true AWS_ENDPOINT: https://burp.pyrocufflink.blue:9000 diff --git a/host_vars/db0.pyrocufflink.blue.yml b/host_vars/db0.pyrocufflink.blue.yml index 924929b..e69de29 100644 --- a/host_vars/db0.pyrocufflink.blue.yml +++ b/host_vars/db0.pyrocufflink.blue.yml @@ -1 +0,0 @@ -postgresql_standby: true