From 3ae28de3ba018d5064122dbceb31af336a090167 Mon Sep 17 00:00:00 2001 From: varac Date: Sat, 3 Nov 2012 21:47:02 +0100 Subject: added query.pp --- manifests/query.pp | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 manifests/query.pp (limited to 'manifests/query.pp') 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\'": } +} -- cgit v1.2.3