瀏覽代碼
Merge pull request #7 from wk/master
iterate in a manner compatible with both salt-ssh and salt
tags/v2.1.1
Maximilian Eschenbacher
5 年之前
No account linked to committer's email address
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
wireguard/init.sls
|
|
@@ -1,4 +1,4 @@ |
|
|
|
{%- for interface_name, interface_dict in salt.pillar.get('wireguard:interfaces', {}).items() %} |
|
|
|
{%- for interface_name, interface_dict in salt['pillar.get']('wireguard:interfaces', {}).items() %} |
|
|
|
|
|
|
|
{% if interface_dict.get('delete', False) %} |
|
|
|
stop and disable wg-quick@{{interface_name}}: |