From 3f5550ee6c0b6937301e7dffb2c07db47b82d040 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 2 Jul 2024 11:58:18 -0500 Subject: [PATCH] postgresql: wal-g: Set PGHOST By default, WAL-G tries to connect to the PostgreSQL server via TCP socket on the loopback interface. Our HBA configuration requires certificate authentication for TCP sockets, so we need to configure WAL-G to use the UNIX socket. --- group_vars/postgresql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/group_vars/postgresql.yml b/group_vars/postgresql.yml index 601ec19..da6e2fa 100644 --- a/group_vars/postgresql.yml +++ b/group_vars/postgresql.yml @@ -49,3 +49,4 @@ wal_g_pg_config: WALG_S3_PREFIX: s3://pgbackup/pyrocufflink/main/15 AWS_S3_FORCE_PATH_STYLE: true AWS_ENDPOINT: https://burp.pyrocufflink.blue:9000 + PGHOST: /run/postgresql