From 0958ccf39a52491adb43a08545351df2bf5a4abd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 22 Apr 2018 21:18:55 +0200 Subject: [PATCH] Add replication for cryptoportfolio postgresql --- modules/role/manifests/cryptoportfolio/postgresql.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/role/manifests/cryptoportfolio/postgresql.pp b/modules/role/manifests/cryptoportfolio/postgresql.pp index cc4d2a9..38661a8 100644 --- a/modules/role/manifests/cryptoportfolio/postgresql.pp +++ b/modules/role/manifests/cryptoportfolio/postgresql.pp @@ -104,13 +104,22 @@ class role::cryptoportfolio::postgresql inherits role::cryptoportfolio { order => "05-01", } + postgresql::server::pg_hba_rule { 'allow TCP access to replication user from immae.eu for replication': + type => 'hostssl', + database => 'replication', + user => $pg_user_replication, + address => 'immae.eu', + auth_method => 'md5', + order => "05-01", + } + postgresql::server::pg_hba_rule { 'allow TCP access to replication user from immae.eu': type => 'hostssl', database => $pg_db, user => $pg_user_replication, address => 'immae.eu', auth_method => 'md5', - order => "05-01", + order => "05-02", } } -- 2.41.0