summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-03 21:47:02 +0100
committervarac <varacanero@zeromail.org>2012-11-03 21:47:02 +0100
commit3ae28de3ba018d5064122dbceb31af336a090167 (patch)
tree53b47b00b3ef6083ba39f7bebfa1253999c38a44
parent0ee2c265ffd4bb4b6e990726d9a111aed114fded (diff)
added query.pp
-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\'": }
+}