example42/puppet-postgresql

Invalid ordering of postgresql.conf for redhat

Closed this issue · 2 comments

The file resource for the postgresql server gets called before initdb on redhat. Fix is:

class postgresql::redhat {

exec { 'postgresql_initdb':
command => $postgresql::initdbcommand,
creates => $postgresql::config_file,
path => [ '/sbin', '/bin', '/usr/bin', '/usr/sbin' ],
require => Package['postgresql'],
before => [ Service['postgresql'], File['postgresql.conf'] ],
}

}

Or specifically, add the File resource to the before statement!

Thanks for the note. Can you file please a pull request?

Will do.
On Oct 5, 2012 5:36 PM, "Alessandro Franceschi" notifications@github.com
wrote:

Thanks for the note. Can you file please a pull request?


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-9193630.