unique names
[mirror/dsa-puppet.git] / modules / postgres / manifests / cluster.pp
index 92f87d1..970c1ba 100644 (file)
@@ -86,6 +86,15 @@ define postgres::cluster(
       order   => '00',
       content => template('postgres/cluster/pg_hba.conf-head.erb'),
     }
+    postgres::cluster::hba_entry { "postgres::cluster::${real_port}::local-connections":
+      pg_port         => $real_port,
+      connection_type => 'host',
+      database        => 'all',
+      user            => 'all',
+      address         => ['127.0.0.1', '::1'],
+      order           => '30',
+      firewall        => false,
+    }
     Concat::Fragment <| tag == "postgres::cluster::${real_version}::${real_cluster}::hba" |>
   }
 }