Browse Source

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

pull/231/head
Michael Feger 3 years ago
parent
commit
904b70d7a0
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      linux/network/interface.sls

+ 3
- 0
linux/network/interface.sls View File

{%- if interface.name_servers is defined %} {%- if interface.name_servers is defined %}
- dns: {{ interface.name_servers }} - dns: {{ interface.name_servers }}
{%- endif %} {%- 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 is defined and grains.os_family == 'Debian' %}
{%- if interface.wireless.security == "wpa" %} {%- if interface.wireless.security == "wpa" %}
- wpa-ssid: {{ interface.wireless.essid }} - wpa-ssid: {{ interface.wireless.essid }}

Loading…
Cancel
Save