瀏覽代碼

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

pull/12/head
Michel Nederlof 7 年之前
父節點
當前提交
7da7ad7f49
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      iptables/_rule.sls

+ 2
- 0
iptables/_rule.sls 查看文件

@@ -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…
取消
儲存