[Mageia-sysadm] [289] Add vhost and webapps.d files for bugzilla

root at mageia.org root at mageia.org
Thu Nov 18 20:59:40 CET 2010


Revision: 289
Author:   dmorgan
Date:     2010-11-18 20:59:40 +0100 (Thu, 18 Nov 2010)
Log Message:
-----------
Add vhost and webapps.d files for bugzilla

Modified Paths:
--------------
    puppet/manifests/nodes.pp
    puppet/modules/bugzilla/manifests/init.pp

Added Paths:
-----------
    puppet/modules/bugzilla/templates/vhost_mageia.org.conf
    puppet/modules/bugzilla/templates/webapp_bugzilla.conf

Modified: puppet/manifests/nodes.pp
===================================================================
--- puppet/manifests/nodes.pp	2010-11-18 18:19:21 UTC (rev 288)
+++ puppet/manifests/nodes.pp	2010-11-18 19:59:40 UTC (rev 289)
@@ -53,6 +53,7 @@
     include mga-mirrors
     include epoll
     include transifex
+    include bugzilla
 }
 
 # buildnode

Modified: puppet/modules/bugzilla/manifests/init.pp
===================================================================
--- puppet/modules/bugzilla/manifests/init.pp	2010-11-18 18:19:21 UTC (rev 288)
+++ puppet/modules/bugzilla/manifests/init.pp	2010-11-18 19:59:40 UTC (rev 289)
@@ -23,5 +23,14 @@
       mode => 644,
       content => template("bugzilla/params")
     }
+
+    include apache::mod_fcgid
+    apache::webapp_other{"bugzilla":
+        webapp_file => "bugzilla/webapp_bugzilla.conf",
+      }
+
+    apache::vhost_other_app { "bugs.$domain":
+      vhost_file => "bugzilla/vhost_bugs.mageia.org.conf",
+    }
 }
 

Added: puppet/modules/bugzilla/templates/vhost_mageia.org.conf
===================================================================
--- puppet/modules/bugzilla/templates/vhost_mageia.org.conf	                        (rev 0)
+++ puppet/modules/bugzilla/templates/vhost_mageia.org.conf	2010-11-18 19:59:40 UTC (rev 289)
@@ -0,0 +1,13 @@
+<%
+path_data_directory = "/usr/lib" + ( architecture == "x86_64" ? '64' : '') + "/bugzilla"
+%>
+
+<VirtualHost *:80>
+        ServerName bugs.mageia.org
+        DocumentRoot /usr/share/bugzilla/www
+        Alias /bugzilla/data <%= path_data_directory %>
+        Alias /bugzilla /usr/share/bugzilla/www
+        <Location />
+                Allow from all
+        </Location>
+</VirtualHost>

Added: puppet/modules/bugzilla/templates/webapp_bugzilla.conf
===================================================================
--- puppet/modules/bugzilla/templates/webapp_bugzilla.conf	                        (rev 0)
+++ puppet/modules/bugzilla/templates/webapp_bugzilla.conf	2010-11-18 19:59:40 UTC (rev 289)
@@ -0,0 +1,35 @@
+<%
+path_data_directory = "/usr/lib" + ( architecture == "x86_64" ? '64' : '') + "/bugzilla"
+%>
+
+<Directory /usr/share/bugzilla/www>
+    Order allow,deny
+    Allow from all
+
+    Options ExecCGI
+    DirectoryIndex index.cgi
+</Directory>
+
+# The duplicates.rdf must be accessible, as it is used by
+# duplicates.xul
+<Directory <%= path_data_directory %>>
+    <Files duplicates.rdf>
+        Order allow,deny
+        Allow from all
+    </Files>
+</Directory>
+
+# The dot files must be accessible to the public webdot server
+# The png files locally created locally must be accessible
+<Directory <%= path_data_directory %>/webdot>
+    <FilesMatch \.dot$>
+        Order deny,allow
+        Deny from all
+        Allow from research.att.com
+    </FilesMatch>
+
+    <FilesMatch \.png$>
+        Order allow,deny
+        Allow from all
+    </FilesMatch>
+</Directory>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101118/e35be4af/attachment.html>


More information about the Mageia-sysadm mailing list