Explorar el Código

Only ensure chains if not container :)

pull/12/head
Michel Nederlof hace 7 años
padre
commit
9383dcd7e5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      iptables/rules.sls

+ 2
- 0
iptables/rules.sls Ver fichero



{%- 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:

Cargando…
Cancelar
Guardar