diff options
author | nadir <nadir-technik@nadir.org> | 2012-11-08 14:42:27 +0100 |
---|---|---|
committer | Gabriel Filion <gabster@lelutin.ca> | 2015-04-19 17:06:50 -0400 |
commit | 7288988a6d3f2785f5e23bd2d7a7f6c275421c00 (patch) | |
tree | 18b917d57dbbbcc6a5567b8b6e4eccfc16c2892a | |
parent | 0b20e1e0fd001cb0b688c6bf6971c8e7c3f743c6 (diff) |
unquoted boolean variables
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | manifests/service.pp | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -73,7 +73,7 @@ nagios server define a service that will check the NRPE command 'check_cpu' on the current node: nagios::service { 'CPU Usage': - use_nrpe => 'true', + use_nrpe => true, check_command => "check_cpu", nrpe_args => "-t 60" } diff --git a/manifests/service.pp b/manifests/service.pp index 134d1f7..918ce24 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -30,8 +30,8 @@ define nagios::service ( if $check_comand == 'absent' { fail("Must pass a check_command to ${name} if it should be present") } - if ($use_nrpe == 'true') { - include nagios::command::nrpe_timeout + if ($use_nrpe == true) { + include nagios::command::nrpe_timeout if ($nrpe_args != '') { $real_check_command = "check_nrpe_timeout!$nrpe_timeout!$check_command!\"$nrpe_args\"" |