diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 4 | ||||
-rw-r--r-- | manifests/query.pp | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 1a1646d..75a638f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,4 +8,8 @@ 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'] + } } |