summaryrefslogtreecommitdiff
path: root/manifests/query.pp
blob: b36f290c24fcb0572f3cbd3fa882d01ed00203fe (plain)
1
2
3
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\'": }
}