]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
adjusted to new usage of booleans
authormh <mh@immerda.ch>
Tue, 9 Dec 2008 23:05:26 +0000 (23:05 +0000)
committerMicah Anderson <micah@riseup.net>
Mon, 7 Dec 2009 21:03:39 +0000 (16:03 -0500)
manifests/init.pp

index 55703e6ce6e851343780f25ecfc1a8b33f97c94d..932cd568ba8c7f54fcb56230ef866df8a3a86ba4 100644 (file)
@@ -229,9 +229,8 @@ class sshd::base {
                require => File[sshd_config],
     }
     if $use_nagios {
-        case $nagios_check_ssh {
-            false: { info("We don't do nagioschecks for ssh on ${fqdn}" ) }
-            default: { nagios::service{ "ssh_${fqdn}_port_${sshd_port}": check_command => "ssh_port!$sshd_port" } }
+        if $nagios_check_ssh {
+            nagios::service{ "ssh_${fqdn}_port_${sshd_port}": check_command => "ssh_port!$sshd_port" }
         }
     }
 }