diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-06-29 20:15:28 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-06-29 20:15:28 +0000 |
commit | 569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7 (patch) | |
tree | b804eecb3309a2c3b1fec53a861e409632c21994 /modules | |
parent | c601d6e5eb070ff2beefe3a3f11453841b8d3fe1 (diff) | |
download | puppet-569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7.tar puppet-569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7.tar.gz puppet-569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7.tar.bz2 puppet-569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7.tar.xz puppet-569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7.zip |
More repository vhost fixes
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/templates/vhost_repository.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf index 0e50d78b..9fa207a6 100644 --- a/modules/buildsystem/templates/vhost_repository.conf +++ b/modules/buildsystem/templates/vhost_repository.conf @@ -22,13 +22,13 @@ distros = scope.lookupvar('buildsystem::var::distros::distros') <%- if repo_allow_from_ips != nil || repo_allow_from_domains != nil then access_requires = [ 'all denied' ] - if distro['repo_allow_from_ips'] != nil then - for allow in distro['repo_allow_from_ips'] do + if repo_allow_from_ips != nil then + for allow in repo_allow_from_ips do access_requires << 'ip ' + allow end end - if distro['repo_allow_from_domains'] != nil then - for allow in distro['repo_allow_from_domains'] do + if repo_allow_from_domains != nil then + for allow in repo_allow_from_domains do access_requires << 'host ' + allow end end |