feat(pve_lxc): add the pve_lxc role (Proxmox LXC lifecycle) #386

Open
opened 2026-11-25 22:03:51 +00:00 by Claude · 0 comments
Owner

Add a pve_lxc role that manages the lifecycle of Proxmox VE LXC containers: create, update, start/stop, delete, raw lxc.* config reconcile and the per-guest firewall file. It is a wave 2 role in the README Roadmap.

Decisions (maintainer, 2026-11-25)

  1. Testing scope: the parts that need no Proxmox API. The molecule scenario covers the raw-config reconcile, the firewall file and input validation. The API lifecycle paths (create/update/start/stop/delete through community.proxmox.proxmox and the uri calls to /api2/json) are not exercised; the role README states this in one line. A fake Proxmox API server and a stub collection shadowing community.proxmox were considered and rejected: the first is new test machinery to maintain, the second would look like coverage without testing the module call.
  2. New dependencies: community.proxmox (collection) and proxmoxer (controller-side Python library), each with a stated reason and a version floor, per AGENTS.md. They land first in their own PR together with the ci image rebuild, then the image pin moves in a separate PR (the two-PR shape of #226), before the role PR.
  3. Platform: the role targets Proxmox nodes, so it declares Debian trixie, untested until the Debian molecule image (#226) lands, per roles/AGENTS.md.
  4. No legacy-name guard. The role starts with its current pve_lxc_* interface and carries no guard for pre-rename variable names.
  5. No references outside this repository in the role, its README or comments.

Order

  • PR: add community.proxmox and proxmoxer as dependencies, rebuild the ci image
  • PR: move the ci image pin
  • PR: add the pve_lxc role with its molecule scenario, README and Roadmap update
  • Release

🤖 Generated with Claude Code

Add a `pve_lxc` role that manages the lifecycle of Proxmox VE LXC containers: create, update, start/stop, delete, raw `lxc.*` config reconcile and the per-guest firewall file. It is a wave 2 role in the README Roadmap. ## Decisions (maintainer, 2026-11-25) 1. **Testing scope: the parts that need no Proxmox API.** The molecule scenario covers the raw-config reconcile, the firewall file and input validation. The API lifecycle paths (create/update/start/stop/delete through `community.proxmox.proxmox` and the `uri` calls to `/api2/json`) are not exercised; the role README states this in one line. A fake Proxmox API server and a stub collection shadowing `community.proxmox` were considered and rejected: the first is new test machinery to maintain, the second would look like coverage without testing the module call. 2. **New dependencies:** `community.proxmox` (collection) and `proxmoxer` (controller-side Python library), each with a stated reason and a version floor, per AGENTS.md. They land first in their own PR together with the ci image rebuild, then the image pin moves in a separate PR (the two-PR shape of #226), before the role PR. 3. **Platform:** the role targets Proxmox nodes, so it declares Debian `trixie`, untested until the Debian molecule image (#226) lands, per roles/AGENTS.md. 4. **No legacy-name guard.** The role starts with its current `pve_lxc_*` interface and carries no guard for pre-rename variable names. 5. **No references outside this repository** in the role, its README or comments. ## Order - [ ] PR: add `community.proxmox` and `proxmoxer` as dependencies, rebuild the ci image - [ ] PR: move the ci image pin - [ ] PR: add the `pve_lxc` role with its molecule scenario, README and Roadmap update - [ ] Release 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added the Kind/Feature label 2026-11-25 22:03:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#386