diff options
Diffstat (limited to 'manifests/query.pp')
-rw-r--r-- | manifests/query.pp | 8 |
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 } |