Browse Source

Require the packages to be installed first.

pull/12/head
Michel Nederlof 7 years ago
parent
commit
58eae273f1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      iptables/rules.sls

+ 4
- 0
iptables/rules.sls View File

@@ -7,6 +7,8 @@ iptables_{{ chain_name }}:
- family: ipv4
- name: {{ chain_name }}
- table: filter
- require:
- pkg: iptables_packages

{%- if grains.ipv6|default(False) and service.ipv6|default(True) %}
iptables_{{ chain_name }}_ipv6:
@@ -14,6 +16,8 @@ iptables_{{ chain_name }}_ipv6:
- family: ipv6
- name: {{ chain_name }}
- table: filter
- require:
- pkg: iptables_packages
- require_in:
- iptables: iptables_{{ chain_name }}_ipv6_policy
{%- endif %}

Loading…
Cancel
Save