diff options
author | mh <mh@immerda.ch> | 2008-12-09 22:55:22 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-12-09 22:55:22 +0000 |
commit | 9bbdcbc8ed5e0e752949aaeb4f5bfe0f11053a1a (patch) | |
tree | dc3ae9bcc30df4a7dedc6b685ba8d914ee3c5b8f | |
parent | f5793282dd4606e0ab28edc7d8fd5ace9b384274 (diff) |
adjusted to new usage of booleans
-rw-r--r-- | manifests/defines.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index ae5a8dd..382f21a 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -129,14 +129,14 @@ define nagios::service::http( $check_domain = 'absent', $check_url = '/', $check_code = 'OK', - $ssl_mode = 'false' + $ssl_mode = false ){ $real_check_domain = $check_domain ? { 'absent' => $name, default => $check_domain } case $ssl_mode { - 'force','true','only': { + 'force',true,'only': { nagios::service{"https_${name}_${check_code}_${hostname}": check_command => "check_https_url_regex!${real_check_domain}!${check_url}!'${check_code}'", } @@ -150,7 +150,7 @@ define nagios::service::http( } } case $ssl_mode { - 'false','true': { + false,true: { nagios::service{"http_${name}_${check_code}_${hostname}": check_command => "check_http_url_regex!${real_check_domain}!${check_url}!'${check_code}'", } |