diff options
Diffstat (limited to 'modules/buildsystem/manifests/media_cfg.pp')
-rw-r--r-- | modules/buildsystem/manifests/media_cfg.pp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/buildsystem/manifests/media_cfg.pp b/modules/buildsystem/manifests/media_cfg.pp index a92cbde0..c6de0d35 100644 --- a/modules/buildsystem/manifests/media_cfg.pp +++ b/modules/buildsystem/manifests/media_cfg.pp @@ -1,12 +1,10 @@ -define buildsystem::media_cfg() { +define buildsystem::media_cfg($distro, $arch, $templatefile = 'buildsystem/media.cfg') { include buildsystem::scheduler::var include buildsystem::repository - $arch = $name - - file { "${buildsystem::repository::dir}/distrib/cauldron/${arch}/media/media_info/media.cfg": + file { "${buildsystem::repository::dir}/distrib/${distro}/${arch}/media/media_info/media.cfg": owner => $buildsystem::base::sched_login, group => $buildsystem::base::sched_login, - source => "puppet:///modules/buildsystem/${arch}/media.cfg", + content => template($templatefile), } } |