summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-20 20:56:15 +0200
committermh <mh@immerda.ch>2010-10-20 20:56:15 +0200
commit988a88f4e62065b45c8e32f6f915e052ff394003 (patch)
tree519f4ffb6d35493355af2d25579a5d8550c73022 /manifests
parentceb1280177cf28edbe5a60cd4169a43870cd192f (diff)
move define to own class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/nagios.pp3
2 files changed, 3 insertions, 3 deletions
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" }
+}