瀏覽代碼

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

pull/231/head
Michael Feger 3 年之前
父節點
當前提交
904b70d7a0
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存