Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / examples / postgresql_pgconf_extras.pp
diff --git a/3rdparty/modules/postgresql/examples/postgresql_pgconf_extras.pp b/3rdparty/modules/postgresql/examples/postgresql_pgconf_extras.pp
new file mode 100644 (file)
index 0000000..22b210d
--- /dev/null
@@ -0,0 +1,19 @@
+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'           => '*',
+        'manage_redhat_firewall'     => true,
+        'postgres_password'          => 'postgres',
+    },
+}
+
+include 'postgresql::params'
+
+$pg_conf_include_file = "${postgresql::params::confdir}/postgresql_puppet_extras.conf"
+
+file { $pg_conf_include_file:
+  content => 'max_connections = 123',
+  notify  => Service['postgresqld'],
+}
+