summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-12-03 10:47:03 -0500
committerMicah Anderson <micah@riseup.net>2013-12-03 10:47:03 -0500
commitd38d80ccb19947984ea9d4ecc8d826144c33dff4 (patch)
treeaced30bbe1c594dead9cd8662712bd35e5cc5432 /manifests
parente49066146ffeb91ce7c8e2100cdc4eca0ceb3a9b (diff)
change couchdb::adduser to use couchdb::document instead of couchdb::update
Diffstat (limited to 'manifests')
-rw-r--r--manifests/add_user.pp5
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
}
}