From c4a822668199ca52fdaec28b0ba16c2fe417e4b4 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Wed, 20 May 2015 15:48:49 +0200 Subject: Ensures mongodb configuration only happens if mongodb is needed Change-Id: I7e9eb665275bd48d9c079934cc01ba62b5f59e16 --- puppet/manifests/overcloud_controller_pacemaker.pp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'puppet') diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp index ecd5db5f..d23761c0 100644 --- a/puppet/manifests/overcloud_controller_pacemaker.pp +++ b/puppet/manifests/overcloud_controller_pacemaker.pp @@ -95,14 +95,14 @@ if hiera('step') >= 1 { replace => true, } - # MongoDB - include ::mongodb::globals - - # FIXME: replace with service_manage => false on ::mongodb::server - # when this is merged: https://github.com/puppetlabs/pupp etlabs-mongodb/pull/198 - class { '::mongodb::server' : - service_ensure => undef, - service_enable => false, + if downcase(hiera('ceilometer_backend')) == 'mongodb' { + include ::mongodb::globals + # FIXME: replace with service_manage => false on ::mongodb::server + # when this is merged: https://github.com/puppetlabs/pupp etlabs-mongodb/pull/198 + class { '::mongodb::server' : + service_ensure => undef, + service_enable => false, + } } # Galera -- cgit 1.2.3-korg