fleet_host_edit
Edit a host in fleet.yaml: add, update, disable/enable, move groups, or remove via dry-run diff, then apply with backup; refuses changed file.
Instructions
Edit a host in fleet.yaml (this machine's inventory, not the server): add, change fields, move between groups, switch off/on (disabled), remove. The dry run shows the diff of fleet.yaml (layout and comments kept) and refuses a result mia could not load; apply writes it with a backup in the state directory and refuses if the file changed since the plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | add a host, update its fields, disable/enable it (disabled: true), remove it | |
| name | Yes | host key in fleet.yaml, e.g. pl3 | |
| port | No | ssh port | |
| sudo | No | run commands through sudo -n | |
| tags | No | tags, e.g. prod | |
| user | No | ssh user (default: defaults.user) | |
| apply | No | false (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash | |
| notes | No | ||
| roles | No | roles: edge | remnanode | panel | docker | |
| title | No | name for people: the animal with its emoji, e.g. "🐧 penguin" | |
| unset | No | fields to remove: address, user, port, sudo, roles, tags, domain, panelNode, title, provider, notes | |
| domain | No | remnanode TLS domain | |
| groups | No | the groups the host is in after the edit (missing ones are created; omit to leave membership as is) | |
| address | No | ssh target: tailnet name (node-pl3), IP or ~/.ssh/config alias | |
| planHash | No | planHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since | |
| provider | No | ||
| panelNode | No | node name in the Remnawave panel |