|
|
|
|
|
|
|
|
linux_interfaces_include_{{ interface_name }}: |
|
|
linux_interfaces_include_{{ interface_name }}: |
|
|
file.prepend: |
|
|
file.prepend: |
|
|
- name: /etc/network/interfaces |
|
|
- name: /etc/network/interfaces |
|
|
- text: 'source /etc/network/interfaces.d/*' |
|
|
|
|
|
|
|
|
- text: | |
|
|
|
|
|
source /etc/network/interfaces.d/* |
|
|
|
|
|
# Workaround for Upstream-Bug: https://github.com/saltstack/salt/issues/40262 |
|
|
|
|
|
source /etc/network/interfaces.u/* |
|
|
|
|
|
|
|
|
ovs_port_{{ interface_name }}: |
|
|
ovs_port_{{ interface_name }}: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/network/interfaces.d/ifcfg-{{ interface_name }} |
|
|
|
|
|
|
|
|
- name: /etc/network/interfaces.u/ifcfg-{{ interface_name }} |
|
|
|
|
|
- makedirs: True |
|
|
- source: salt://linux/files/ovs_port |
|
|
- source: salt://linux/files/ovs_port |
|
|
- defaults: |
|
|
- defaults: |
|
|
port: {{ interface|yaml }} |
|
|
port: {{ interface|yaml }} |
|
|
|
|
|
|
|
|
linux_interfaces_final_include: |
|
|
linux_interfaces_final_include: |
|
|
file.prepend: |
|
|
file.prepend: |
|
|
- name: /etc/network/interfaces |
|
|
- name: /etc/network/interfaces |
|
|
- text: 'source /etc/network/interfaces.d/*' |
|
|
|
|
|
|
|
|
- text: | |
|
|
|
|
|
source /etc/network/interfaces.d/* |
|
|
|
|
|
# Workaround for Upstream-Bug: https://github.com/saltstack/salt/issues/40262 |
|
|
|
|
|
source /etc/network/interfaces.u/* |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|