Browse Source

Don't set policy if rules failed

tags/2016.12
Filip Pytloun 8 years ago
parent
commit
21c93fb4e5
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      iptables/service.sls

+ 4
- 1
iptables/service.sls View 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…
Cancel
Save