summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/query.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
new file mode 100644
index 0000000..1667e81
--- /dev/null
+++ b/manifests/query.pp
@@ -0,0 +1,3 @@
+define couchdb::query ($host, $cmd, $url, $data = '') {
+ exec { "/usr/bin/curl -X $cmd $host/$url --data \'$data\'": }
+}