diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/add_user.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/add_user.pp b/manifests/add_user.pp index 659aea8..7c80220 100644 --- a/manifests/add_user.pp +++ b/manifests/add_user.pp @@ -25,10 +25,10 @@ define couchdb::add_user ( $roles, $pw, $salt = '' ) { # update the user with the given password unless they already work couchdb::update { "update_user_${name}": - host => "127.0.0.1:${port}", - db => '_users', - id => "org.couchdb.user:${name}", - data => $data, + 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}/" } } |