diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-13 15:40:38 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-13 15:40:38 +0100 |
commit | c41930d41665e284ed3def1e90d2e2f930325fea (patch) | |
tree | 4fe585c35e60e4c1f5cfa9a8a77a05e757ea9dac /modules | |
parent | b672f79f37a7b2c44ad7e078e4b85cea13ea7e3a (diff) | |
download | puppet-c41930d41665e284ed3def1e90d2e2f930325fea.tar puppet-c41930d41665e284ed3def1e90d2e2f930325fea.tar.gz puppet-c41930d41665e284ed3def1e90d2e2f930325fea.tar.bz2 puppet-c41930d41665e284ed3def1e90d2e2f930325fea.tar.xz puppet-c41930d41665e284ed3def1e90d2e2f930325fea.zip |
Allow libguestfs to access network during build
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/manifests/iurt/config.pp | 4 | ||||
-rw-r--r-- | modules/buildsystem/templates/iurt.conf | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/iurt/config.pp b/modules/buildsystem/manifests/iurt/config.pp index c986f347..9673510f 100644 --- a/modules/buildsystem/manifests/iurt/config.pp +++ b/modules/buildsystem/manifests/iurt/config.pp @@ -25,6 +25,10 @@ define buildsystem::iurt::config() { 'eclipse' => 172800, } + $allow_network_access = [ + 'libguestfs', # Needs access to the configured mirrors + ] + file { "/etc/iurt/build/${distribution}.conf": owner => $build_login, group => $build_login, diff --git a/modules/buildsystem/templates/iurt.conf b/modules/buildsystem/templates/iurt.conf index 56f24f66..d021d5e0 100644 --- a/modules/buildsystem/templates/iurt.conf +++ b/modules/buildsystem/templates/iurt.conf @@ -27,5 +27,12 @@ <%- } -%> }, + use_netns => { + 'default' => 1, +<%- allow_network_access.sort.each{|package| -%> + '<%= package %>' => 0, +<%- +} -%> + }, } |