diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:05:23 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:05:23 +0000 |
commit | e14cedea84900b8de3e16dcb96abbd27d590085b (patch) | |
tree | 94a3970c54d8693d7c32198b72bb120c08af532a /modules/buildsystem/templates/iurt.conf | |
parent | f354bdaf4612d737a5243b9cc93f0fe9e6fc492c (diff) | |
download | puppet-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/iurt.conf')
-rw-r--r-- | modules/buildsystem/templates/iurt.conf | 4 |
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("', '") %>' ], <%- } -%> }, |