diff options
author | varac <varacanero@zeromail.org> | 2013-03-12 16:02:56 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-03-12 16:02:56 +0100 |
commit | 7c9462a0fab1c6e499b62caa2093dedfa9c8adc8 (patch) | |
tree | 88d78a236361b4ac596efcc91aa2f387d6c2dd48 /manifests/update.pp | |
parent | 546350d6f6e83e9ea22db79d07bdc38c694fbcdb (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/update.pp')
-rw-r--r-- | manifests/update.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/update.pp b/manifests/update.pp index 3cb6ece..7e7be66 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -1,3 +1,5 @@ define couchdb::update ($db, $id, $data, $port='5984') { - exec { "couch-doc-update --port $port --db $db --id $id --data \'$data\'": } + exec { "couch-doc-update --port $port --db $db --id $id --data \'$data\'": + require => Exec['wait_for_couchdb'] + } } |