Possibility to detach VIPs from controllers

Partial blueprint: detach-components-from-controllers

Change-Id: I761b80aabf8b7e24cbeaaaf234421c5bf57315d3
This commit is contained in:
Nikita Koshikov 2015-06-05 09:38:36 -05:00 committed by Alex Schultz
parent 8f461c2264
commit 0a7c4d561e

View File

@ -4,10 +4,19 @@ $internal_int = hiera('internal_int')
$public_int = hiera('public_int', undef)
$primary_controller_nodes = hiera('primary_controller_nodes', false)
$network_scheme = hiera('network_scheme', {})
$vip_management_cidr_netmask = netmask_to_cidr($primary_controller_nodes[0]['internal_netmask'])
$vip_public_cidr_netmask = netmask_to_cidr($primary_controller_nodes[0]['public_netmask'])
$use_neutron = hiera('use_neutron', false)
if ( hiera('vip_management_cidr_netmask', false )){
$vip_management_cidr_netmask = hiera('vip_management_cidr_netmask')
} else {
$vip_management_cidr_netmask = netmask_to_cidr($primary_controller_nodes[0]['internal_netmask'])
}
if ( hiera('vip_public_cidr_netmask', false )){
$vip_public_cidr_netmask = hiera('vip_public_cidr_netmask')
} else {
$vip_public_cidr_netmask = netmask_to_cidr($primary_controller_nodes[0]['public_netmask'])
}
# todo:(sv): temporary commented. Will be uncommented while 'multiple-l2-network' feature re-implemented
# if $use_neutron {
# ip_mgmt_other_nets = join($network_scheme['endpoints']["$internal_int"]['other_nets'], ' ')