[Mageia-sysadm] [430] add iurt upload.conf file for ulri and emi

root at mageia.org root at mageia.org
Tue Nov 23 23:24:27 CET 2010


Revision: 430
Author:   blino
Date:     2010-11-23 23:24:27 +0100 (Tue, 23 Nov 2010)
Log Message:
-----------
add iurt upload.conf file for ulri and emi

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

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

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2010-11-23 22:08:58 UTC (rev 429)
+++ puppet/modules/buildsystem/manifests/init.pp	2010-11-23 22:24:27 UTC (rev 430)
@@ -31,6 +31,8 @@
             vhost_file => "buildsystem/vhost_repository.conf",
         }
 
+        include scheduler
+        include dispatcher
     }
 
     class buildnode inherits base {
@@ -39,11 +41,24 @@
 
     class scheduler {
         # ulri        
+        include iurtupload
     }
 
     class dispatcher {
         # emi
+        include iurtupload
     }
+
+    class iurtupload {
+        file { "/etc/iurt/update.conf":
+            ensure => present,
+            owner => $build_login,
+            group => $build_login,
+            mode => 644,
+            require => File["/etc/iurt"],
+            content => template("buildsystem/upload.conf")
+        }
+    }
     
     class repsys {
         package { 'repsys':

Added: puppet/modules/buildsystem/templates/upload.conf
===================================================================
--- puppet/modules/buildsystem/templates/upload.conf	                        (rev 0)
+++ puppet/modules/buildsystem/templates/upload.conf	2010-11-23 22:24:27 UTC (rev 430)
@@ -0,0 +1,58 @@
+###
+#
+# Do not disable the host without appropriate warning
+# to somebody able to fix the machine
+#
+# Please run 'perl -cw .upload.conf' in order to check the file is OK.
+#
+###
+
+{
+    bot => { 
+	i586 => {
+	    map {
+		($_ => {	       
+		    iurt => {
+			user => 'iurt',
+# (spuk, 2007-08-16) disabled iurt_cache additional media, locks trying to mount -o bind
+#			command => 'iurt --copy_srpm --group -v 1 --config local_spool /home/iurt/iurt/__DIR__ --no_rsync --chrooted-urpmi -m __MEDIA__ -- http://repository/distrib/ --additional-media -m __MEDIA__ -- file:///home/iurt_cache/ -p \"__PACKAGER__\" -r __TARGET__ __ARCH__',
+			command => 'iurt --iurtlogdir __IURTLOGDIR__ --copy_srpm --group -v 6 --config local_spool /home/iurt/iurt/__DIR__ --no_rsync --chrooted-urpmi -m __MEDIA__ -- http://repository/distrib/ -p \"__PACKAGER__\" -r __TARGET__ __ARCH__',
+			packages => '/home/iurt/iurt/',
+			log => '/home/iurt/iurt/', 
+		    },
+		});
+	    } qw(ecosse),
+	},
+
+	x86_64 => {
+	    map {
+		($_ => {	       
+		    iurt => {
+			user => 'iurt',
+			command => 'iurt --iurtlogdir __IURTLOGDIR__ --copy-srpm --group -v 6 --config local_spool /home/iurt/iurt/__DIR__ --no_rsync --chrooted-urpmi -m __MEDIA__ -- http://repository/distrib/ --additional-media -m __MEDIA__ -- file:///home/iurt_cache/ -p \"__PACKAGER__\" -r __TARGET__ __ARCH__',
+			packages => '/home/iurt/iurt/',
+			log => '/home/iurt/iurt/', 
+		    },
+		});
+	    } qw(jonund),
+	},
+      },
+      media => { 
+	    default => { 
+		"main/release" => [ "main/updates", "main/release" ], 
+		"main/updates" => [ "main/updates", "main/release" ],
+		"main/testing" => [ "main/testing", "main/updates", "main/release" ],
+		"main/backports" => [ "main/backports", "main/updates", "main/release" ],
+		"contrib/release" => [ "main/updates", "main/release", "contrib/updates", "contrib/release" ],
+		"contrib/updates" => [ "main/updates", "main/release", "contrib/updates", "contrib/release" ],
+		"contrib/testing" => [ "main/updates", "main/release", "main/testing", "contrib/updates", "contrib/release", "contrib/testing" ],
+		"contrib/backports" => [ "main/backports", "main/updates", "main/release", "contrib/backports", "contrib/updates", "contrib/release" ],
+		# (blino) non-free packages may require contrib packages (gcc3.3-g77 for scilab)
+		"non-free/release" => [ "main/updates", "main/release", "contrib/updates", "contrib/release", "non-free/updates", "non-free/release" ],
+		"non-free/updates" => [ "main/updates", "main/release", "contrib/updates", "contrib/release", "non-free/updates", "non-free/release" ],
+		"non-free/testing" => [ "main/updates", "main/release", "main/testing", "contrib/updates", "contrib/release", "contrib/testing", "non-free/updates", "non-free/release", "non-free/testing" ],
+		"non-free/backports" => [ "main/backports", "main/release", "main/updates", "contrib/backports", "contrib/updates", "contrib/release", "non-free/backports", "non-free/updates", "non-free/release" ],
+	    },
+      },
+      admin => 'mageia-sysadm at mageia.org',
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101123/8b7e8954/attachment.html>


More information about the Mageia-sysadm mailing list