fix(molecule): select distro-specific private interfaces

- Use eth1 for Ubuntu and Debian Bento guests when present.
- Keep enp0s8 for Rocky Linux guests and other images.
- Apply the selection consistently across all Molecule scenarios.
This commit is contained in:
Timothy Stewart authored and Techno Tim committed 2026-08-01 19:13:48 -05:00
1 parent c3606a7847
commit dfcfbc1f3f
6 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -6,8 +6,8 @@
ansible.builtin.set_fact:
# See:
# https://github.com/flannel-io/flannel/blob/67d603aaf45ef80f5dd39f43714fc5e6f8a637eb/Documentation/troubleshooting.md#Vagrant
calico_iface: enp0s8
kube_vip_iface: enp0s8
calico_iface: "{{ 'eth1' if 'eth1' in ansible_facts.interfaces else 'enp0s8' }}"
kube_vip_iface: "{{ 'eth1' if 'eth1' in ansible_facts.interfaces else 'enp0s8' }}"
# The test VMs might be a bit slow, so we give them more time to join the cluster:
retry_count: 45