notify the refresh_stunnel exec when the conf files change
[puppet_stunnel.git] / manifests / debian.pp
1 class stunnel::debian inherits stunnel::linux {
2
3   Package['stunnel'] {
4     name => 'stunnel4',
5   }
6
7   Service['stunnel'] {
8     name      => 'stunnel4',
9     pattern   => '/usr/bin/stunnel4',
10     subscribe => File['/etc/default/stunnel4'],
11     require   => Package['stunnel4']
12   }
13
14   file { '/etc/default/stunnel4':
15     content => template('stunnel/Debian/default'),
16     before  => Package['stunnel4'],
17     notify  => Service['stunnel4'],
18     owner   => root,
19     group   => 0,
20     mode    => '0644';
21   }
22 }
23