summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/base.pp2
-rw-r--r--manifests/document.pp2
2 files changed, 4 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index f1e33f1..356fefb 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -34,6 +34,8 @@ class couchdb::base {
File['/usr/local/bin/couch-doc-update'] -> Couchdb::Update <| |>
File['/usr/local/bin/couch-doc-diff'] -> Couchdb::Update <| |>
+ Couchdb::Update <| |> -> Couchdb::Document <| |>
+
file {
'/usr/local/bin/couch-doc-update':
source => 'puppet:///modules/couchdb/couch-doc-update',
diff --git a/manifests/document.pp b/manifests/document.pp
index 3ecc05d..6180474 100644
--- a/manifests/document.pp
+++ b/manifests/document.pp
@@ -29,6 +29,7 @@ define couchdb::document(
cmd => 'PUT',
host => $host,
path => "${db}/${id}",
+ require => Exec['wait_for_couchdb'],
unless => "/usr/bin/curl -s -f --netrc-file ${netrc} ${url}"
}
}
@@ -38,6 +39,7 @@ define couchdb::document(
cmd => 'DELETE',
host => $host,
path => "${db}/${id}",
+ require => Exec['wait_for_couchdb'],
unless => "/usr/bin/curl -s -f --netrc-file ${netrc} ${url}"
}
}