summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-03 13:18:26 -0400
committerMicah Anderson <micah@riseup.net>2013-04-03 13:18:26 -0400
commit0bec75e40e5aa4458c960242298ab455fcffc88e (patch)
tree9535121f3fe347cda1c03fc57f4e00907201a73e /manifests/init.pp
parent6c27f8faf0caef51af5958ad8aa01b3aef4ea2ed (diff)
switch to parameterized classes, changing the variable names as appropriate to remove the redundant stunnel_ prefix
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp15
1 files changed, 5 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b1437d2..270540d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,17 +17,12 @@
# TODO: warn on cert/key issues, fail on false accept?
-class stunnel {
-
- case $stunnel_ensure_version {
- '': { $stunnel_ensure_version = 'present' }
- default: { $stunnel_ensure_version = 'present' }
- }
-
+class stunnel ( $ensure_version = 'present', $startboot = '1', $default_extra )
+{
case $::operatingsystem {
- debian: { include stunnel::debian }
- centos: { include stunnel::centos }
- default: { include stunnel::default }
+ debian: { class { 'stunnel::debian': } }
+ centos: { class { 'stunnel::centos': } }
+ default: { class { 'stunnel::default': } }
}
if $use_nagios {