From 0b488591cadc239ecd1e6beebbc76da63baece2c Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 24 Feb 2010 20:16:43 +0100 Subject: refactoring - no behavior change - everything goes into its own file -> autolookup - order the params of the define nicer -> debugging! - move nagios stuff to the init class -> configure module at the very first point - move variable version enforcing to init class -> configure module at the very first point --- manifests/debian.pp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 manifests/debian.pp (limited to 'manifests/debian.pp') 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; + } +} + -- cgit v1.2.3