[Mageia-sysadm] [80] - add a module for apache

root at mageia.org root at mageia.org
Thu Nov 4 02:09:23 CET 2010


Revision: 80
Author:   misc
Date:     2010-11-04 02:09:23 +0100 (Thu, 04 Nov 2010)
Log Message:
-----------
- add a module for apache

Added Paths:
-----------
    puppet/modules/apache/
    puppet/modules/apache/manifests/
    puppet/modules/apache/manifests/init.pp

Added: puppet/modules/apache/manifests/init.pp
===================================================================
--- puppet/modules/apache/manifests/init.pp	                        (rev 0)
+++ puppet/modules/apache/manifests/init.pp	2010-11-04 01:09:23 UTC (rev 80)
@@ -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
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101104/b0674c10/attachment.html>


More information about the Mageia-sysadm mailing list