summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp21
1 files changed, 5 insertions, 16 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d0d67c9..b2018a5 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,23 +17,12 @@
# TODO: warn on cert/key issues, fail on false accept?
-class stunnel(
- $cluster = '',
- $ensure_version = 'present',
- $startboot = '1',
- $default_extra = '',
- $nagios_stunnel_procs = false
-) {
+class stunnel ( $ensure_version = 'present', $startboot = '1', $default_extra, $cluster = '' )
+{
case $::operatingsystem {
- debian: { include stunnel::debian }
- centos: { include stunnel::centos }
- default: { include stunnel::default }
- }
-
- if $nagios_stunnel_procs {
- nagios::service { "stunnel":
- check_command => "nagios-stat-proc!/usr/bin/stunnel4!6!5!proc";
- }
+ debian: { class { 'stunnel::debian': } }
+ centos: { class { 'stunnel::centos': } }
+ default: { class { 'stunnel::default': } }
}
}