From 25ff4895b47ffd937e9f9881747ee8ffb511dacf Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 27 Nov 2013 14:20:51 -0500 Subject: add keycache couchdb database, and set appropriate roles Change-Id: I492a8dfb42e92ced80fb09c2095fa1328e24346b --- puppet/modules/site_couchdb/manifests/add_users.pp | 2 +- puppet/modules/site_couchdb/manifests/create_dbs.pp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'puppet') 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': -- cgit v1.2.3