Skip to content
Snippets Groups Projects
Commit 4cdf7920 authored by Mark Goddard's avatar Mark Goddard
Browse files

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.
parent b24db07b
No related branches found
No related tags found
No related merge requests found
...@@ -51,15 +51,9 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment