Sfoglia il codice sorgente

Don't set policy if rules failed

tags/2016.12
Filip Pytloun 8 anni fa
parent
commit
21c93fb4e5
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      iptables/service.sls

+ 4
- 1
iptables/service.sls Vedi File

@@ -71,7 +71,10 @@ iptables_{{ chain_name }}_{{ rule_name }}:
{%- if rule.destination_network is defined %}
- destination: {{ rule.destination_network }}
{%- endif %}

{%- if chain.policy is defined %}
- require_in:
- iptables: iptables_{{ chain_name }}_policy:
{%- endif %}
- save: True

{%- endfor %}

Loading…
Annulla
Salva