From 98fa28e23cbd8ac75e428b1bee6b89cdbbe0d5bf Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 23 May 2013 15:05:28 +0000 Subject: 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. --- modules/buildsystem/manifests/media_cfg.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/buildsystem/manifests/media_cfg.pp') 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), -- cgit v1.2.1