Merge "Add ability to deploy vips on non-controllers"

This commit is contained in:
Jenkins 2015-06-24 12:37:29 +00:00 committed by Gerrit Code Review
commit 7d19bc3783

View File

@ -5,6 +5,7 @@ $public_int = hiera('public_int', undef)
$primary_controller_nodes = hiera('primary_controller_nodes', false)
$network_scheme = hiera('network_scheme', {})
$use_neutron = hiera('use_neutron', false)
$deploy_vrouter = hiera('deploy_vrouter', true)
if ( hiera('vip_management_cidr_netmask', false )){
$vip_management_cidr_netmask = hiera('vip_management_cidr_netmask')
@ -37,6 +38,12 @@ $management_vip_data = {
ping_host_list => "",
}
cluster::virtual_ip { 'management' :
vip => $management_vip_data,
}
if $deploy_vrouter {
$management_vrouter_vip_data = {
namespace => 'vrouter',
nic => $internal_int,
@ -52,15 +59,17 @@ $management_vrouter_vip_data = {
ping_host_list => "",
}
cluster::virtual_ip { 'management' :
vip => $management_vip_data,
}
cluster::virtual_ip { 'management_vrouter' :
vip => $management_vrouter_vip_data,
}
$management_vips = ['management', 'management_vrouter']
} else {
$management_vips = ['management']
}
if $public_int {
# todo:(sv): temporary commented. Will be uncommented while 'multiple-l2-network' feature re-implemented
@ -81,6 +90,12 @@ if $public_int {
other_networks => $vip_publ_other_nets,
}
cluster::virtual_ip { 'public' :
vip => $public_vip_data,
}
if $deploy_vrouter {
$public_vrouter_vip_data = {
namespace => 'vrouter',
nic => $public_int,
@ -97,15 +112,16 @@ if $public_int {
collocation => 'management_vrouter',
}
cluster::virtual_ip { 'public' :
vip => $public_vip_data,
}
cluster::virtual_ip { 'public_vrouter' :
vip => $public_vrouter_vip_data,
}
$public_vips = ['public_vip', 'public_vrouter']
} else {
$public_vips = ['public_vip']
}
$vips = concat($management_vips, $public_vips)
} else {
$vips = $management_vips