summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-03 12:15:08 -0400
committerMicah Anderson <micah@riseup.net>2013-04-03 12:15:08 -0400
commit75842d9eb10110664b30861840ada3b645f7b870 (patch)
tree285b54a93557e864abbc7c2c473d8b8dc23ca808 /manifests/debian.pp
parent03b51fcb718734f4b2ea76c038ffbe9b2b348b1a (diff)
lint
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r--manifests/debian.pp18
1 files changed, 11 insertions, 7 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
index 83f9981..a480a2c 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -1,31 +1,35 @@
class stunnel::debian inherits stunnel::linux {
-
+
Package[stunnel] {
name => 'stunnel4',
}
-
+
Service[stunnel] {
name => 'stunnel4',
pattern => '/usr/bin/stunnel4',
}
-
+
# make the /etc/default/stunnel ENABLED configurable with a variable
# and default to on
case $stunnel_startboot {
'': { $stunnel_startboot = '1' }
+ default: { $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 = '' }
+ default: { $stunnel_default_extra = '' }
}
-
+
file { '/etc/default/stunnel4':
- content => template("stunnel/Debian/default"),
+ content => template('stunnel/Debian/default'),
require => Package['stunnel4'],
- notify => Service['stunnel4'],
- owner => root, group => 0, mode => 0644;
+ notify => Service['stunnel4'],
+ owner => root,
+ group => 0,
+ mode => '0644';
}
}