diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-10-28 23:59:20 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-10-28 23:59:20 +0000 |
commit | 195661100c28f3569a0406997cd666087ee70c66 (patch) | |
tree | b0d35c8dbe99e190791ea21f7c1fc6b3d4b697c8 /modules/postgresql/manifests/init.pp | |
parent | d92e4852743188101bd9889be575d0e0b5c0bf7c (diff) | |
download | puppet-195661100c28f3569a0406997cd666087ee70c66.tar puppet-195661100c28f3569a0406997cd666087ee70c66.tar.gz puppet-195661100c28f3569a0406997cd666087ee70c66.tar.bz2 puppet-195661100c28f3569a0406997cd666087ee70c66.tar.xz puppet-195661100c28f3569a0406997cd666087ee70c66.zip |
- add login management to postgresql
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp index e7e4fff8..c93da034 100644 --- a/modules/postgresql/manifests/init.pp +++ b/modules/postgresql/manifests/init.pp @@ -7,11 +7,19 @@ class postgresql { restart => "/etc/rc.d/init.d/postgresql reload" } + file { '/etc/pam.d/postgresql': + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("postgresql/pam"), + } + file { '/var/lib/pgsql/data/postgresql.conf': ensure => present, owner => postgres, group => postgres, - mode => 644, + mode => 600, content => template("postgresql/postgresql.conf"), require => Package["postgresql9.0-server"], notify => [Service['postgresql']] @@ -21,7 +29,7 @@ class postgresql { ensure => present, owner => postgres, group => postgres, - mode => 644, + mode => 600, content => template("postgresql/pg_hba.conf"), require => Package["postgresql9.0-server"], notify => [Service['postgresql']] |