]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add replication for cryptoportfolio postgresql
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 22 Apr 2018 19:18:55 +0000 (21:18 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 22 Apr 2018 19:18:55 +0000 (21:18 +0200)
modules/role/manifests/cryptoportfolio/postgresql.pp

index cc4d2a932aa9c669e5247368bb87e2c0e51bdfe9..38661a8c5837b8a42201d27eafefcf3b7ad8b70a 100644 (file)
@@ -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",
   }
 
 }