summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-12-30 18:44:27 +0100
committerelijah <elijah@riseup.net>2017-01-08 11:59:21 -0800
commit95ebed1696b9fc16f07d65387b7d0fe92e336047 (patch)
treea38706bf3b8b75a056c7a6ae06d4695787438c18 /puppet
parent21b4bd1fd1e875716b09572006d309221772a43c (diff)
Couchdb service should not require on soledad
- Resolves: #8693
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_couchdb/manifests/add_users.pp16
1 files changed, 10 insertions, 6 deletions
diff --git a/puppet/modules/site_couchdb/manifests/add_users.pp b/puppet/modules/site_couchdb/manifests/add_users.pp
index f12c5a5e..5c32c1e3 100644
--- a/puppet/modules/site_couchdb/manifests/add_users.pp
+++ b/puppet/modules/site_couchdb/manifests/add_users.pp
@@ -1,6 +1,8 @@
# add couchdb users for all services
class site_couchdb::add_users {
+ $services = hiera('services', [])
+
Class['site_couchdb::create_dbs']
-> Class['site_couchdb::add_users']
@@ -29,12 +31,14 @@ class site_couchdb::add_users {
## soledad couchdb user
## r/w: user-<uuid>, shared
## read: tokens
- couchdb::add_user { $site_couchdb::couchdb_soledad_user:
- roles => '["tokens"]',
- pw => $site_couchdb::couchdb_soledad_pw,
- salt => $site_couchdb::couchdb_soledad_salt,
- require => Couchdb::Query::Setup['localhost'],
- notify => Service['soledad-server'];
+ if member($services, 'soledad') {
+ couchdb::add_user { $site_couchdb::couchdb_soledad_user:
+ roles => '["tokens"]',
+ pw => $site_couchdb::couchdb_soledad_pw,
+ salt => $site_couchdb::couchdb_soledad_salt,
+ require => Couchdb::Query::Setup['localhost'],
+ notify => Service['soledad-server'];
+ }
}
## webapp couchdb user