Add agent/deploy.sh: install and upgrade agents over SSH
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>
This commit is contained in:
1 parent
a430a13fc8
commit
69d4cf6363
8 files changed
+456
-11
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# agent/deploy.conf — settings for agent/deploy.sh (this file is git-ignored).
|
||||
|
||||
# URL agents report to.
|
||||
SERVER_URL=https://kernels.example.internal
|
||||
|
||||
# SSH target of the dashboard host, used by --register / --rotate to run
|
||||
# `sudo kernelwatch add-host` there.
|
||||
DASHBOARD=admin@kernels.example.internal
|
||||
Reference in new issue
Block a user