bulk onboarding step 1: netvm-provision-node.sh + CDP_PORT_OVERRIDE

One command provisions a full client node: Warp identity (operator-
authorized 2026-10-03), netns + tunnel, chrome-box profile, NODES.md
registry entry with next-free 94x0 CDP port. Idempotent per stage.
netvm-names.sh gains CDP_PORT_OVERRIDE (backwards compatible) so the
CDP relay and the browser share the assigned port.
This commit is contained in:
operator
2026-10-03 20:54:56 +00:00
parent 2006ecd5a2
commit 02cf10acc8
2 changed files with 85 additions and 1 deletions
+4 -1
View File
@@ -9,6 +9,9 @@ netvm_names() {
VETH="ve-${_tag}"
VPEER="vp-${_tag}"
_idx=$(( 0x${_tag:0:3} % 200 + 10 ))
CDP_PORT=$(( 9222 + 0x${_tag:4:3} % 2000 ))
# CDP_PORT_OVERRIDE lets provisioners assign clean sequential ports
# (9410, 9420, ...) instead of the hash-derived default.
# Unset = previous behavior.
CDP_PORT=${CDP_PORT_OVERRIDE:-$(( 9222 + 0x${_tag:4:3} % 2000 ))}
GW="10.201.${_idx}.1"; PEER_IP="10.201.${_idx}.2"; SUB="10.201.${_idx}.0/30"
}