diff options
author | mh <mh@immerda.ch> | 2012-06-05 19:34:51 -0300 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-06-05 19:34:51 -0300 |
commit | 0fe7552f256f0b1508cc5d3cab952eb93bee6811 (patch) | |
tree | 9769eab5ea4b9bf6f49c2c11d9a9b9e1736361c9 /manifests/service | |
parent | 3db1ca8f85b28978a3a9c09de3551f536b1375a6 (diff) |
new style for 2.7
Diffstat (limited to 'manifests/service')
-rw-r--r-- | manifests/service/ntp.pp | 8 | ||||
-rw-r--r-- | manifests/service/ping.pp | 16 |
2 files changed, 10 insertions, 14 deletions
diff --git a/manifests/service/ntp.pp b/manifests/service/ntp.pp index eca255a..b3cde2a 100644 --- a/manifests/service/ntp.pp +++ b/manifests/service/ntp.pp @@ -1,9 +1,9 @@ # manifests/service/ntp.pp class nagios::service::ntp { - nagios::service{ "check_ntp": - check_command => "check_ntp_time", - host_name => $fqdn, - } + nagios::service{ "check_ntp": + check_command => "check_ntp_time", + host_name => $::fqdn, + } } diff --git a/manifests/service/ping.pp b/manifests/service/ping.pp index c705c68..80f2114 100644 --- a/manifests/service/ping.pp +++ b/manifests/service/ping.pp @@ -1,13 +1,9 @@ define nagios::service::ping( - $ensure = present + $ensure = present, + $ping_rate = hiera('nagios_ping_rate','!100.0,20%!500.0,60%') ){ - $real_nagios_ping_rate = $nagios_ping_rate ? { - '' => '!100.0,20%!500.0,60%', - default => $nagios_ping_rate - } - - nagios::service{ "check_ping": - ensure => $ensure, - check_command => "check_ping${real_nagios_ping_rate}", - } + nagios::service{ "check_ping": + ensure => $ensure, + check_command => "check_ping${ping_rate}", + } } |