[Mageia-sysadm] [280] add vhost_other_app and webapp_other defines

root at mageia.org root at mageia.org
Thu Nov 18 16:55:03 CET 2010


Revision: 280
Author:   boklm
Date:     2010-11-18 16:55:02 +0100 (Thu, 18 Nov 2010)
Log Message:
-----------
add vhost_other_app and webapp_other defines

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

Modified: puppet/modules/apache/manifests/init.pp
===================================================================
--- puppet/modules/apache/manifests/init.pp	2010-11-18 10:04:30 UTC (rev 279)
+++ puppet/modules/apache/manifests/init.pp	2010-11-18 15:55:02 UTC (rev 280)
@@ -128,4 +128,29 @@
             content => template("apache/django.wsgi")
         }
     }
+
+   define vhost_other_app($vhost_file) {
+        file { "$name.conf":
+            path => "/etc/httpd/conf/vhosts.d/$name.conf",
+            ensure => "present",
+            owner => root,
+            group => root,
+            mode => 644,
+            notify => Service['apache'],
+            content => template($vhost_file)
+        }
+   }
+
+   define webapp_other($webapp_file) {
+        $webappname = $name
+        file { "webapp_$name.conf":
+            path => "/etc/httpd/conf/webapps.d/$webappname.conf",
+            ensure => "present",
+            owner => root,
+            group => root,
+            mode => 644,
+            notify => Service['apache'],
+            content => template($webapp_file)
+        }
+   }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101118/e7b1de1e/attachment.html>


More information about the Mageia-sysadm mailing list