summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-08-15 11:44:18 +0200
committerAzul <azul@riseup.net>2013-08-28 12:52:14 +0200
commit16a3583c359cd57ff52866a8dfd933726d120d30 (patch)
tree6cd32d441d50fab4edb33275b3fb9d55f52cf622 /manifests/query.pp
parentfbe74fd5aef6e26070e9b10357604dda3bd2d842 (diff)
couch:document - ensure state of a couch document - (feature #3485)
also made the use of host, hostname and port a bit more consistent.
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 6d13c2b..0549ded 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,7 +1,7 @@
define couchdb::query (
- $cmd, $url, $host='127.0.0.1:5984', $data = '{}', $unless = undef) {
+ $cmd, $path, $host='127.0.0.1:5984', $data = '{}', $unless = undef) {
- exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${url} --data \'${data}\'":
+ exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${path} --data \'${data}\'":
require => [ Package['curl'], Exec['wait_for_couchdb'] ],
unless => $unless
}