summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 1667e81..b36f290 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,3 +1,3 @@
-define couchdb::query ($host, $cmd, $url, $data = '') {
- exec { "/usr/bin/curl -X $cmd $host/$url --data \'$data\'": }
+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\'": }
}