1 |
class apache::base { |
2 |
include apache::var |
3 |
|
4 |
package { 'apache-mpm-prefork': } |
5 |
|
6 |
package { $apache::var::pkg_conf: } |
7 |
|
8 |
service { 'httpd': |
9 |
alias => 'apache', |
10 |
subscribe => [ Package['apache-mpm-prefork'] ], |
11 |
} |
12 |
|
13 |
exec { 'service httpd configtest': |
14 |
refreshonly => true, |
15 |
notify => Service['apache'], |
16 |
} |
17 |
|
18 |
apache::config { |
19 |
'/etc/httpd/conf.d/customization.conf': |
20 |
content => template('apache/customization.conf'), |
21 |
require => Package[$apache::var::pkg_conf]; |
22 |
'/etc/httpd/conf/vhosts.d/00_default_vhosts.conf': |
23 |
content => template('apache/00_default_vhosts.conf'), |
24 |
require => Package[$apache::var::pkg_conf]; |
25 |
} |
26 |
|
27 |
file { '/etc/logrotate.d/httpd': |
28 |
content => template('apache/logrotate') |
29 |
} |
30 |
} |