[Mageia-sysadm] [403] add repository vhost for main BS node

root at mageia.org root at mageia.org
Tue Nov 23 00:29:04 CET 2010


Revision: 403
Author:   blino
Date:     2010-11-23 00:29:03 +0100 (Tue, 23 Nov 2010)
Log Message:
-----------
add repository vhost for main BS node

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

Added Paths:
-----------
    puppet/modules/buildsystem/templates/vhost_repository.conf

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2010-11-22 16:12:51 UTC (rev 402)
+++ puppet/modules/buildsystem/manifests/init.pp	2010-11-22 23:29:03 UTC (rev 403)
@@ -26,6 +26,12 @@
         package { $package_list:
             ensure => "installed"
         }
+
+        include apache
+        apache::vhost_other_app { "repository.$domain":
+            vhost_file => "buildsystem/vhost_bugs.conf",
+        }
+
     }
 
     class buildnode inherits base {

Added: puppet/modules/buildsystem/templates/vhost_repository.conf
===================================================================
--- puppet/modules/buildsystem/templates/vhost_repository.conf	                        (rev 0)
+++ puppet/modules/buildsystem/templates/vhost_repository.conf	2010-11-22 23:29:03 UTC (rev 403)
@@ -0,0 +1,15 @@
+<%
+repository_root = "/distrib/bootstrap"
+%>
+
+<VirtualHost *:80>
+        ServerName repository.<%= domain %>
+        DocumentRoot <%= repository_root %>
+        <Directory  <%= repository_root %>>
+          Order deny,allow
+          Deny from all
+          Allow from localhost, 127.0.0.1
+          Allow from .<%= domain %>
+          Options Indexes FollowSymLinks
+        </Directory>
+</VirtualHost>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101123/fc8d6161/attachment.html>


More information about the Mageia-sysadm mailing list