pve_node_hosts_set
Replace the /etc/hosts file on a Proxmox VE node. Dry-run returns a plan; confirm executes the replacement.
Instructions
MUTATION: replace the /etc/hosts file on a PVE node.
RISK_MEDIUM. CAPTURE: reads current /etc/hosts before planning (also readable directly via pve_node_hosts_get; revert by re-applying captured content); if unreadable → complete=False. A bad /etc/hosts can break name resolution. Dry-run by default (returns a PLAN); confirm=True executes (POST, Smoke-confirm) and returns {"status": "ok", "result": None}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full replacement content for the node's /etc/hosts file. | |
| node | No | PVE node name to configure; defaults to the configured node if omitted. | |
| digest | No | Expected content digest of the current /etc/hosts, for optimistic-concurrency conflict detection. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the replacement. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |