Verified Commit 26b5041b authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Check if archive_mirrors is defined

As we have no archive_mirrors at this time.
parent 5be4dad2
Pipeline #3092 passed with stage
in 33 seconds
...@@ -20,10 +20,12 @@ hosts allow = 127.0.0.1 ...@@ -20,10 +20,12 @@ hosts allow = 127.0.0.1
# DENY THE REST # DENY THE REST
hosts deny = * hosts deny = *
{% if 'archive_mirrors' in groups %}
[archive] [archive]
path = /srv/archive path = /srv/archive
comment = archive comment = archive
hosts allow = {{ groups['archive_mirrors'] | map('extract', hostvars, ['ipv4_address']) | join(' ') }} hosts allow = {{ groups['archive_mirrors'] | map('extract', hostvars, ['ipv4_address']) | join(' ') }}
{% endif %}
# Just the release/stable iso/packages (for most mirrors) # Just the release/stable iso/packages (for most mirrors)
[ftp] [ftp]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment