fix(molecule): isolate default cluster network

- move the five-node cluster NICs to a named VirtualBox internal network
- preserve NAT connectivity for provisioning and downloads
- retain serialized creation and early neighbor identity validation
This commit is contained in:
Timothy Stewart
2026-07-31 23:45:15 -05:00
committed by Techno Tim
parent 73fae0826c
commit 4990157d35
+8 -3
View File
@@ -4,9 +4,7 @@ dependency:
driver: driver:
name: vagrant name: vagrant
# The Vagrant driver warns that parallel VirtualBox creation can cause # The Vagrant driver warns that parallel VirtualBox creation can cause
# platform issues. This five-node, mixed-distribution scenario is especially # platform issues. Keep this five-node, mixed-distribution scenario serial.
# susceptible to stale host-only-network neighbor state when all guests are
# created concurrently.
parallel: false parallel: false
platforms: platforms:
- name: control1 - name: control1
@@ -19,6 +17,9 @@ platforms:
interfaces: interfaces:
- network_name: private_network - network_name: private_network
ip: 192.168.30.38 ip: 192.168.30.38
# Keep this cluster off the persistent vboxnet0 host-only switch. The
# NAT adapter remains available for SSH and Internet access.
virtualbox__intnet: k3s-ansible-default
config_options: config_options:
# We currently can not use public-key based authentication on Ubuntu 22.04, # We currently can not use public-key based authentication on Ubuntu 22.04,
# see: https://github.com/chef/bento/issues/1405 # see: https://github.com/chef/bento/issues/1405
@@ -35,6 +36,7 @@ platforms:
interfaces: interfaces:
- network_name: private_network - network_name: private_network
ip: 192.168.30.39 ip: 192.168.30.39
virtualbox__intnet: k3s-ansible-default
- name: control3 - name: control3
box: generic/rocky9 box: generic/rocky9
@@ -46,6 +48,7 @@ platforms:
interfaces: interfaces:
- network_name: private_network - network_name: private_network
ip: 192.168.30.40 ip: 192.168.30.40
virtualbox__intnet: k3s-ansible-default
- name: node1 - name: node1
box: generic/ubuntu2204 box: generic/ubuntu2204
@@ -57,6 +60,7 @@ platforms:
interfaces: interfaces:
- network_name: private_network - network_name: private_network
ip: 192.168.30.41 ip: 192.168.30.41
virtualbox__intnet: k3s-ansible-default
config_options: config_options:
# We currently can not use public-key based authentication on Ubuntu 22.04, # We currently can not use public-key based authentication on Ubuntu 22.04,
# see: https://github.com/chef/bento/issues/1405 # see: https://github.com/chef/bento/issues/1405
@@ -73,6 +77,7 @@ platforms:
interfaces: interfaces:
- network_name: private_network - network_name: private_network
ip: 192.168.30.42 ip: 192.168.30.42
virtualbox__intnet: k3s-ansible-default
provisioner: provisioner:
name: ansible name: ansible