diff options
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}"] } } |