summaryrefslogtreecommitdiff
path: root/manifests/update.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-08-30 14:56:14 +0200
committervarac <varacanero@zeromail.org>2013-08-30 14:56:14 +0200
commitf59e8b2e4aad3023f46ae3a1aad655b06605ee84 (patch)
tree6d514f109404da38e88973640504d7276333e208 /manifests/update.pp
parentca467f2c8ec25132133e058f446217828b932671 (diff)
couchdb: update_user_webapp fails (Bug #3611)
Diffstat (limited to 'manifests/update.pp')
-rw-r--r--manifests/update.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/update.pp b/manifests/update.pp
index 579659b..b1dba84 100644
--- a/manifests/update.pp
+++ b/manifests/update.pp
@@ -1,6 +1,11 @@
-define couchdb::update ($db, $id, $data, $port='5984', $unless=undef) {
+define couchdb::update (
+ $db,
+ $id,
+ $data,
+ $host='127.0.0.1:5984',
+ $unless=undef) {
- exec { "couch-doc-update --port ${port} --db ${db} --id ${id} --data \'${data}\'":
+ exec { "couch-doc-update --host ${host} --db ${db} --id ${id} --data \'${data}\'":
require => Exec['wait_for_couchdb'],
unless => $unless
}