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
|
# File 'manifests/ssl.pp', line 1
class apache::ssl {
include apache
case $::osfamily {
Debian: {
exec { 'enable-ssl':
command => '/usr/sbin/a2enmod ssl',
creates => '/etc/apache2/mods-enabled/ssl.load',
notify => Service['httpd'],
require => Class['apache::install'],
}
}
default: {
package { 'mod_ssl':
ensure => present,
require => Package['httpd'],
notify => Class['apache::service'],
}
file { "${apache::params::configdir}/ssl.conf":
mode => '0644',
owner => 'root',
group => 'root',
notify => Exec['reload-apache'],
}
file {['/var/cache/mod_ssl', '/var/cache/mod_ssl/scache']:
ensure => directory,
owner => 'apache',
group => 'root',
mode => '0700',
notify => Exec['reload-apache'];
}
}
}
}
|