aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/mod/ssl.pp
blob: 6e9be5250bc7202e98f313e5488223fff6200043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class apache::mod::ssl {
    include apache::base
    file { '/etc/ssl/apache/':
        ensure => directory
    }

    openssl::self_signed_cert{ 'localhost':
        directory => '/etc/ssl/apache/',
        before    => Apache::Config['/etc/httpd/conf/vhosts.d/01_default_ssl_vhost.conf'],
    }

    package { 'apache-mod_ssl': }

    apache::config {
        '/etc/httpd/conf/vhosts.d/01_default_ssl_vhost.conf':
            content => template('apache/01_default_ssl_vhost.conf');
        '/etc/httpd/conf.d/ssl.conf':
            content => template('apache/mod/ssl.conf');
    }
}