Browse Source

Do not run at all for containers.

pull/12/head
Michel Nederlof 7 years ago
parent
commit
460f4b1d0d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      iptables/rules.sls

+ 2
- 2
iptables/rules.sls View File

{% from "iptables/map.jinja" import service with context %} {% from "iptables/map.jinja" import service with context %}
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}


{%- for chain_name, chain in service.get('chain', {}).iteritems() %} {%- for chain_name, chain in service.get('chain', {}).iteritems() %}


{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
iptables_{{ chain_name }}: iptables_{{ chain_name }}:
iptables.chain_present: iptables.chain_present:
- family: ipv4 - family: ipv4
- iptables: iptables_{{ chain_name }}_ipv6_policy - iptables: iptables_{{ chain_name }}_ipv6_policy
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %}


{%- if chain.policy is defined %} {%- if chain.policy is defined %}
iptables_{{ chain_name }}_policy: iptables_{{ chain_name }}_policy:
{%- endfor %} {%- endfor %}


{%- endfor %} {%- endfor %}
{%- endif %}

Loading…
Cancel
Save