From f0dd3e8f33258a979ffca857c24fcfd5236f9a8d Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 7 Jan 2024 09:58:40 +0100 Subject: [PATCH] add repli in pg_hba variable --- ansible/group_vars/database/database | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ansible/group_vars/database/database b/ansible/group_vars/database/database index 9c809b5..f2a7ecf 100644 --- a/ansible/group_vars/database/database +++ b/ansible/group_vars/database/database @@ -1,3 +1,5 @@ +postgres_consul_service: true +postgres_consul_service_name: db postgresql_databases: - name: ttrss @@ -23,5 +25,12 @@ postgresql_databases: - name: pdns-admin owner: pdns-admin -postgres_consul_service: true -postgres_consul_service_name: db +postgresql_hba_entries: + - {type: local, database: all, user: postgres, auth_method: peer} + - {type: local, database: all, user: all, auth_method: peer} + - {type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5} + - {type: host, database: all, user: all, address: '::1/128', auth_method: md5} + - {type: host, database: all, user: all, address: '::0/128', auth_method: md5} + - {type: host, database: all, user: all, address: '0.0.0.0/0', auth_method: md5} + - {type: host, database: replication, user: repli, address:192.168.1.42/32, auth_method: md5} + - {type: host, database: replication, user: repli, address:192.168.1.40/32, auth_method: md5}