summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-12 16:02:56 +0100
committervarac <varacanero@zeromail.org>2013-03-12 16:02:56 +0100
commit7c9462a0fab1c6e499b62caa2093dedfa9c8adc8 (patch)
tree88d78a236361b4ac596efcc91aa2f387d6c2dd48 /manifests/query.pp
parent546350d6f6e83e9ea22db79d07bdc38c694fbcdb (diff)
Added Exec[wait_for_couchdb]
So Couchdb::Query and Couchdb::Update doesn't try to connect to couchdb before it is up and running. That fixes a nasty race condition, see Fix doc update error on puppetrun (Feature #1964).
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 2870984..d912278 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,5 +1,5 @@
define couchdb::query ( $cmd, $url, $host='127.0.0.1:5984', $data = '' ) {
exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X $cmd $host/$url --data \'$data\'":
- require => Package['curl']
+ require => [ Package['curl'], Exec['wait_for_couchdb'] ]
}
}