aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:05:23 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:05:23 +0000
commite14cedea84900b8de3e16dcb96abbd27d590085b (patch)
tree94a3970c54d8693d7c32198b72bb120c08af532a /modules/buildsystem/templates
parentf354bdaf4612d737a5243b9cc93f0fe9e6fc492c (diff)
downloadpuppet-e14cedea84900b8de3e16dcb96abbd27d590085b.tar
puppet-e14cedea84900b8de3e16dcb96abbd27d590085b.tar.gz
puppet-e14cedea84900b8de3e16dcb96abbd27d590085b.tar.bz2
puppet-e14cedea84900b8de3e16dcb96abbd27d590085b.tar.xz
puppet-e14cedea84900b8de3e16dcb96abbd27d590085b.zip
buildsystem::var::distros: change $distros structure
The $distros variable is hash containing settings about the distributions. It was something like this : $distro = { 'cauldron' => { 'arch' => [ 'i586', 'x86_64' ], 'medias' => { 'core' => [ 'release' ], }, 'base_medias' => [ 'core/release' ], }, } It is now something like this : $distro = { 'cauldron' => { 'arch' => [ 'i586', 'x86_64' ], 'medias' => { 'core' => { 'repos' => { 'release' => {}, }, }, }, 'base_medias' => [ 'core/release' ], }, } This should allow setting more infos about each medias / repos, that can be used in order to generate media.cfg config files.
Diffstat (limited to 'modules/buildsystem/templates')
-rw-r--r--modules/buildsystem/templates/iurt.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/buildsystem/templates/iurt.conf b/modules/buildsystem/templates/iurt.conf
index 8536d89f..f29f598b 100644
--- a/modules/buildsystem/templates/iurt.conf
+++ b/modules/buildsystem/templates/iurt.conf
@@ -2,8 +2,8 @@
{
supported_arch => [ '<%= distro['arch'].join("', '") %>' ],
all_media =>{
-<%- distro['medias'].each{|media, repos| -%>
- '<%= media %>' => [ '<%= repos.join("', '") %>' ],
+<%- distro['medias'].each{|media, m| -%>
+ '<%= media %>' => [ '<%= m['repos'].keys.join("', '") %>' ],
<%-
} -%>
},