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