|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- for interface_name, interface in network.interface.iteritems() %} |
|
|
{%- for interface_name, interface in network.interface.iteritems() %} |
|
|
|
|
|
|
|
|
|
|
|
{%- set interface_name = interface.get('name', interface_name) %} |
|
|
|
|
|
|
|
|
{%- if interface.get('managed', True) %} |
|
|
{%- if interface.get('managed', True) %} |
|
|
|
|
|
|
|
|
{%- if grains.os_family in ['RedHat', 'Debian'] %} |
|
|
{%- if grains.os_family in ['RedHat', 'Debian'] %} |
|
|
|
|
|
|
|
|
linux_interface_{{ interface_name }}: |
|
|
linux_interface_{{ interface_name }}: |
|
|
network.managed: |
|
|
network.managed: |
|
|
- enabled: {{ interface.enabled }} |
|
|
- enabled: {{ interface.enabled }} |
|
|
- name: {{ interface.get('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' %} |
|
|
{%- if grains.os_family == 'Debian' %} |