summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2013-11-27 14:20:51 -0500
committerMicah Anderson <micah@leap.se>2013-11-27 14:48:01 -0500
commit25ff4895b47ffd937e9f9881747ee8ffb511dacf (patch)
tree386f3ae6e7a7734673cc997a3fedef722f2a4252 /puppet/modules/site_couchdb
parenta9d75259f96e64825ea97eca17cbe6e0c6005d0d (diff)
add keycache couchdb database, and set appropriate roles
Change-Id: I492a8dfb42e92ced80fb09c2095fa1328e24346b
Diffstat (limited to 'puppet/modules/site_couchdb')
-rw-r--r--puppet/modules/site_couchdb/manifests/add_users.pp2
-rw-r--r--puppet/modules/site_couchdb/manifests/create_dbs.pp7
2 files changed, 8 insertions, 1 deletions
diff --git a/puppet/modules/site_couchdb/manifests/add_users.pp b/puppet/modules/site_couchdb/manifests/add_users.pp
index 8af9ea66..f5c38cbb 100644
--- a/puppet/modules/site_couchdb/manifests/add_users.pp
+++ b/puppet/modules/site_couchdb/manifests/add_users.pp
@@ -16,7 +16,7 @@ class site_couchdb::add_users {
## r: identities
## r/w: keycache
couchdb::add_user { $site_couchdb::couchdb_nickserver_user:
- roles => '["identities"]',
+ roles => '["identities","keycache"]',
pw => $site_couchdb::couchdb_nickserver_pw,
salt => $site_couchdb::couchdb_nickserver_salt,
require => Couchdb::Query::Setup['localhost']
diff --git a/puppet/modules/site_couchdb/manifests/create_dbs.pp b/puppet/modules/site_couchdb/manifests/create_dbs.pp
index d3125448..f8c38987 100644
--- a/puppet/modules/site_couchdb/manifests/create_dbs.pp
+++ b/puppet/modules/site_couchdb/manifests/create_dbs.pp
@@ -10,6 +10,13 @@ class site_couchdb::create_dbs {
require => Couchdb::Query::Setup['localhost']
}
+ ## keycache database
+ ## r/w: nickserver
+ couchdb::create_db { 'keycache':
+ members => "{ \"names\": [], \"roles\": [\"keycache\"] }",
+ require => Couchdb::Query::Setup['localhost']
+ }
+
## sessions database
## r/w: webapp
couchdb::create_db { 'sessions':