Move this comment into the conditional so it doesn't oddly show up on every host
This commit is contained in:
parent
8622c15919
commit
b6c9760b47
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
||||||
-A INPUT -p tcp -m tcp --dport 5666 -s 209.132.181.35 -j ACCEPT
|
-A INPUT -p tcp -m tcp --dport 5666 -s 209.132.181.35 -j ACCEPT
|
||||||
-A INPUT -p tcp -m tcp --dport 5666 -s 10.5.126.41 -j ACCEPT
|
-A INPUT -p tcp -m tcp --dport 5666 -s 10.5.126.41 -j ACCEPT
|
||||||
|
|
||||||
|
{% if env != 'staging' and datacenter == 'phx2' and inventory_hostname not in groups['staging-friendly'] %}
|
||||||
#
|
#
|
||||||
# In the phx2 datacenter, both production and staging hosts are in the same
|
# In the phx2 datacenter, both production and staging hosts are in the same
|
||||||
# subnet/vlan. We want production hosts to reject connectons from staging group hosts
|
# subnet/vlan. We want production hosts to reject connectons from staging group hosts
|
||||||
|
@ -31,7 +32,6 @@
|
||||||
# production we have marked 'staging-friendly' that we do allow staging to talk to for
|
# production we have marked 'staging-friendly' that we do allow staging to talk to for
|
||||||
# mostly read-only data they need.
|
# mostly read-only data they need.
|
||||||
#
|
#
|
||||||
{% if env != 'staging' and datacenter == 'phx2' and inventory_hostname not in groups['staging-friendly'] %}
|
|
||||||
{% for host in groups['staging'] %}
|
{% for host in groups['staging'] %}
|
||||||
{% if 'eth0_ip' in hostvars[host] %}# {{ host }}
|
{% if 'eth0_ip' in hostvars[host] %}# {{ host }}
|
||||||
-A INPUT -s {{ hostvars[host]['eth0_ip'] }} -j REJECT --reject-with icmp-host-prohibited
|
-A INPUT -s {{ hostvars[host]['eth0_ip'] }} -j REJECT --reject-with icmp-host-prohibited
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue