diff options
author | Micah Anderson <micah@riseup.net> | 2013-04-03 13:19:05 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-04-03 13:19:05 -0400 |
commit | 724bc04aa9ece40fe2c54979afffdf53c5564758 (patch) | |
tree | 6966531eac36ad88b26ace1757d068059bb75f16 /manifests/service.pp | |
parent | 0bec75e40e5aa4458c960242298ab455fcffc88e (diff) |
move the $use_nagios check into the stunnel::service define, where it is more
useful for creating accurate nagios-statd-proc checks for the correct stunnel names
Diffstat (limited to 'manifests/service.pp')
-rw-r--r-- | manifests/service.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index b925d00..fd64f9b 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -51,6 +51,7 @@ define stunnel::service ( $timeoutconnect = false, $timeoutidle = false, $transparent = false, + $use_nagios = false, $verify = false ) { @@ -66,4 +67,10 @@ define stunnel::service ( group => 0, mode => '0600'; } + + if $use_nagios { + nagios::service { "stunnel_${name}": + check_command => "nagios-stat-proc!/usr/bin/stunnel4 /etc/stunnel/${name}.conf!6!5!proc"; + } + } } |