Skip to content
Snippets Groups Projects
Commit 4a503a05 authored by František Dvořák's avatar František Dvořák
Browse files

Support both IPv4/IPv6 universally in squid configuration

parent 6c891d34
No related branches found
No related tags found
No related merge requests found
{% for host in groups['ingress'] + groups['nfs'] + groups['worker'] + groups['gpu'] -%}
{% if hostvars[host].ansible_default_ipv6.address is defined %}
acl allcluster src {{ hostvars[host].ansible_default_ipv6.address }}
{% endif %}
{% endfor -%}
{% for host in groups['ingress'] + groups['nfs'] + groups['worker'] + groups['gpu'] -%}
{% if hostvars[host].ansible_default_ipv4.address is defined %}
acl allcluster src {{ hostvars[host].ansible_default_ipv4.address }}
{% endif %}
{% endfor -%}
http_access allow allcluster
{% for host in groups['ingress'] + groups['nfs'] + groups['worker'] + groups['gpu'] -%}
acl allcluster src {{ hostvars[host].ansible_default_ipv4.address }}
{% endfor -%}
http_access allow allcluster
../../../../../../cesnet-central/playbooks/templates/etc/squid/conf.d/allcluster.conf
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment