Let an agent report a chosen hostname
CI / tests (Python 3.10) (pull_request) Successful in 22s
CI / tests (Python 3.11) (pull_request) Successful in 22s
CI / tests (Python 3.12) (pull_request) Successful in 22s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 3s

REPORT_HOSTNAME in agent.conf replaces hostname -f in the report, for hosts
registered under a label that differs from their real hostname (otherwise the
dashboard notes a mismatch forever). install.sh --report-hostname NAME sets it,
--default-report-hostname clears it, and re-running with --server (register,
rotate) keeps it. Agent 0.4.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-29 22:14:41 -04:00
1 parent 3e62d086d1
commit 10b1d6abb8
6 files changed
+57 -6

No files matched your search

+6 -2
View File
@@ -78,8 +78,12 @@ How the agent works it out:
the row gets a note: "registered as web01 but reports itself as db01". This
catches a token copied to the wrong machine. It never changes the status. A
host you registered under a custom label (`<ssh target> <name>` in
`agent/hosts`) will always show the note; register it under its `hostname -s`
to clear it.
`agent/hosts`) shows the note until you tell its agent which name to report:
`agent/deploy.sh iris -- --report-hostname iris` (or `install.sh
--report-hostname iris` on the host, which sets `REPORT_HOSTNAME` in
`agent.conf`). Upgrades and `--rotate` keep it;
`--default-report-hostname` removes it. That's the host's own say-so, so it
only silences the note for hosts you've deliberately named.
- **Available updates**: a simulated `apt-get dist-upgrade`. It is read-only, takes
no locks and writes no cache files. `dist-upgrade` is used so that new-ABI kernel
packages pulled in by the meta-package show up. Lines whose origin contains