diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:06:28 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:06:28 +0000 |
commit | 02004ba83701a19037e175e6b623d25ebb61f72a (patch) | |
tree | cb5ea9b4716aaf71b345329cb9765b16206ec8d6 /modules/buildsystem/templates | |
parent | 14f898ccf52e939055124855d465b11ca502b33b (diff) | |
download | puppet-02004ba83701a19037e175e6b623d25ebb61f72a.tar puppet-02004ba83701a19037e175e6b623d25ebb61f72a.tar.gz puppet-02004ba83701a19037e175e6b623d25ebb61f72a.tar.bz2 puppet-02004ba83701a19037e175e6b623d25ebb61f72a.tar.xz puppet-02004ba83701a19037e175e6b623d25ebb61f72a.zip |
buildsystem: add build_nodes parameter
Add build_nodes parameter in buildsystem::var::scheduler. This parameter
is a hash containing the build nodes available indexed by architecture.
Diffstat (limited to 'modules/buildsystem/templates')
-rw-r--r-- | modules/buildsystem/templates/upload.conf | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/buildsystem/templates/upload.conf b/modules/buildsystem/templates/upload.conf index c3471219..2d39bb76 100644 --- a/modules/buildsystem/templates/upload.conf +++ b/modules/buildsystem/templates/upload.conf @@ -7,9 +7,17 @@ # ### +<%- + build_nodes = scope.lookupvar('buildsystem::var::scheduler::build_nodes') +-%> my %nodes = ( - i586 => [ qw(jonund0 ecosse0 jonund1 ecosse1) ], - x86_64 => [ qw(ecosse0 jonund0 ecosse1 jonund1) ], +<%- + build_nodes.keys.sort.each{|arch| +-%> + <%= arch -%> => [ '<%= build_nodes[arch].join("', '") -%>' ], +<%- + } +-%> ); my $repository = "http://<%= scope.lookupvar('buildsystem::var::repository::hostname') %>/<%= scope.lookupvar('buildsystem::var::repository::distribdir') %>/"; my $homedir = "<%= scope.lookupvar('buildsystem::var::iurt::homedir') %>"; |