diff options
Diffstat (limited to 'manifests/service.pp')
-rw-r--r-- | manifests/service.pp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index 666826d..fe36c2f 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -51,7 +51,7 @@ define stunnel::service ( $timeoutconnect = false, $timeoutidle = false, $transparent = false, - $use_nagios = false, + $manage_nagios = false, $verify = false ) { @@ -71,9 +71,7 @@ define stunnel::service ( mode => '0600'; } - if $use_nagios { - nagios::service { "stunnel_${name}": - check_command => "nagios-stat-proc!/usr/bin/stunnel4 /etc/stunnel/${name}.conf!6!5!proc"; - } + if $manage_nagios { + stunnel::service::nagios { $name: } } } |