瀏覽代碼

Pillar that cointains string variables throw jinja error (#15)

* change file mode to 644

* change file mode to 644

* Fix problem with stringvariable in pillar
master
Piotr Pieprzycki 7 年之前
父節點
當前提交
7df3a168f8
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      iptables/rules.sls

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

@@ -48,6 +48,7 @@ iptables_{{ chain_name }}_ipv6_policy:
{%- endif %}

{%- for service_name, service in pillar.items() %}
{%- if service is mapping %}
{%- if service.get('_support', {}).get('iptables', {}).get('enabled', False) %}

{%- set grains_fragment_file = service_name+'/meta/iptables.yml' %}
@@ -59,6 +60,7 @@ iptables_{{ chain_name }}_ipv6_policy:
{% include "iptables/_rule.sls" %}
{%- endfor %}

{%- endif %}
{%- endif %}
{%- endfor %}


Loading…
取消
儲存