build-usb: --site-vars puts the per-site vars on CIDATA; harness pins the VM NIC MACs
tests/vm/build-image.sh writes site-vars.yml with pxe_nic_mac (isolated network NIC) and corp_nic_mac (NAT NIC) and passes it to build-usb.sh.
This commit is contained in:
@@ -16,10 +16,16 @@ NIC MACs (fixed):
|
||||
|
||||
| VM | NIC | MAC | Network | Playbook var |
|
||||
|--------|---------|---------------------|-------------------|-------------------|
|
||||
| server | GE | `52:54:00:9e:10:01` | `default` NAT | `pxe_ge_mac` / corp_nic_mac |
|
||||
| server | imaging | `52:54:00:9e:10:02` | `pxetest-imaging` | `pxe_imaging_mac` / pxe_nic_mac |
|
||||
| server | GE | `52:54:00:9e:10:01` | `default` NAT | `corp_nic_mac` |
|
||||
| server | imaging | `52:54:00:9e:10:02` | `pxetest-imaging` | `pxe_nic_mac` |
|
||||
| client | - | `52:54:00:9e:10:03` | `pxetest-imaging` | - |
|
||||
|
||||
`build-image.sh` writes `$PXETEST_CACHE/site-vars.yml` with these two
|
||||
MACs (`pxe_nic_mac`, `corp_nic_mac`) and passes it to `build-usb.sh
|
||||
--site-vars`, so it lands on CIDATA as `playbook/site-vars.yml`. The
|
||||
installer brings both NICs up with DHCP; the playbook renames them to
|
||||
pxe0 / corp0 and pins pxe0 to 172.16.9.1.
|
||||
|
||||
The disk boots before the USB on purpose: a blank disk falls through to
|
||||
the installer, and after the install the server boots its disk instead of
|
||||
re-running autoinstall. CIDATA stays attached for the first-boot playbook.
|
||||
|
||||
Reference in New Issue
Block a user