aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-07 02:40:31 +0000
committerMichael Scherer <misc@mageia.org>2010-12-07 02:40:31 +0000
commit5b77012b8dc6042994a72456b86778379b6bde1e (patch)
tree3f240ba57a88987d2e16d8f1f4c3d12c26c5e93a /modules/postgresql/manifests/init.pp
parent8c1904c5fd98e99accb0937ee1ee7f358af163e6 (diff)
downloadpuppet-5b77012b8dc6042994a72456b86778379b6bde1e.tar
puppet-5b77012b8dc6042994a72456b86778379b6bde1e.tar.gz
puppet-5b77012b8dc6042994a72456b86778379b6bde1e.tar.bz2
puppet-5b77012b8dc6042994a72456b86778379b6bde1e.tar.xz
puppet-5b77012b8dc6042994a72456b86778379b6bde1e.zip
- create the needed certificate for postgresql ( name is hardcoded )
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r--modules/postgresql/manifests/init.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 4982072d..9304fff9 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -29,7 +29,16 @@ class postgresql {
File["pg_ident.conf"],
File["pg_hba.conf"] ]
}
-
+
+ openssl::self_signed_splitted_cert { "pgsql.$domain":
+ filename => "server",
+ directory => $pgsql_data,
+ owner => "postgres",
+ group => "postgres",
+ require => Package['postgresql-server']
+ }
+
+
file { '/etc/pam.d/postgresql':
ensure => present,
owner => root,