746e38a165
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
)
18 lines
453 B
Puppet
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,
|
|
}
|
|
|
|
}
|
|
|