Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / manifests / pg_hba.pp
diff --git a/3rdparty/modules/postgresql/manifests/pg_hba.pp b/3rdparty/modules/postgresql/manifests/pg_hba.pp
new file mode 100644 (file)
index 0000000..599e002
--- /dev/null
@@ -0,0 +1,19 @@
+# This resource manages a pg_hba file, collecting fragments of pg_hba_rules
+# to build up the final file.
+define postgresql::pg_hba(
+  $target = $postgresql::params::pg_hba_conf_path,
+  $owner = 0,
+  $group = $postgresql::params::group
+) {
+  include postgresql::params
+  include concat::setup
+
+  # Collect file from fragments
+  concat { $target:
+    owner => $owner,
+    group => $group,
+    mode  => '0640',
+    warn  => true,
+  }
+
+}