From a1d0ef75f05cedfdbba51594c874ed9ca8e118f9 Mon Sep 17 00:00:00 2001 From: Chris Price Date: Tue, 15 Jan 2013 14:43:18 -0800 Subject: [PATCH] Add a "require" to make sure the service is up before trying to create a db --- manifests/database.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/database.pp b/manifests/database.pp index 560dc9d..fafb11d 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -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 :