summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/create_dbs.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2013-11-27 14:19:36 -0500
committerMicah Anderson <micah@leap.se>2013-11-27 14:48:01 -0500
commita9d75259f96e64825ea97eca17cbe6e0c6005d0d (patch)
tree1159e19e53e427b7cb55877007589a5742edd0ca /puppet/modules/site_couchdb/manifests/create_dbs.pp
parent6bff399fdcdab967a13a27d40dcef4bfb871e046 (diff)
add comments with access information
Change-Id: I058ac1f061bca17736662f14826e99d32472739b
Diffstat (limited to 'puppet/modules/site_couchdb/manifests/create_dbs.pp')
-rw-r--r--puppet/modules/site_couchdb/manifests/create_dbs.pp17
1 files changed, 14 insertions, 3 deletions
diff --git a/puppet/modules/site_couchdb/manifests/create_dbs.pp b/puppet/modules/site_couchdb/manifests/create_dbs.pp
index a734c870..d3125448 100644
--- a/puppet/modules/site_couchdb/manifests/create_dbs.pp
+++ b/puppet/modules/site_couchdb/manifests/create_dbs.pp
@@ -1,28 +1,39 @@
class site_couchdb::create_dbs {
- # identities database
- # r/w: webapp
- # r: nickserver, leap_mx - need to restrict with design document
+ # Couchdb databases
+
+ ## identities database
+ ## r: nickserver, leap_mx - needs to be restrict with design document
+ ## r/w: webapp
couchdb::create_db { 'identities':
members => "{ \"names\": [], \"roles\": [\"identities\"] }",
require => Couchdb::Query::Setup['localhost']
}
+ ## sessions database
+ ## r/w: webapp
couchdb::create_db { 'sessions':
members => "{ \"names\": [\"$site_couchdb::couchdb_webapp_user\"], \"roles\": [] }",
require => Couchdb::Query::Setup['localhost']
}
+ ## tickets database
+ ## r/w: webapp
couchdb::create_db { 'tickets':
members => "{ \"names\": [\"$site_couchdb::couchdb_webapp_user\"], \"roles\": [] }",
require => Couchdb::Query::Setup['localhost']
}
+ ## tokens database
+ ## r: soledad - needs to be restricted with a design document
+ ## r/w: webapp
couchdb::create_db { 'tokens':
members => "{ \"names\": [], \"roles\": [\"auth\"] }",
require => Couchdb::Query::Setup['localhost']
}
+ ## users database
+ ## r/w: webapp
couchdb::create_db { 'users':
members => "{ \"names\": [\"$site_couchdb::couchdb_webapp_user\"], \"roles\": [] }",
require => Couchdb::Query::Setup['localhost']