summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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
}
}