From: mh Date: Wed, 20 Oct 2010 18:56:15 +0000 (+0200) Subject: move define to own class X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=988a88f4e62065b45c8e32f6f915e052ff394003;p=puppet-sshd.git move define to own class --- diff --git a/manifests/init.pp b/manifests/init.pp index 13cb359..449f09f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 index 0000000..5a5a5ed --- /dev/null +++ b/manifests/nagios.pp @@ -0,0 +1,3 @@ +define sshd::nagios { + nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" } +}