diff options
author | Azul <azul@riseup.net> | 2013-09-25 10:49:53 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-09-25 10:49:53 +0200 |
commit | e5bbb903159a94dc3357344d78060343ef47bac8 (patch) | |
tree | f9d25bc89ee6bf2083668aad56401015662abe76 /manifests | |
parent | a5a89d49888aa6123b78c37b72ec34177f40dcaf (diff) | |
parent | 1eff45c923e2ff196e3b52d1033185453358e047 (diff) |
Merge branch 'feature/3709-check-security-before-overwriting'
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/create_db.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp index 9ba921c..edc6f0d 100644 --- a/manifests/create_db.pp +++ b/manifests/create_db.pp @@ -11,11 +11,11 @@ define couchdb::create_db ( unless => "/usr/bin/curl -s -f --netrc-file /etc/couchdb/couchdb.netrc ${host}/${name}" } - couchdb::query { "${name}_security": - cmd => 'PUT', - host => $host, - path => "${name}/_security", - data => "{ \"admins\": ${admins}, \"readers\": ${readers} }", + couchdb::document { "${name}_security": + db => $name, + id => '_security', + host => $host, + data => "{ \"admins\": ${admins}, \"readers\": ${readers} }", require => Couchdb::Query["create_db_${name}"] } } |