From: Ismaƫl Bouya Date: Sun, 22 Apr 2018 19:18:55 +0000 (+0200) Subject: Add replication for cryptoportfolio postgresql X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=0958ccf39a52491adb43a08545351df2bf5a4abd;p=perso%2FImmae%2FProjets%2FPuppet.git Add replication for cryptoportfolio postgresql --- 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", } }