fuel-library/deployment/puppet/osnailyfacter/modular/virtual_ips/public_vip_ping.pp
Sergey Vasilenko 9d6647d561 Replace usage hiera() to hiera_hash() for all network_scheme lookups
Lokup by hiera() makes impossible to change network_scheme from plugin tasks.

Change-Id: I9f034906bb382db13c83e5d320e33800357d72b7
Closes-bug: #1535679
2016-01-19 16:52:02 +03:00

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,
}
}