diff options
-rw-r--r-- | manifests/debian.pp | 9 | ||||
-rw-r--r-- | templates/Debian/default | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp index 57307dd..83f9981 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -9,10 +9,17 @@ 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"), diff --git a/templates/Debian/default b/templates/Debian/default index 632ef31..85c4754 100644 --- a/templates/Debian/default +++ b/templates/Debian/default @@ -9,3 +9,5 @@ OPTIONS="" # Change to one to enable ppp restart scripts PPP_RESTART=0 + +<%= stunnel_default_extra %> |