From d38d80ccb19947984ea9d4ecc8d826144c33dff4 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 3 Dec 2013 10:47:03 -0500 Subject: change couchdb::adduser to use couchdb::document instead of couchdb::update --- manifests/add_user.pp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/add_user.pp b/manifests/add_user.pp index 7c80220..1d25fd5 100644 --- a/manifests/add_user.pp +++ b/manifests/add_user.pp @@ -24,11 +24,10 @@ define couchdb::add_user ( $roles, $pw, $salt = '' ) { } # update the user with the given password unless they already work - couchdb::update { "update_user_${name}": + couchdb::document { "update_user_${name}": host => "127.0.0.1:${port}", db => '_users', id => "org.couchdb.user:${name}", - data => $data, - unless => "/usr/bin/curl -s -f ${name}:${pw}@127.0.0.1:${port}/" + data => $data } } -- cgit v1.2.3