From 988a88f4e62065b45c8e32f6f915e052ff394003 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 20 Oct 2010 20:56:15 +0200 Subject: move define to own class --- manifests/init.pp | 3 --- manifests/nagios.pp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 manifests/nagios.pp (limited to 'manifests') 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" } +} -- cgit v1.2.3