From f59e8b2e4aad3023f46ae3a1aad655b06605ee84 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 30 Aug 2013 14:56:14 +0200 Subject: couchdb: update_user_webapp fails (Bug #3611) --- manifests/add_user.pp | 2 +- manifests/update.pp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/add_user.pp b/manifests/add_user.pp index b3297eb..28826f3 100644 --- a/manifests/add_user.pp +++ b/manifests/add_user.pp @@ -25,7 +25,7 @@ define couchdb::add_user ( $roles, $pw, $salt = '' ) { # update the user with the given password unless they already work couchdb::update { "update_user_${name}": - port => $port, + host => "127.0.0.1:${port}", db => '_users', id => "org.couchdb.user:${name}", data => $data, 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 } -- cgit v1.2.3