aboutsummaryrefslogtreecommitdiff
path: root/manifests/nagios.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-20 22:57:15 +0200
committermh <mh@immerda.ch>2010-10-20 22:57:15 +0200
commiteec9e7242525cd9909c0c54cdb7515047bac4407 (patch)
tree7104bd7990b09f23d12c8b9514ded4272d904cc4 /manifests/nagios.pp
parentd0d3d20e1411511cccdf6fa3ae63164f2868221d (diff)
downloadpuppet-sshd-eec9e7242525cd9909c0c54cdb7515047bac4407.tar.gz
puppet-sshd-eec9e7242525cd9909c0c54cdb7515047bac4407.tar.bz2
extend sshd::nagios with ensure param
Diffstat (limited to 'manifests/nagios.pp')
-rw-r--r--manifests/nagios.pp15
1 files changed, 13 insertions, 2 deletions
diff --git a/manifests/nagios.pp b/manifests/nagios.pp
index 890810e..1500a09 100644
--- a/manifests/nagios.pp
+++ b/manifests/nagios.pp
@@ -1,8 +1,19 @@
define sshd::nagios(
+ $ensure = 'present',
$check_hostname = 'absent'
) {
case $check_hostname {
- 'absent': { nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" } }
- default: { nagios::service{"ssh_port_host_${name}_${check_hostname}": check_command => "check_ssh_port_host!${name}!${check_hostname}" } }
+ 'absent': {
+ nagios::service{"ssh_port_${name}":
+ ensure => $esnure,
+ check_command => "check_ssh_port!$name"
+ }
+ }
+ default: {
+ nagios::service{"ssh_port_host_${name}_${check_hostname}":
+ ensure => $esnure,
+ check_command => "check_ssh_port_host!${name}!${check_hostname}"
+ }
+ }
}
}