aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/manifests')
-rw-r--r--modules/apache/manifests/init.pp32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
new file mode 100644
index 00000000..48bb1835
--- /dev/null
+++ b/modules/apache/manifests/init.pp
@@ -0,0 +1,32 @@
+class apache {
+
+ class base {
+ package { "apache-mpm-prefork":
+ ensure => installed
+ }
+
+ service { apache:
+ ensure => running,
+ subscribe => [ Package['apache-mpm-prefork'] ],
+ path => "/etc/init.d/httpd"
+ }
+ }
+
+ class mod_php inherits base {
+ package { "apache-mod_php":
+ ensure => installed
+ }
+ }
+
+ class mod_perl inherits base {
+ package { "apache-mod_perl":
+ ensure => installed
+ }
+ }
+
+ class mod_wsgi inherits base {
+ package { "apache-mod_wsgi":
+ ensure => installed
+ }
+ }
+}