summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/debian.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
index 57307dd..69240c4 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -9,10 +9,16 @@ class stunnel::debian inherits stunnel::linux {
pattern => '/usr/bin/stunnel4',
}
- # make the /etc/default/stunnel configurable with a variable
+ # make the /etc/default/stunnel ENABLED configurable with a variable
+ # and default to on
case $stunnel_startboot {
'': { $stunnel_startboot = '1' }
}
+ # make the /etc/default/stunnel extra configurable with a variable
+ # and default to adding nothing to the default file
+ case $stunnel_default_extra {
+ '': { $stunnel_default_extra = '' }
+ }
file { '/etc/default/stunnel4':
content => template("stunnel/Debian/default"),