aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/manifests
diff options
context:
space:
mode:
authorYanis Guenane <yanis.guenane@enovance.com>2015-03-26 16:54:48 +0100
committerYanis Guenane <yanis.guenane@enovance.com>2015-03-31 10:41:27 +0200
commit2520176436ec46e7b48664a5d041dc55ca231136 (patch)
tree5da5c3a09c0924d0f8ed0c6b65eec3dfdefe1329 /puppet/manifests
parentf9b98d4c576d84be7167f1b728179d32a018a1a1 (diff)
lb: Allow multiple backend
Currently tripleo::loadbalancer allow a controller to have only itself as a backend for a service, no matter the number of controller nodes. This patch fixes that using all controller nodes available. Change-Id: Ic8fc022b84850c669b19d37da7f275d9c811e694 Depends-On: I2a46c250bc3325eef9c3128cac2ab45c88b1ae75
Diffstat (limited to 'puppet/manifests')
-rw-r--r--puppet/manifests/overcloud_controller.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp
index bad5fdb7..4269e035 100644
--- a/puppet/manifests/overcloud_controller.pp
+++ b/puppet/manifests/overcloud_controller.pp
@@ -26,7 +26,10 @@ if !str2bool(hiera('enable_package_install', 'false')) {
if hiera('step') >= 1 {
- include ::tripleo::loadbalancer
+ $controller_node_ips = split(downcase(hiera('controller_node_ips')), ',')
+ class { '::tripleo::loadbalancer' :
+ controller_hosts => $controller_node_ips,
+ }
}