summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-07 14:55:52 +0100
committervarac <varacanero@zeromail.org>2013-03-07 14:55:52 +0100
commitb915a67c6e7e3b1b75400dbbd4a9ac961c8eb032 (patch)
tree4dc5dc62a446901a4e4e81f595fa2b5b722bd5bf /manifests/query.pp
parentdcb8a082ac842b0660819ea61f9448c4e373746e (diff)
require package curl
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index b36f290..2870984 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,3 +1,5 @@
-define couchdb::query ($host='127.0.0.1:5984', $cmd, $url, $data = '') {
- exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X $cmd $host/$url --data \'$data\'": }
+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']
+ }
}