summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
blob: 9cde0ecbf21d8ac262571a8cfde07f4899ec19b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class stunnel::centos inherits stunnel::base {

  file{'/etc/init.d/stunnel':
    source => [ "puppet://$server/modules/stunnel/${fqdn}/stunnel.init",
    require => Package['stunnel'],
    before => Service['stunnel'],
    owner => root, group => 0, mode => 0600;
  }

  Service['stunnel']{
    hasstatus => true,
    require => File['/etc/init.d/stunnel']
  }

  file{'/etc/stunnel/stunnel.conf':
    source => [ "puppet://$server/modules/site-stunnel/${fqdn}/stunnel.conf",
                "puppet://$server/modules/site-stunnel/stunnel.conf",
                "puppet://$server/modules/stunnel/${operatingsystem}/stunnel.conf" ],
    require => Package['stunnel'],
    notify => Service['stunnel'],
    owner => root, group => 0, mode => 0600;
  }
}