aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/media_cfg.pp
blob: 77fcc8fd0c1d1a148297c77a1deebd5d815c85bf (plain)
1
2
3
4
5
6
7
8
9
10
11
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_name}/${arch}/media/media_info/media.cfg":
        owner   => $buildsystem::var::scheduler::login,
        group   => $buildsystem::var::scheduler::login,
        content => template($templatefile),
    }
}