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:
Mark Goddard 2017-08-22 14:08:40 +00:00
parent b24db07b35
commit 4cdf792032
2 changed files with 4 additions and 14 deletions

View File

@ -51,15 +51,9 @@
- role: ahuffman.resolv
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
interfaces_ether_interfaces: >
{{ ether_interfaces |
net_reject_vlans |
map('net_interface_obj') |
list }}
interfaces_bridge_interfaces: >
@ -72,14 +66,6 @@
list }}
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
# and external network bridges to the Neutron OVS bridge.
- name: Ensure controller workload OVS patch links exist

View File

@ -2,6 +2,10 @@
- src: ahuffman.resolv
- src: jriguera.configdrive
- 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: resmo.ntp
- src: stackhpc.drac