[true, false].each |$services_for_master| {
if $services_for_master {
- $default_local = {
- mode => "0644",
- target => $::profile::monitoring::params::services_for_master,
- check_interval => $::profile::monitoring::params::service_local["check_interval"],
- retry_interval => $::profile::monitoring::params::service_local["retry_interval"],
- host_name => $::profile::monitoring::params::service_local["host_name"],
- use => $::profile::monitoring::params::service_types["passive"],
- servicegroups => $service_group,
- notify => [],
- }
+ $default_local = merge(
+ $::profile::monitoring::params::service_local_for_master,
+ {
+ mode => "0644",
+ target => $::profile::monitoring::params::services_for_master,
+ servicegroups => $service_group,
+ notify => [],
+ })
$t = "master - "
$services_key = $master
} else {
retry_interval => "1",
})
+ $service_local_for_master = {
+ host_name => $service_local["host_name"],
+ check_interval => $service_local["check_interval"],
+ retry_interval => $service_local["retry_interval"],
+ check_freshness => Integer(Integer($service_local["check_interval"]) * 1.5),
+ use => $service_types["passive"],
+ }
}