瀏覽代碼

add metric-option to network/interface (for debian only) (#229)

pull/231/head
Michael Feger 3 年之前
父節點
當前提交
904b70d7a0
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      linux/network/interface.sls

+ 3
- 0
linux/network/interface.sls 查看文件

@@ -269,6 +269,9 @@ linux_interface_{{ interface_name }}:
{%- if interface.name_servers is defined %}
- dns: {{ interface.name_servers }}
{%- endif %}
{%- if interface.metric is defined and grains.os_family == 'Debian' %}
- metric: {{ interface.metric }}
{%- endif %}
{%- if interface.wireless is defined and grains.os_family == 'Debian' %}
{%- if interface.wireless.security == "wpa" %}
- wpa-ssid: {{ interface.wireless.essid }}

Loading…
取消
儲存