fuel-library/deployment/puppet/osnailyfacter/modular/virtual_ips/public_vip_ping.pp
Ryan Moe 746e38a165 Find bridge information by network role
With network templates there is no guarantee that a bridge
named 'br-mgmt' or 'br-ex' will exist. Another bridge can
satisfy the required network roles however.

Change-Id: I85b7955dc77d0b4f30ef0b07be7d5535698b9c22
Closes-bug: #1498088
(cherry picked from commit 188ee2943f)
2015-10-22 15:54:22 +00:00

18 lines
453 B
Puppet

notice('MODULAR: public_vip_ping.pp')
prepare_network_config(hiera('network_scheme', {}))
$run_ping_checker = hiera('run_ping_checker', true)
$network_scheme = hiera('network_scheme')
$public_iface = get_network_role_property('public/vip', 'interface')
$ping_host_list = $network_scheme['endpoints'][$public_iface]['gateway']
if $run_ping_checker {
$vip = 'vip__public'
cluster::virtual_ip_ping { $vip :
host_list => $ping_host_list,
}
}