From a29d612678600a0670d4d0c9cd08d52b3575b257 Mon Sep 17 00:00:00 2001 From: tomleb Date: Mon, 8 May 2017 17:13:36 -0400 Subject: [PATCH] Fix auth problem with pgpool --- .../roles/postgresql/templates/pg_hba.conf.j2 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/deploy/ansible/roles/postgresql/templates/pg_hba.conf.j2 b/deploy/ansible/roles/postgresql/templates/pg_hba.conf.j2 index 74e76f2b..95c17c71 100644 --- a/deploy/ansible/roles/postgresql/templates/pg_hba.conf.j2 +++ b/deploy/ansible/roles/postgresql/templates/pg_hba.conf.j2 @@ -1,13 +1,9 @@ # TYPE DATABASE USER ADDRESS METHOD # For debugging purposes -local "{{ nyaapantsu_dbname }}" "{{ nyaapantsu_user }}" md5 +local {{ nyaapantsu_dbname }} {{ nyaapantsu_user }} md5 local all all peer # IPv4 local connections: -host "{{ nyaapantsu_user }}" "{{ nyaapantsu_password }}" 127.0.0.1/32 md5 +host {{ nyaapantsu_dbname }} {{ nyaapantsu_user }} 127.0.0.1/32 md5 # IPv6 local connections: -host all all ::1/128 ident -# Allow replication connections from localhost, by a user with the -# replication privilege. -#local replication postgres peer -#host replication postgres 127.0.0.1/32 ident -#host replication postgres ::1/128 ident +# INFO: For some reason, we need IPv6 for pgpool-ii +host {{ nyaapantsu_dbname }} {{ nyaapantsu_user }} ::1/128 md5