summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/query.pp6
2 files changed, 7 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 820c71d..d62bb9e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,4 +17,7 @@ class couchdb (
RedHat: { include couchdb::redhat }
}
+ package { 'curl':
+ ensure => installed,
+ }
}
diff --git a/manifests/query.pp b/manifests/query.pp
index b36f290..2870984 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,3 +1,5 @@
-define couchdb::query ($host='127.0.0.1:5984', $cmd, $url, $data = '') {
- exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X $cmd $host/$url --data \'$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']
+ }
}