Let an administrator set a server's hostname by hand
A Change link on the Identity card sets the hostname (a host name or an address, written lower case without the trailing dot). It is then kept even when the agent reports another — marked "set by hand", with what the agent reports shown beside it — until "Use what the agent reports" gives it up. The agent's own hostname is always remembered (reported_hostname). PUT and DELETE /api/servers/:id/hostname, administrators only, audited with from and to. Migration 0082 adds hostname_pinned and reported_hostname and fills the latter for servers that have reported. It changes this app's name for the server, not the machine's. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f144b4e36
commit
672c7f2f66
14 files changed
+9020
-7
No files matched your search
@@ -87,6 +87,11 @@ All modules from the original plan are built:
|
||||
through a PowerShell agent (`agent/windows/`, see its README), plus manual
|
||||
entries for things an agent can't see (Docker jobs, backups). The Servers page itself just lists
|
||||
registered servers and (admin-only) adds new ones / issues agent tokens;
|
||||
a server's **hostname** — which an agent replaces with the machine's own at every report — can be
|
||||
changed by an administrator on its page (*Identity → Change*): it is then **kept** even when the
|
||||
agent reports another (marked *set by hand*, with what the agent reports shown beside it), until
|
||||
*Use what the agent reports* gives it up. It is the name this app has for the server, used to
|
||||
match it to DNS names and monitors and to reach it; it does not rename the machine itself;
|
||||
clicking a server opens its detail page with CPU/RAM/disk status, IP
|
||||
addresses, matching DNS names (looked up from the DNS module's cache), and
|
||||
its scheduled tasks — live hardware from Proxmox for VM/LXC-backed
|
||||
|
||||
Reference in new issue
Block a user