{{define "title"}}{{.Title}}{{end}} {{define "content"}} {{$page := .Page}}
Token's still alive — refresh the page or come back later until the agent enrols. Credentials are decrypted from the (still-encrypted-at-rest) token row each render, so you can recover them if you've already lost the snippets below. Once the agent connects this page redirects to the host detail.
{{if $page.RepoPassword}}echo '{{$page.RepoPassword}}' | sudo htpasswd -B -i /path/to/htpasswd {{$page.RepoUsername}}
curl -fsSL {{$page.ServerURL}}/install/install.sh | sudo \ RM_SERVER={{$page.ServerURL}} \ RM_TOKEN={{$page.Token}} bash