/[adm]/puppet/modules/buildsystem/manifests/media_cfg.pp
ViewVC logotype

Contents of /puppet/modules/buildsystem/manifests/media_cfg.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3137 - (show annotations) (download)
Thu May 23 15:05:28 2013 UTC (10 years, 10 months ago) by boklm
File size: 487 byte(s)
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.
1 define buildsystem::media_cfg($distro_name, $arch, $templatefile = 'buildsystem/media.cfg') {
2 include buildsystem::var::repository
3 include buildsystem::var::scheduler
4 include buildsystem::repository
5
6 file { "${buildsystem::var::repository::bootstrap_reporoot}/${distro_name}/${arch}/media/media_info/media.cfg":
7 owner => $buildsystem::var::scheduler::login,
8 group => $buildsystem::var::scheduler::login,
9 content => template($templatefile),
10 }
11 }

  ViewVC Help
Powered by ViewVC 1.1.30