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:
commit
3b060fa208
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ define postgresql::database(
|
||||||
command => "SELECT 1",
|
command => "SELECT 1",
|
||||||
unless => "SELECT datname FROM pg_database WHERE datname='$dbname'",
|
unless => "SELECT datname FROM pg_database WHERE datname='$dbname'",
|
||||||
cwd => $postgresql::params::datadir,
|
cwd => $postgresql::params::datadir,
|
||||||
|
require => Class['postgresql::server']
|
||||||
} ~>
|
} ~>
|
||||||
|
|
||||||
exec { $createdb_command :
|
exec { $createdb_command :
|
||||||
|
|
Loading…
Reference in a new issue