From c4959ed225e3f65ae50ef7ce7a4f3b3e2f4e35e0 Mon Sep 17 00:00:00 2001 From: Matt Taggart Date: Thu, 30 Sep 2010 17:31:52 -0700 Subject: check to see if the $stunnel_default_extra variable is set and if not provide a reasonable default, adjust some comments --- manifests/debian.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"), -- cgit v1.2.3