Add agent/deploy.sh: install and upgrade agents over SSH #1

Merged
patrick merged 1 commits from feature/deploy-script into main 2026-10-17 15:55:58 +00:00
Owner

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

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>
patrick added 1 commit 2026-10-17 15:55:44 +00:00
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>
patrick merged commit da7193ce56 into main 2026-10-17 15:55:58 +00:00
patrick deleted branch feature/deploy-script 2026-10-17 15:55:58 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: patrick/kernel-automation#1