Merge pull request #80 from cprice-puppet/bug/master/require-service-from-db

Add a "require" to make sure the service is up before trying to create a...
This commit is contained in:
Ken Barber 2013-01-15 14:46:05 -08:00
commit 3b060fa208

View file

@ -35,6 +35,7 @@ define postgresql::database(
command => "SELECT 1",
unless => "SELECT datname FROM pg_database WHERE datname='$dbname'",
cwd => $postgresql::params::datadir,
require => Class['postgresql::server']
} ~>
exec { $createdb_command :