package templates type RegistrationForm struct { Name string MAC string WoLBroadcastIP string WoLPort string ExpectedSpecYAML string Notes string Error string QuickRegisterURL string // base URL (no trailing slash) used in the one-liner } templ Registration(form RegistrationForm) { @Layout("Register host") {

Register host

Back to dashboard
if form.Error != "" {
{ form.Error }
} if form.QuickRegisterURL != "" {

Quick register (recommended)

Run this on the target host as root before wiping. It auto-detects MAC and hardware, then registers with this orchestrator:

{ "curl -fsSL " + form.QuickRegisterURL + "/register/quick.sh | sudo bash" }

After the script prints OK, refresh the dashboard and click Start vetting on the new host.

}

Register manually

Cancel
} } func defaultPort(v string) string { if v == "" { return "9" } return v }