aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/mod/ssl.pp
blob: 9065c5ccd6c098cd7af07873b6e4b865e2b97e93 (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_vhost.conf':
            content => template('apache/mod/ssl_vhost.conf');
    }
}