Class postgresql::server
In: /modules/postgresql/manifests/server.pp
Parent:

PostgreSQL Server class.

Resources

Resources

Exec["/sbin/service postgresql initdb"]
   require => Package["postgresql-server"]
   creates => "/var/lib/pgsql/data/PG_VERSION"

The PostgreSQL server requires this initially

File["/var/lib/pgsql/data/pg_hba.conf"]
   content => template("postgresql/pg_hba.conf.erb")
   owner => "postgres"
   group => "postgres"
   mode => "0600"
   require => Package["postgresql-server"]
   notify => Service["postgresql"]
Package[$rpmbasename-server]
   ensure => installed
Service["postgresql"]
   enable => true
   ensure => running
   hasstatus => true
   restart => "/sbin/service postgresql reload"
   require => Exec["/sbin/service postgresql initdb"]

[Validate]