Initial working version

This commit is contained in:
Philip Henning 2026-03-08 18:32:25 +01:00
parent 34a0627e76
commit b6886cb34a
61 changed files with 4475 additions and 6 deletions

View file

@ -1,11 +1,26 @@
## Commands
- Install: `uv sync`
- Run app: `uv run python -m your_app`
- Run app: `uv run python -m pve_vm_setup`
- Run live diagnostics: `uv run python -m pve_vm_setup --doctor-live`
- Run tests: `uv run pytest`
- Run read-only live tests: `uv run pytest -m live`
- Run create-gated live tests: `uv run pytest -m live_create`
- Lint: `uv run ruff check .`
- Format: `uv run ruff format .`
## Live configuration
Start from `.env.example` and provide the Proxmox credentials in `.env`.
Additional live-access controls:
- `PROXMOX_VERIFY_TLS=false` disables certificate verification for internal/self-signed installs
- `PROXMOX_API_BASE=/api2/json` makes the API base explicit
- `PROXMOX_PREVENT_CREATE=false` allows VM creation by default; set it to `true` to block creates
- `PROXMOX_ENABLE_TEST_MODE=true` enables scoped test mode for live creates
- When test mode is enabled, `PROXMOX_TEST_NODE`, `PROXMOX_TEST_POOL`, `PROXMOX_TEST_TAG`, and `PROXMOX_TEST_VM_NAME_PREFIX` are required and are used to constrain and mark created VMs
## Engineering rules
- Write tests before implementation