diff options
author | varac <varacanero@zeromail.org> | 2013-08-30 08:54:18 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-08-30 08:54:18 +0200 |
commit | f18a47cfcabcc126689b1166464b5f7c3d000b79 (patch) | |
tree | 002edbfd5248f7feea05a64df4686a4b35c603e9 /puppet/modules | |
parent | 37ac5a7a86796c6579f4b6b00ed0ecb5d8cd8370 (diff) |
create sessions db with puppet (Bug #3597)
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/init.pp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp index 238b83d9..84f737d7 100644 --- a/puppet/modules/site_couchdb/manifests/init.pp +++ b/puppet/modules/site_couchdb/manifests/init.pp @@ -66,9 +66,9 @@ class site_couchdb { } couchdb::add_user { $couchdb_soledad_user: - roles => '["auth"]', - pw => $couchdb_soledad_pw, - salt => $couchdb_soledad_salt, + roles => '["auth"]', + pw => $couchdb_soledad_pw, + salt => $couchdb_soledad_salt, require => Couchdb::Query::Setup['localhost'] } @@ -82,6 +82,11 @@ class site_couchdb { require => Couchdb::Query::Setup['localhost'] } + couchdb::create_db { 'sessions': + readers => "{ \"names\": [\"$couchdb_webapp_user\"], \"roles\": [] }", + require => Couchdb::Query::Setup['localhost'] + } + include site_couchdb::logrotate include site_shorewall::couchdb |