summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r--manifests/debian.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
new file mode 100644
index 0000000..57307dd
--- /dev/null
+++ b/manifests/debian.pp
@@ -0,0 +1,24 @@
+class stunnel::debian inherits stunnel::linux {
+
+ Package[stunnel] {
+ name => 'stunnel4',
+ }
+
+ Service[stunnel] {
+ name => 'stunnel4',
+ pattern => '/usr/bin/stunnel4',
+ }
+
+ # make the /etc/default/stunnel configurable with a variable
+ case $stunnel_startboot {
+ '': { $stunnel_startboot = '1' }
+ }
+
+ file { '/etc/default/stunnel4':
+ content => template("stunnel/Debian/default"),
+ require => Package['stunnel4'],
+ notify => Service['stunnel4'],
+ owner => root, group => 0, mode => 0644;
+ }
+}
+