diff options
author | varac <varacanero@zeromail.org> | 2016-12-30 18:44:27 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-12-31 21:18:03 +0100 |
commit | c1f23241deb1f94eb35e6ef21e623d804fa2770e (patch) | |
tree | ca8aed46cb1c8aee3a0371057d41d47c2fa57cb9 | |
parent | 80e36f470e6fa2b5a4c6b7776e8ad1b2f1fb9bbd (diff) |
Couchdb service should not require on soledad
- Resolves: #8693
-rw-r--r-- | puppet/modules/site_couchdb/manifests/add_users.pp | 16 |
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 |