Browse Source

The chain is only ensured if we are not a container.

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

+ 2
- 0
iptables/_rule.sls View File

@@ -57,6 +57,8 @@ iptables_{{ chain_name }}_{{ rule_name }}:
- require_in:
- iptables: iptables_{{ chain_name }}_policy
{%- endif %}
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- require:
- iptables: iptables_{{ chain_name }}{% if rule.family is defined %}_{{ rule.family }}{% endif %}
{%- endif %}
- save: True

Loading…
Cancel
Save