summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index a02d068..1966839 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,7 +1,8 @@
define couchdb::query (
- $cmd, $url, $host='127.0.0.1:5984', $data = '{}' ) {
+ $cmd, $url, $host='127.0.0.1:5984', $data = '{}', $unless = '/bin/false' ) {
exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${url} --data \'${data}\'":
- require => [ Package['curl'], Exec['wait_for_couchdb'] ]
+ require => [ Package['curl'], Exec['wait_for_couchdb'] ],
+ unless => $unless
}
}