summaryrefslogtreecommitdiff
path: root/manifests/ssl.pp
blob: 84a43bf438698d25cb6a94cf6b226b7acd647dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# manifests/ssl.pp

class apache::ssl inherits apache {
    case $operatingsystem {
        centos: { include apache::ssl::centos }
        gentoo: { include apache::ssl::gentoo }
        defaults: { include apache::ssl::base }
    }
}

class apache::ssl::base {}


### distribution specific classes

### centos
class apache::ssl::centos inherits apache::ssl::base {
    package { 'mod_ssl':
        name => 'mod_ssl',
        ensure => present,
        require => Package[apache],
    }
    apache::config::file{ 'ssl.conf': }
    apache::config::file{ 'ssl_defaults.inc': }
    apache::vhost::file{ '0-default_ssl': }
}

### gentoo
class apache::ssl::gentoo inherits apache::ssl::base {
    apache::module::file { '00_default_settings': }
    apache::module::file { '00_error_documents': }
    apache::vhost::file { '00_default_ssl_vhost': }
}

class apach::ssl::itk inherits apache::ssl {
    case $operatingsystem {
        centos: { include apache::ssl::itk::centos }
    }
}

class apache::ssl::itk::centos inherits apache::ssl::centos {
    Package['mod_ssl']{
        name => 'mod_ssl-itk',
    }
}