host_reboot
Reboots Linux hosts in rolling batches, waits for each to return over SSH with remnanode running, and requires a dry-run plan before applying changes.
Instructions
Reboot hosts (shutdown -r +delay) and wait for each to come back over ssh with remnanode running before the next one (rolling, batch 1). The dry run shows users online per node (panel) and whether a reboot is pending anyway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | wait for the host to return (up to 10 min) before the next batch | |
| apply | No | false (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash | |
| batch | No | hosts at a time (rolling). Default depends on the action: 1 for disruptive ones | |
| target | No | hosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludes | all |
| delayMin | No | ||
| planHash | No | planHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since | |
| continueOnError | No | keep going after a host fails (default: stop the rollout at the first failure) | |
| skipUnreachable | No | skip hosts that do not answer over ssh instead of refusing the whole plan (they show as skipped) |