Browse Source

set default proto: according OS default

tags/2016.12
jan kaufman 9 years ago
parent
commit
cc4bf7c833
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      linux/network/interface.sls

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

@@ -91,7 +91,12 @@ linux_interface_{{ interface_name }}:
- name: {{ interface_name }}
- type: {{ interface.type }}
{%- if interface.address is defined %}
{%- if grains.os_family == 'Debian' %}
- proto: {{ interface.get('proto', 'static') }}
{% endif %}
{%- if grains.os_family == 'RedHat' %}
- proto: {{ interface.get('proto', 'none') }}
{% endif %}
- ipaddr: {{ interface.address }}
- netmask: {{ interface.netmask }}
{%- else %}

Loading…
Cancel
Save