diff options
author | varac <varacanero@zeromail.org> | 2013-03-07 14:55:52 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-03-07 14:55:52 +0100 |
commit | b915a67c6e7e3b1b75400dbbd4a9ac961c8eb032 (patch) | |
tree | 4dc5dc62a446901a4e4e81f595fa2b5b722bd5bf /manifests/query.pp | |
parent | dcb8a082ac842b0660819ea61f9448c4e373746e (diff) |
require package curl
Diffstat (limited to 'manifests/query.pp')
-rw-r--r-- | manifests/query.pp | 6 |
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'] + } } |