aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/media_cfg.pp
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 /modules/buildsystem/manifests/media_cfg.pp
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 'modules/buildsystem/manifests/media_cfg.pp')
-rw-r--r--modules/buildsystem/manifests/media_cfg.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/buildsystem/manifests/media_cfg.pp b/modules/buildsystem/manifests/media_cfg.pp
index 413aa71f..bdec67f7 100644
--- a/modules/buildsystem/manifests/media_cfg.pp
+++ b/modules/buildsystem/manifests/media_cfg.pp
@@ -1,9 +1,9 @@
-define buildsystem::media_cfg($distro, $arch, $templatefile = 'buildsystem/media.cfg') {
+define buildsystem::media_cfg($distro_name, $arch, $templatefile = 'buildsystem/media.cfg') {
include buildsystem::var::repository
include buildsystem::var::scheduler
include buildsystem::repository
- file { "${buildsystem::var::repository::bootstrap_reporoot}/${distro}/${arch}/media/media_info/media.cfg":
+ file { "${buildsystem::var::repository::bootstrap_reporoot}/${distro_name}/${arch}/media/media_info/media.cfg":
owner => $buildsystem::var::scheduler::login,
group => $buildsystem::var::scheduler::login,
content => template($templatefile),