Merge "lb: Allow multiple backend"
This commit is contained in:
commit
8eec7d7758
@ -50,6 +50,10 @@ resources:
|
|||||||
datafiles:
|
datafiles:
|
||||||
all_nodes:
|
all_nodes:
|
||||||
mapped_data:
|
mapped_data:
|
||||||
|
controller_node_ips:
|
||||||
|
list_join:
|
||||||
|
- ','
|
||||||
|
- {get_param: controller_ips}
|
||||||
rabbit_node_names:
|
rabbit_node_names:
|
||||||
list_join:
|
list_join:
|
||||||
- ','
|
- ','
|
||||||
|
@ -772,7 +772,6 @@ resources:
|
|||||||
controller_virtual_ip: {get_input: controller_virtual_ip}
|
controller_virtual_ip: {get_input: controller_virtual_ip}
|
||||||
public_virtual_interface: {get_input: public_virtual_interface}
|
public_virtual_interface: {get_input: public_virtual_interface}
|
||||||
public_virtual_ip: {get_input: public_virtual_ip}
|
public_virtual_ip: {get_input: public_virtual_ip}
|
||||||
tripleo::loadbalancer::controller_host: {get_input: controller_host}
|
|
||||||
tripleo::loadbalancer::control_virtual_interface: {get_input: control_virtual_interface}
|
tripleo::loadbalancer::control_virtual_interface: {get_input: control_virtual_interface}
|
||||||
tripleo::loadbalancer::controller_virtual_ip: {get_input: controller_virtual_ip}
|
tripleo::loadbalancer::controller_virtual_ip: {get_input: controller_virtual_ip}
|
||||||
tripleo::loadbalancer::public_virtual_interface: {get_input: public_virtual_interface}
|
tripleo::loadbalancer::public_virtual_interface: {get_input: public_virtual_interface}
|
||||||
|
@ -26,7 +26,10 @@ if !str2bool(hiera('enable_package_install', 'false')) {
|
|||||||
|
|
||||||
if hiera('step') >= 1 {
|
if hiera('step') >= 1 {
|
||||||
|
|
||||||
include ::tripleo::loadbalancer
|
$controller_node_ips = split(downcase(hiera('controller_node_ips')), ',')
|
||||||
|
class { '::tripleo::loadbalancer' :
|
||||||
|
controller_hosts => $controller_node_ips,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user