aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/manifests')
-rw-r--r--puppet/manifests/overcloud_controller.pp10
1 files changed, 4 insertions, 6 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp
index 0541fa4e..9ec224a9 100644
--- a/puppet/manifests/overcloud_controller.pp
+++ b/puppet/manifests/overcloud_controller.pp
@@ -45,12 +45,10 @@ if hiera('step') >= 2 {
$mongo_node_ips = split(downcase(hiera('mongo_node_ips')), ',')
$mongo_node_ips_with_port = suffix($mongo_node_ips, ':27017')
- if count($mongo_node_ips) > 1 {
- if downcase($::hostname) == hiera('bootstrap_nodeid') {
- $mongodb_replset = hiera('mongodb::server::replset')
- mongodb_replset { $mongodb_replset :
- members => $mongo_node_ips_with_port,
- }
+ $mongodb_replset = hiera('mongodb::server::replset')
+ if downcase(hiera('bootstrap_nodeid')) == $::hostname {
+ mongodb_replset { $mongodb_replset :
+ members => $mongo_node_ips_with_port,
}
}