1 |
class apache::base { |
class apache::base { |
2 |
include apache::var |
include apache::var |
3 |
|
|
4 |
package { 'apache-mpm-prefork': } |
# apache-mpm-prefork is merged from mga3 up |
5 |
|
$apache_server = $lsbdistrelease ? { |
6 |
|
/1|2/ => 'apache-mpm-prefork', |
7 |
|
default => 'apache', |
8 |
|
} |
9 |
|
|
10 |
|
package { '$apache_server': |
11 |
|
alias 'apache-server' |
12 |
|
} |
13 |
|
|
14 |
package { $apache::var::pkg_conf: } |
package { $apache::var::pkg_conf: } |
15 |
|
|
16 |
service { 'httpd': |
service { 'httpd': |
17 |
alias => 'apache', |
alias => 'apache', |
18 |
subscribe => [ Package['apache-mpm-prefork'] ], |
subscribe => [ Package['apache-server'] ], |
19 |
} |
} |
20 |
|
|
21 |
exec { 'service httpd configtest': |
exec { 'service httpd configtest': |