diff options
author | Micah Anderson <micah@riseup.net> | 2013-12-03 10:47:03 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-12-03 10:47:03 -0500 |
commit | d38d80ccb19947984ea9d4ecc8d826144c33dff4 (patch) | |
tree | aced30bbe1c594dead9cd8662712bd35e5cc5432 /manifests | |
parent | e49066146ffeb91ce7c8e2100cdc4eca0ceb3a9b (diff) |
change couchdb::adduser to use couchdb::document instead of couchdb::update
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/add_user.pp | 5 |
1 files changed, 2 insertions, 3 deletions
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 } } |