aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/init.pp
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-28 23:41:31 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-28 23:41:31 +0000
commit94ed5704bea3bf7d56cb047db5d33115b37ebbfc (patch)
treea8fdd9d7c567977536a7d83062c0dcb56bd4cbdb /modules/postgresql/manifests/init.pp
parentf14fdc40fac0c06be6f5ca5b81e2d754e875c46b (diff)
downloadpuppet-94ed5704bea3bf7d56cb047db5d33115b37ebbfc.tar
puppet-94ed5704bea3bf7d56cb047db5d33115b37ebbfc.tar.gz
puppet-94ed5704bea3bf7d56cb047db5d33115b37ebbfc.tar.bz2
puppet-94ed5704bea3bf7d56cb047db5d33115b37ebbfc.tar.xz
puppet-94ed5704bea3bf7d56cb047db5d33115b37ebbfc.zip
- add postgresql config
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r--modules/postgresql/manifests/init.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
new file mode 100644
index 00000000..57e75967
--- /dev/null
+++ b/modules/postgresql/manifests/init.pp
@@ -0,0 +1,29 @@
+class postgresql {
+ package { postgresql9.0-server:
+ ensure => installed
+ }
+
+ service { postgresql:
+ restart => "/etc/rc.d/init.d/postgresql reload"
+ }
+
+ file { '/var/lib/pgsql/data/postgresql.conf':
+ ensure => present,
+ owner => postgres,
+ group => postgres,
+ mode => 644,
+ require => Package["postgresql9.0-server"],
+ content => "",
+ notify => [Service['postgreql']]
+ }
+
+ file { '/var/lib/pgsql/data/pg_hba.conf':
+ ensure => present,
+ owner => postgres,
+ group => postgres,
+ mode => 644,
+ require => Package["postgresql9.0-server"],
+ content => "",
+ notify => [Service['postgresql']]
+ }
+}