aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/youri/host.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/templates/youri/host.conf')
-rw-r--r--modules/buildsystem/templates/youri/host.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/buildsystem/templates/youri/host.conf b/modules/buildsystem/templates/youri/host.conf
new file mode 100644
index 00000000..35f4043b
--- /dev/null
+++ b/modules/buildsystem/templates/youri/host.conf
@@ -0,0 +1,23 @@
+<%-
+ aliases = scope.lookupvar('buildsystem::var::scheduler::build_nodes_aliases')
+ nodes = {}
+ nodes['src'] = scope.lookupvar('buildsystem::var::scheduler::build_src_node')
+ scope.lookupvar('buildsystem::var::scheduler::build_nodes').each{|arch,n|
+ a = arch + '|noarch|src'
+ nodes[a] = []
+ n.each{|node|
+ if aliases[node] != nil
+ nodes[a] += [ aliases[node] ]
+ else
+ nodes[a] += [ node ]
+ end
+ }
+ }
+ str = ''
+ nodes.keys.sort.each{|arch|
+ nodes[arch].sort.uniq.each{|node|
+ str += node + ' ' + arch + "\n"
+ }
+ }
+-%>
+<%= str -%>