aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/distros.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/manifests/distros.rb')
-rw-r--r--modules/buildsystem/manifests/distros.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/buildsystem/manifests/distros.rb b/modules/buildsystem/manifests/distros.rb
index 22e529eb..4dc5f2b6 100644
--- a/modules/buildsystem/manifests/distros.rb
+++ b/modules/buildsystem/manifests/distros.rb
@@ -14,9 +14,15 @@ hostclass "buildsystem::distros" do
# workaround with 'find_resource_type' as described in this
# puppet issue: http://projects.puppetlabs.com/issues/11912
scope.find_resource_type 'buildsystem::media_cfg'
+ media_cfg_args = {
+ :distro_name => rel,
+ :arch => arch,
+ }
+ if distro['tmpl_media.cfg'] != nil
+ media_cfg_args['templatefile'] = distro['tmpl_media.cfg']
+ end
create_resource 'buildsystem::media_cfg',
- [ rel, ' ', arch ].join('/'), :distro_name => rel,
- :arch => arch
+ [ rel, ' ', arch ].join('/'), media_cfg_args
file [ bootstrap_reporoot, rel, arch ].join('/'),
:ensure => 'directory', :owner => mirror_user,
:group => mirror_user