aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/iurt.conf
blob: 77839b843a5f38e69cbb7b24ae5cdb8a7e1aebc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<%- distro = scope.lookupvar('buildsystem::var::distros::distros')[@distribution] -%>
{
 supported_arch => [ '<%= distro['arch'].join("', '") %>' ],
 all_media =>{
<%- distro['medias'].keys.sort.each{|media| -%>
	'<%= media %>' => [ '<%= 
	    distro['medias'][media]['repos'].keys.sort.join("', '") %>' ],
<%-
} -%>
 },
 distribution => '<%= distro['macros']['distribution'] %>',
 vendor => '<%= distro['macros']['vendor'] %>',
 base_media => [ '<%= distro['base_media'].join("', '") %>' ],
 upload => '<%= build_login %>@pkgsubmit:~/uploads/',
 upload_queue => '<%= build_login %>@pkgsubmit:~/uploads/queue/',
 unwanted_packages => '^monotone-',
 repository => 'http://<%= scope.lookupvar('buildsystem::var::repository::hostname') %>/<%= scope.lookupvar('buildsystem::var::repository::distribdir') %>/',
 log_url => 'http://<%= scope.lookupvar('buildsystem::var::webstatus::hostname') %>/queue/build/',
 admin => 'mageia-sysadm@mageia.org',
 packager => 'Iurt the rebuild bot <mageia-sysadm@mageia.org>',
 sendmail => 0,
 log_size_limit => '400M',
 build_timeout => {
<%- build_timeout.keys.sort.each{|package| -%>
   '<%= package %>' => <%= (build_timeout[package].to_f * scope.lookupvar('buildsystem::var::iurt::timeout_multiplier').to_f).to_i %>,
<%-
} -%>
 },
 use_netns => {
   'default' => 1,
<%- allow_network_access.sort.each{|package| -%>
   '<%= package %>' => 0,
<%-
} -%>
 },
}