9d6647d561
Lokup by hiera() makes impossible to change network_scheme from plugin tasks. Change-Id: I9f034906bb382db13c83e5d320e33800357d72b7 Closes-bug: #1535679
18 lines
449 B
Puppet
18 lines
449 B
Puppet
notice('MODULAR: public_vip_ping.pp')
|
|
|
|
$network_scheme = hiera_hash('network_scheme',{})
|
|
prepare_network_config($network_scheme)
|
|
$run_ping_checker = hiera('run_ping_checker', true)
|
|
$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,
|
|
}
|
|
|
|
}
|
|
|