]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add rules for localhost
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 00:56:39 +0000 (01:56 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 10:41:38 +0000 (11:41 +0100)
modules/role/manifests/cryptoportfolio.pp

index 2755fee82934e133ba9715c6ce5fa9ab787bc388..4b03e1682031ae5b41c6bc30f3b29dafa4606175 100644 (file)
@@ -10,5 +10,21 @@ class role::cryptoportfolio {
     password =>  postgresql_password('cryptoportfolio', generate_password(24, $password_seed, "postgres_cryptoportfolio")),
   }
 
+  postgresql::server::pg_hba_rule { 'allow localhost TCP access to cryptoportfolio user':
+    type        => 'host',
+    database    => 'cryptoportfolio',
+    user        => 'cryptoportfolio',
+    address     => '127.0.0.1/32',
+    auth_method => 'md5',
+    order       => "b0",
+  }
+  postgresql::server::pg_hba_rule { 'allow localhost ip6 TCP access to cryptoportfolio user':
+    type        => 'host',
+    database    => 'cryptoportfolio',
+    user        => 'cryptoportfolio',
+    address     => '::1/128',
+    auth_method => 'md5',
+    order       => "b0",
+  }
   ensure_packages("go")
 }