summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-05-23 21:20:48 +0200
committerMicah Anderson <micah@riseup.net>2013-05-23 17:58:02 -0400
commit20deb0652ccfe105eddec6ba2ad32b8d633705f6 (patch)
tree4340211dc0fc0a823a28566f6c3a53ba31ee4dae /manifests/query.pp
parent0c34d9bd1c51d4e633f92e459b7973008350aefb (diff)
add couchdb::bigcouch::add_node and couchdb::bigcouch::query
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 76ef648..a02d068 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,4 +1,5 @@
-define couchdb::query ( $cmd, $url, $host='127.0.0.1:5984', $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'], Exec['wait_for_couchdb'] ]