diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 15 | ||||
-rw-r--r-- | modules/buildsystem/templates/upload.conf | 58 |
2 files changed, 73 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 19bcc10e..85d9ae26 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -31,6 +31,8 @@ class buildsystem { vhost_file => "buildsystem/vhost_repository.conf", } + include scheduler + include dispatcher } class buildnode inherits base { @@ -39,10 +41,23 @@ class buildsystem { 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 { diff --git a/modules/buildsystem/templates/upload.conf b/modules/buildsystem/templates/upload.conf new file mode 100644 index 00000000..528fbfeb --- /dev/null +++ b/modules/buildsystem/templates/upload.conf @@ -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@mageia.org', +} |