浏览代码

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 }}

正在加载...
取消
保存