fix accidentally removed cluster parameter
[puppet_stunnel.git] / manifests / centos.pp
1 class stunnel::centos inherits stunnel::linux {
2
3   file { '/etc/init.d/stunnel':
4     source  => "puppet:///modules/stunnel/${::operatingsystem}/stunnel.init",
5     require => Package['stunnel'],
6     before  => Service['stunnel'],
7     owner   => root,
8     group   => 0,
9     mode    => '0755';
10   }
11
12   user::managed { 'stunnel':
13     homedir => '/var/run/stunnel',
14     shell   => '/sbin/nologin',
15     uid     => 105,
16     gid     => 105;
17   }
18
19   Service['stunnel']{
20     hasstatus => true,
21     require => [ User['stunnel'], File['/etc/init.d/stunnel'] ]
22   }
23
24   file { '/etc/stunnel/stunnel.conf':
25     source  => [ "puppet:///modules/site-stunnel/${::fqdn}/stunnel.conf",
26                  "puppet:///modules/site-stunnel/${stunnel::cluster}/stunnel.conf",
27                  'puppet:///modules/site-stunnel/stunnel.conf',
28                  'puppet:///modules/stunnel/${::operatingsystem}/stunnel.conf' ],
29     require => Package['stunnel'],
30     notify  => Service['stunnel'],
31     owner   => root,
32     group   => 0,
33     mode    => '0600';
34   }
35 }