瀏覽代碼

Check for missing privkey extended

tags/v2.1.2^0
Maximilian Eschenbacher 3 年之前
父節點
當前提交
603b816e28
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      wireguard/init.sls

+ 1
- 1
wireguard/init.sls 查看文件

@@ -52,7 +52,7 @@ wireguard_interface_{{interface_name}}_config:
- contents_pillar: wireguard:interfaces:{{interface_name}}:raw_config
- mode: 600
{% else %}
{% if salt['pillar.get']('wireguard:interfaces:'~interface_name~':config:PrivateKey') == '' %}
{% if (interface_dict.get('enable', True) and not interface_dict.get('delete', False)) and (not interface_dict.get('config', {}).get('PrivateKey') and not interface_dict.get('raw_config')) %}
wireguard_{{interface_name}}_privatekey_missing:
test.fail_without_changes:
- name: "no wireguard private key for interface {{interface_name}} in pillars"

Loading…
取消
儲存