this is the last fix before fing hardcoding the ips
This commit is contained in:
parent
264360cac8
commit
3800b05f64
1 changed files with 0 additions and 4 deletions
|
@ -103,11 +103,7 @@
|
|||
{% if proxy_tcp_ports is defined %}
|
||||
{% for port in proxy_tcp_ports %}
|
||||
{% for proxy in (groups['proxies'] + groups['proxies_internal']) %}
|
||||
{% if hostvars[proxy].datacenter == 'phx2' %}
|
||||
-A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_eth0']['ipv4']['address'] }} -j ACCEPT
|
||||
{% else %}
|
||||
-A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_tun0']['ipv4']['address'] }} -j ACCEPT
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
# nagios
|
||||
-A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars['noc01.phx2.fedoraproject.org']['ansible_eth0']['ipv4']['address'] }} -j ACCEPT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue