aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mga_buildsystem/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:05:28 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:05:28 +0000
commit98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf (patch)
tree0aa24b1f9c790ad0e484f9cb52176623011e51b3 /deployment/mga_buildsystem/manifests
parent64099eaa3dd3b6d42f30355f4ae11abdbe1e280f (diff)
downloadpuppet-98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf.tar
puppet-98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf.tar.gz
puppet-98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf.tar.bz2
puppet-98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf.tar.xz
puppet-98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf.zip
buildsystem: use common media.cfg template for all distros
The media.cfg file is now generated for all distributions now (it was only done for cauldron before). The media.cfg file is generated using the infos about the distributions and medias from the $distro parameter in buildsystem::var::distros.
Diffstat (limited to 'deployment/mga_buildsystem/manifests')
-rw-r--r--deployment/mga_buildsystem/manifests/config.pp44
1 files changed, 38 insertions, 6 deletions
diff --git a/deployment/mga_buildsystem/manifests/config.pp b/deployment/mga_buildsystem/manifests/config.pp
index 66e64ac0..ffb14ec3 100644
--- a/deployment/mga_buildsystem/manifests/config.pp
+++ b/deployment/mga_buildsystem/manifests/config.pp
@@ -21,29 +21,51 @@ class mga_buildsystem::config {
$std_arch = ['i586', 'x86_64']
$std_repos = {
- 'release' => {},
- 'updates_testing' => {},
- 'backports_testing' => {},
- 'backports' => {},
- 'updates' => {},
+ 'release' => {
+ 'media_types' => [ 'release' ],
+ },
+ 'updates_testing' => {
+ 'media_types' => [ 'testing' ],
+ 'noauto' => '1',
+ },
+ 'backports_testing' => {
+ 'media_types' => [ 'testing' ],
+ 'noauto' => '1',
+ },
+ 'backports' => {
+ 'media_types' => [ 'backports' ],
+ 'noauto' => '1',
+ },
+ 'updates' => {
+ 'media_types' => [ 'updates' ],
+ 'updates_for' => 'release',
+ },
}
$std_medias = {
'core' => {
'repos' => $std_repos,
+ 'media_types' => [ 'official', 'free' ],
},
'nonfree' => {
'repos' => $std_repos,
+ 'media_types' => [ 'official' ],
+ 'noauto' => '1',
},
'tainted' => {
'repos' => $std_repos,
+ 'media_types' => [ 'official' ],
+ 'noauto' => '1',
},
}
$std_base_media = [ 'core/release', 'core/updates' ]
$infra_medias = {
'infra' => {
'repos' => {
- 'release' => {},
+ 'release' => {
+ 'media_types' => [ 'release' ],
+ },
},
+ 'media_types' => [ 'infra' ],
},
}
class { 'buildsystem::var::distros':
@@ -52,30 +74,40 @@ class mga_buildsystem::config {
'arch' => $std_arch,
'medias' => $std_medias,
'base_media' => $std_base_media,
+ 'branch' => 'Devel',
+ 'version' => '3',
},
'1' => {
'arch' => $std_arch,
'medias' => $std_medias,
'base_media' => $std_base_media,
+ 'branch' => 'Official',
+ 'version' => '1',
},
'2' => {
'arch' => $std_arch,
'medias' => $std_medias,
'base_media' => $std_base_media,
+ 'branch' => 'Official',
+ 'version' => '2',
},
'infra_1' => {
'arch' => $std_arch,
'medias' => $infra_medias,
'base_media' => $std_base_media,
+ 'branch' => 'Official',
+ 'version' => '1',
},
'infra_2' => {
'arch' => $std_arch,
'medias' => $infra_medias,
'base_media' => $std_base_media,
+ 'branch' => 'Official',
+ 'version' => '2',
},
}
}