blob: 1af8c2568ee367949240e4ed81fa42f9b680a526 (
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
|
class apache::base {
# number of time the log file are rotated before being removed
$httpdlogs_rotate = '24'
$apache_user = 'apache'
$apache_group = 'apache'
package { 'apache-mpm-prefork': }
if ($lsbdistrelease == '1') or ($lsbdistid == 'MandrivaLinux') {
package { 'apache-conf': }
} else {
package { 'apache': }
}
service { 'httpd':
alias => 'apache',
subscribe => [ Package['apache-mpm-prefork'] ],
}
exec { 'service httpd configtest':
refreshonly => true,
notify => Service['apache'],
}
apache::config {
'/etc/httpd/conf.d/customization.conf':
content => template('apache/customization.conf');
'/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
content => template('apache/00_default_vhosts.conf');
}
file { '/etc/logrotate.d/httpd':
content => template('apache/logrotate')
}
}
|