1 |
class apache::mod::ssl { |
2 |
include apache::base |
3 |
file { '/etc/ssl/apache/': |
4 |
ensure => directory |
5 |
} |
6 |
|
7 |
openssl::self_signed_cert{ 'localhost': |
8 |
directory => '/etc/ssl/apache/', |
9 |
before => Apache::Config['/etc/httpd/conf/vhosts.d/01_default_ssl_vhost.conf'], |
10 |
} |
11 |
|
12 |
package { 'apache-mod_ssl': } |
13 |
|
14 |
apache::config { |
15 |
'/etc/httpd/conf/vhosts.d/01_default_ssl_vhost.conf': |
16 |
content => template('apache/01_default_ssl_vhost.conf'); |
17 |
'/etc/httpd/conf.d/ssl.conf': |
18 |
content => template('apache/ssl.conf'); |
19 |
} |
20 |
} |