summaryrefslogtreecommitdiff
path: root/manifests/create_db.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-21 18:05:19 +0100
committervarac <varacanero@zeromail.org>2013-01-21 18:05:19 +0100
commitdcb8a082ac842b0660819ea61f9448c4e373746e (patch)
treea0fced713629815300304854d5bb1a4f3634f236 /manifests/create_db.pp
parent53558a7e9e86fe9e3c279c2e30020d35600b0868 (diff)
towards create_db using new update script
Diffstat (limited to 'manifests/create_db.pp')
-rw-r--r--manifests/create_db.pp19
1 files changed, 16 insertions, 3 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp
index c7832be..abf5d69 100644
--- a/manifests/create_db.pp
+++ b/manifests/create_db.pp
@@ -1,6 +1,6 @@
-define couchdb::create_db ($host='127.0.0.1:5984',
- $admins="{\"names\": [], \"roles\": [] }",
- $readers="{\"names\": [], \"roles\": [] }") {
+define couchdb::create_db ( $host='127.0.0.1:5984',
+ $admins='{\'names\': [], \'roles\': [] }',
+ $readers='{\'names\': [], \'roles\': [] }') {
Couchdb::Query["create_db_$name"] -> Couchdb::Query["db_security_${name}"]
@@ -17,4 +17,17 @@ define couchdb::create_db ($host='127.0.0.1:5984',
data => "{ \"admins\": $admins, \"readers\": $readers }"
}
+ #couchdb::update { "create_db_$name":
+ # db => $name,
+ # id => '',
+ # data => ''
+ #}
+
+ #couchdb::update { "db_security_$name":
+ # db => $name,
+ # id => '_security',
+ # data => "{ \"admins\": $admins, \"readers\": $readers }"
+ #}
+
+
}