1 |
class apache { |
2 |
|
3 |
class base { |
4 |
package { "apache-mpm-prefork": |
5 |
ensure => installed |
6 |
} |
7 |
|
8 |
service { httpd: |
9 |
alias => apache, |
10 |
ensure => running, |
11 |
subscribe => [ Package['apache-mpm-prefork'] ], |
12 |
} |
13 |
} |
14 |
|
15 |
class mod_php inherits base { |
16 |
package { "apache-mod_php": |
17 |
ensure => installed |
18 |
} |
19 |
} |
20 |
|
21 |
class mod_perl inherits base { |
22 |
package { "apache-mod_perl": |
23 |
ensure => installed |
24 |
} |
25 |
} |
26 |
|
27 |
class mod_fcgid inherits base { |
28 |
package { "apache-mod_fcgid": |
29 |
ensure => installed |
30 |
} |
31 |
} |
32 |
|
33 |
|
34 |
class mod_wsgi inherits base { |
35 |
package { "apache-mod_wsgi": |
36 |
ensure => installed |
37 |
} |
38 |
} |
39 |
} |