Run from a workstation checkout; hosts need no git or Gitea access. A plain run upgrades every host in agent/hosts (config and token kept); --register runs `kernelwatch add-host --token-only` on the dashboard over SSH and hands the token to the host on stdin, never argv or the terminal; --rotate does the same with rotate-token. Newly registered hosts are appended to agent/hosts. Failures are summarised and don't stop the rest of the fleet. Supporting changes: install.sh --token-file, and --token-only on `kernelwatch add-host` / `rotate-token`. Tested end to end with ssh and sudo stubbed to run locally against the real CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
457 B
Plaintext
10 lines
457 B
Plaintext
# agent/hosts — fleet for agent/deploy.sh (this file is git-ignored).
|
|
# One host per line: <ssh target> [kernelwatch name]
|
|
# The SSH target can be anything `ssh` accepts, including a Host alias from
|
|
# ~/.ssh/config. The name defaults to the host's `hostname -s`.
|
|
# `deploy.sh --register` appends new hosts here automatically.
|
|
|
|
web01.example.internal
|
|
patrick@10.0.0.31 db01
|
|
zeus # IPv6-only? Give it a ProxyJump in ~/.ssh/config
|