Proxy group in staging is named differently

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2019-03-29 00:19:16 +01:00
parent 2a932db784
commit 661e5866c6

View file

@ -68,7 +68,7 @@ COMMIT
# if there are any proxy-only tcp_ports - allow them # if there are any proxy-only tcp_ports - allow them
{% if proxy_tcp_ports is defined %} {% if proxy_tcp_ports is defined %}
{% for port in proxy_tcp_ports %} {% for port in proxy_tcp_ports %}
{% for proxy in (groups['proxies'] + groups['proxies-internal']) %} {% for proxy in groups['proxies-stg'] %}
{% if hostvars[proxy]['vpn'] %} {% if hostvars[proxy]['vpn'] %}
-A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_facts']['ansible_tun0']['ipv4']['address'] }} -j ACCEPT -A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_facts']['ansible_tun0']['ipv4']['address'] }} -j ACCEPT
{% else %} {% else %}