Perform all host network configuration in a single pass
The MichaelRigart.interfaces role has now been updated to support more complex network topologies, including VLAN subinterfaces of bridges, and bridges with a bonded interface as a port.
This commit is contained in:
parent
b24db07b35
commit
4cdf792032
@ -51,15 +51,9 @@
|
|||||||
- role: ahuffman.resolv
|
- role: ahuffman.resolv
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
# On the first pass we configure all ethernet interfaces that are not on
|
|
||||||
# VLANs and all bridges. On the second pass we configure all ethernet
|
|
||||||
# interfaces that are on VLANs. This allows us to specify VLAN interfaces
|
|
||||||
# on bridges.
|
|
||||||
|
|
||||||
- role: MichaelRigart.interfaces
|
- role: MichaelRigart.interfaces
|
||||||
interfaces_ether_interfaces: >
|
interfaces_ether_interfaces: >
|
||||||
{{ ether_interfaces |
|
{{ ether_interfaces |
|
||||||
net_reject_vlans |
|
|
||||||
map('net_interface_obj') |
|
map('net_interface_obj') |
|
||||||
list }}
|
list }}
|
||||||
interfaces_bridge_interfaces: >
|
interfaces_bridge_interfaces: >
|
||||||
@ -72,14 +66,6 @@
|
|||||||
list }}
|
list }}
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
- role: MichaelRigart.interfaces
|
|
||||||
interfaces_ether_interfaces: >
|
|
||||||
{{ ether_interfaces |
|
|
||||||
net_select_vlans |
|
|
||||||
map('net_interface_obj') |
|
|
||||||
list }}
|
|
||||||
become: True
|
|
||||||
|
|
||||||
# Configure a virtual ethernet patch links to connect the workload provision
|
# Configure a virtual ethernet patch links to connect the workload provision
|
||||||
# and external network bridges to the Neutron OVS bridge.
|
# and external network bridges to the Neutron OVS bridge.
|
||||||
- name: Ensure controller workload OVS patch links exist
|
- name: Ensure controller workload OVS patch links exist
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
- src: ahuffman.resolv
|
- src: ahuffman.resolv
|
||||||
- src: jriguera.configdrive
|
- src: jriguera.configdrive
|
||||||
- src: MichaelRigart.interfaces
|
- src: MichaelRigart.interfaces
|
||||||
|
# Use our fork until the interface bounce rework patch is merged.
|
||||||
|
- src: https://github.com/stackhpc/ansible-role-interfaces
|
||||||
|
version: rework-bouncing
|
||||||
|
name: MichaelRigart.interfaces
|
||||||
- src: mrlesmithjr.manage-lvm
|
- src: mrlesmithjr.manage-lvm
|
||||||
- src: resmo.ntp
|
- src: resmo.ntp
|
||||||
- src: stackhpc.drac
|
- src: stackhpc.drac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user