Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / examples / server.pp
diff --git a/3rdparty/modules/postgresql/examples/server.pp b/3rdparty/modules/postgresql/examples/server.pp
new file mode 100644 (file)
index 0000000..0a70a44
--- /dev/null
@@ -0,0 +1,10 @@
+class { 'postgresql::server':
+    config_hash => {
+        'ip_mask_deny_postgres_user' => '0.0.0.0/32',
+        'ip_mask_allow_all_users'    => '0.0.0.0/0',
+        'listen_addresses'           => '*',
+        'ipv4acls'                   => ['hostssl all johndoe 192.168.0.0/24 cert'],
+        'manage_redhat_firewall'     => true,
+        'postgres_password'          => 'postgres',
+    },
+}