summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-12-20 10:12:39 -0800
committerelijah <elijah@riseup.net>2016-12-20 10:12:39 -0800
commit866af737a3e641008c05a210d04a4dc5e5bcfbc4 (patch)
tree226104c7effc2a45701c1d801decbf97845a3468 /puppet/modules
parentdc43b30079316ed41bf95eca902d5d65ba877888 (diff)
bugfix: couchdb nodes should not require soledad. closes #8693
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_couchdb/manifests/create_dbs.pp11
1 files changed, 7 insertions, 4 deletions
diff --git a/puppet/modules/site_couchdb/manifests/create_dbs.pp b/puppet/modules/site_couchdb/manifests/create_dbs.pp
index ddfb7d65..1c594bb6 100644
--- a/puppet/modules/site_couchdb/manifests/create_dbs.pp
+++ b/puppet/modules/site_couchdb/manifests/create_dbs.pp
@@ -1,5 +1,6 @@
# creates neccesary databases
class site_couchdb::create_dbs {
+ $services = hiera('services', [])
Class['site_couchdb::setup']
-> Class['site_couchdb::create_dbs']
@@ -42,10 +43,12 @@ class site_couchdb::create_dbs {
## shared database
## r/w: soledad
- couchdb::create_db { 'shared':
- members => "{ \"names\": [\"${site_couchdb::couchdb_soledad_user}\"], \"roles\": [\"replication\"] }",
- require => Couchdb::Query::Setup['localhost'],
- notify => Service['soledad-server'];
+ if member($services, 'soledad') {
+ couchdb::create_db { 'shared':
+ members => "{ \"names\": [\"${site_couchdb::couchdb_soledad_user}\"], \"roles\": [\"replication\"] }",
+ require => Couchdb::Query::Setup['localhost'],
+ notify => Service['soledad-server'];
+ }
}
## tickets database