platforms/qemu and platforms/proxmox each have their own lab.sh and lab.conf; content/ holds everything shared (roles, seed, site, helpers). The dispatcher, preflight and command implementations are common and take platform differences from the backend. Proxmox backend: qm create with q35/SATA/e1000, ISOs and seed ISOs in an ISO storage, provisioning over qm guest exec (no Python packages needed on the host), template + clone for reset, and peers/ to emit WireGuard configs. The role scripts now ride on the seed ISO, so provisioning transfers nothing. build-bundle.sh produces a self-contained tarball per platform, for hosts that cannot reach the git server. Both configs are generic: no absolute path from this machine remains.
8 lines
414 B
Batchfile
8 lines
414 B
Batchfile
@echo off
|
|
rem Norbourg lab — first-logon entry point (runs from the seed ISO).
|
|
rem The ISO carries the whole payload, so copy it locally first: from then on
|
|
rem the guest never needs another file transfer.
|
|
if not exist C:\norbourg mkdir C:\norbourg
|
|
xcopy "%~dp0*.*" C:\norbourg\ /E /I /Y >nul 2>&1
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "C:\norbourg\bootstrap.ps1" >> C:\norbourg\bootstrap.log 2>&1
|