summaryrefslogtreecommitdiff
path: root/manifests/bigcouch/query.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/bigcouch/query.pp')
-rw-r--r--manifests/bigcouch/query.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/bigcouch/query.pp b/manifests/bigcouch/query.pp
new file mode 100644
index 0000000..cecfe5a
--- /dev/null
+++ b/manifests/bigcouch/query.pp
@@ -0,0 +1,10 @@
+define couchdb::bigcouch::query (
+ $cmd, $url, $host='127.0.0.1:5986', $data = '{}' ) {
+
+ couchdb::query { "${name}":
+ cmd => $cmd,
+ host => $host,
+ url => $url,
+ data => $data
+ }
+}