diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-06-04 12:20:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-06-04 12:20:14 -0300 |
commit | 1171ed8e99ab351e96e9a9c88cde17df261668bb (patch) | |
tree | 0afc1efee15c88391711e31ef4b53fa1dcde4ceb | |
parent | a3ad3d98598e4da55e569340120f46869b917540 (diff) | |
download | puppet-nodo-1171ed8e99ab351e96e9a9c88cde17df261668bb.tar.gz puppet-nodo-1171ed8e99ab351e96e9a9c88cde17df261668bb.tar.bz2 |
Minor fixes
-rw-r--r-- | manifests/subsystem/monitor.pp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/subsystem/monitor.pp b/manifests/subsystem/monitor.pp index 2c0d019..e57d177 100644 --- a/manifests/subsystem/monitor.pp +++ b/manifests/subsystem/monitor.pp @@ -1,15 +1,16 @@ class nodo::subsystem::monitor( $use_nagios = hiera('nodo::subsystem::monitor::use_nagios', True), + $address = hiera('nodo::subsystem::monitor::address', $::ipaddress), + $check_command = hiera('nodo::subsystem::monitor::check_command', 'check_ping'), $check_ping = hiera('nodo::subsystem::monitor::check_ping', present), $check_ssh = hiera('nodo::subsystem::monitor::check_ssh', absent), - $address = hiera('nodo::subsystem::monitor::address', $::ipaddress), - $ping_rate = hiera('nodo::subsystem::monitor::ping_rate', '!100.0,20%!500.0,60%'), - $check_command = hiera('nodo::subsystem::monitor::check_command', 'check_ping') + $ping_rate = hiera('nodo::subsystem::monitor::ping_rate', '!100.0,20%!500.0,60%') ) { if $use_nagios != false { class{ 'nagios::target': - address => $address, + address => $address, + check_command => $check_command, } nagios::service::ping { "${::fqdn}": |