summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-25 18:03:06 -0700
committerelijah <elijah@riseup.net>2014-06-25 18:03:06 -0700
commit8bc5ed434c124457b7467140152602c67a9547c5 (patch)
treecb017e0fb762d27ab69a6f74c5d9c6a9aab85499 /manifests/query.pp
parentc8f5443e0998d3d3d43505ff5a6fdf8c438d6c24 (diff)
parent14f863f54c46bdf6f681c8a5ba660aba6a7419eb (diff)
Merge branch 'azul-feature/mirror_plain_couch'
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 72ae4d2..9507ca1 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,7 +1,11 @@
define couchdb::query (
- $cmd, $path, $host='127.0.0.1:5984', $data = '{}', $unless = undef) {
+ $cmd, $path,
+ $netrc='/etc/couchdb/couchdb.netrc',
+ $host='127.0.0.1:5984',
+ $data = '{}',
+ $unless = undef) {
- exec { "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${path} --data \'${data}\'":
+ exec { "/usr/bin/curl -s --netrc-file ${netrc} -X ${cmd} ${host}/${path} --data \'${data}\'":
require => [ Package['curl'], Exec['wait_for_couchdb'] ],
unless => $unless
}