[Mageia-sysadm] [100] - add config for mga-mirrors

root at mageia.org root at mageia.org
Thu Nov 4 19:25:09 CET 2010


Revision: 100
Author:   nanardon
Date:     2010-11-04 19:25:08 +0100 (Thu, 04 Nov 2010)
Log Message:
-----------
- add config for mga-mirrors

Modified Paths:
--------------
    puppet/modules/bind/templates/zones/mageia.org.zone

Added Paths:
-----------
    puppet/modules/mga-mirrors/
    puppet/modules/mga-mirrors/manifests/
    puppet/modules/mga-mirrors/manifests/init.pp
    puppet/modules/mga-mirrors/templates/

Modified: puppet/modules/bind/templates/zones/mageia.org.zone
===================================================================
--- puppet/modules/bind/templates/zones/mageia.org.zone	2010-11-04 18:18:14 UTC (rev 99)
+++ puppet/modules/bind/templates/zones/mageia.org.zone	2010-11-04 18:25:08 UTC (rev 100)
@@ -3,7 +3,7 @@
 ; $Id$
 $TTL	3D
 @       IN      SOA     ns0.zarb.org.   mageia.org.  (
-        2010110204	; Serial
+        2010110401	; Serial
         21600		; Refresh
         3600		; Retry
         2419200		; Expire
@@ -67,6 +67,7 @@
 ldap        IN CNAME valstar
 
 identity    IN CNAME alamut
+mirrors     IN CNAME alamut
 
 ; temporary
 ;forum       IN A 140.211.167.148

Added: puppet/modules/mga-mirrors/manifests/init.pp
===================================================================
--- puppet/modules/mga-mirrors/manifests/init.pp	                        (rev 0)
+++ puppet/modules/mga-mirrors/manifests/init.pp	2010-11-04 18:25:08 UTC (rev 100)
@@ -0,0 +1,19 @@
+class mga-mirrors {
+
+    include apache::mod_fcgid
+
+    package { 'mga-mirrors':
+        ensure => installed
+    }
+
+    # add a apache vhost
+    file { "mirrors.$domain.conf":
+        path => "/etc/httpd/conf/vhosts.d/$name",
+        ensure => "present",
+        owner => root,
+        group => root,
+        mode => 644,
+        notify => Service['apache'],
+        content => template("mga-mirrors/mirrors_vhost.conf")
+    }    
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101104/b15f07a0/attachment.html>


More information about the Mageia-sysadm mailing list