aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:06:52 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:06:52 +0000
commit4dd6894b35de045bde3b5638ad71f02dffc8b388 (patch)
tree6df431a6d8be300c60186076cbb934832926f72e /modules/buildsystem/templates
parent50a4542efc81f09671f83a9b96aadaef1f069b8a (diff)
downloadpuppet-4dd6894b35de045bde3b5638ad71f02dffc8b388.tar
puppet-4dd6894b35de045bde3b5638ad71f02dffc8b388.tar.gz
puppet-4dd6894b35de045bde3b5638ad71f02dffc8b388.tar.bz2
puppet-4dd6894b35de045bde3b5638ad71f02dffc8b388.tar.xz
puppet-4dd6894b35de045bde3b5638ad71f02dffc8b388.zip
buildsystem: add /etc/youri/host.conf
The host.conf config file for youri contains the hostnames of the nodes that are building packages for each architecture. The variable $build_src_node has been added to buildsystem::var::scheduler to contain the hostname of the server building the initial src.rpm. The variable $build_nodes_aliases has been added to buildsystem::var::scheduler to be used to find the real hostnames of the nodes building the packages for each architecture.
Diffstat (limited to 'modules/buildsystem/templates')
-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 -%>