aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/var
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/manifests/var
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/manifests/var')
-rw-r--r--modules/buildsystem/manifests/var/distros.pp24
1 files changed, 19 insertions, 5 deletions
diff --git a/modules/buildsystem/manifests/var/distros.pp b/modules/buildsystem/manifests/var/distros.pp
index d815b18a..d06e31c9 100644
--- a/modules/buildsystem/manifests/var/distros.pp
+++ b/modules/buildsystem/manifests/var/distros.pp
@@ -1,11 +1,25 @@
# $distros:
# a hash variable containing distributions informations indexed by
# distribution name. Each distribution is itself an hash containing
-# the following keys:
-# - medias: an hash containing the different medias / repositories
-# - base_media: a list of medias that will be used by iurt to build
-# the chroots
-# - arch: list of arch supported by this distro
+# the following infos:
+# {
+# # the 'cauldron' distribution
+# 'cauldron' => {
+# # list of arch supported by 'cauldron'
+# 'arch' => [ 'i586', 'x86_64' ],
+# 'medias' => {
+# # the 'core' media
+# 'core' => {
+# 'repos' => {
+# # the 'release' repo in the 'core' media
+# 'release' => {},
+# },
+# },
+# },
+# # the list of media used by iurt to build the chroots
+# 'base_medias' => [ 'core/release' ],
+# },
+# }
class buildsystem::var::distros(
$distros
) { }