]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
move define to own class
authormh <mh@immerda.ch>
Wed, 20 Oct 2010 18:56:15 +0000 (20:56 +0200)
committermh <mh@immerda.ch>
Wed, 20 Oct 2010 18:56:15 +0000 (20:56 +0200)
manifests/init.pp
manifests/nagios.pp [new file with mode: 0644]

index 13cb359454949b5a58c2824b024560ac216cf91d..449f09fe7a1f2ed60d51558cfda9a5e89c5dbee2 100644 (file)
@@ -233,9 +233,6 @@ class sshd {
   }
 
   if $use_nagios {
-    define sshd::nagios {
-        nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" }
-    }
     case $nagios_check_ssh {
       false: { info("We don't do nagioschecks for ssh on ${fqdn}" ) }
       default: { sshd::nagios{$sshd_ports:} }
diff --git a/manifests/nagios.pp b/manifests/nagios.pp
new file mode 100644 (file)
index 0000000..5a5a5ed
--- /dev/null
@@ -0,0 +1,3 @@
+define sshd::nagios {
+  nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" }
+}