Manage a Proxmox VE QEMU VM through the Proxmox API: clone from a template, cloud-init user, SSH keys and network, update only on detected drift, grow the boot disk, apply the power state, wait for SSH and cloud-init, and delete behind pve_vm_allow_destroy. The role never sets a cloud-init password and deletes a stored one with no_log. Inputs are validated first under the always tag: the API credentials, and pve_vm_disk_size while the disk is managed; the clone asserts pve_vm_clone_vmid. Only pve_vm_exists is public, every other fact and register is __pve_vm_. The molecule scenario runs offline on noble and resolute: validation with positive and refusal cases, drift detection over seeded VM configs, and static checks over the role's task files that no proxmox_kvm task or module_defaults entry carries cipassword and that the one task deleting a stored cipassword is no_log. The API lifecycle and the cloud-init wait are not exercised. README Roadmap: the pve_vm wave 2 line and the opnsense and proxmox_firewall line are removed; wave 3 stays. Closes #482 Assisted-by: Claude Code:claude-opus-5-5
73 lines
2.3 KiB
YAML
73 lines
2.3 KiB
YAML
---
|
|
namespace: mortis
|
|
name: kamino
|
|
version: 3.2.0
|
|
readme: README.md
|
|
authors:
|
|
- Defame1297
|
|
description: >-
|
|
Reusable, hardened Ansible roles for a self-hosted home lab (cloudflared, docker, fail2ban,
|
|
gitea, gitea_runner, network_interfaces, nfs_client, pihole, pve_lxc, pve_vm, sshd, system_baseline,
|
|
systemd_hardening, tailscale, traefik, ufw, user_management; _binary_update is internal).
|
|
license:
|
|
- GPL-3.0-or-later
|
|
tags:
|
|
- infrastructure
|
|
- linux
|
|
- security
|
|
- hardening
|
|
repository: https://git.rkdr.net/mortis/kamino
|
|
documentation: https://git.rkdr.net/mortis/kamino/src/branch/main/README.md
|
|
homepage: https://git.rkdr.net/mortis/kamino
|
|
issues: https://git.rkdr.net/mortis/kamino/issues
|
|
# CI tests the versions pinned in requirements.yml; the lower bounds here are not tested.
|
|
# No upper bound, so a consumer's newer pin does not conflict. community.general is used by system_baseline and ufw,
|
|
# ansible.posix by nfs_client, system_baseline and user_management, community.proxmox by pve_lxc and pve_vm (Proxmox VE guest lifecycle).
|
|
# community.proxmox's modules import the Python library proxmoxer (2.3 or later) on the controller; galaxy.yml
|
|
# cannot declare a Python dependency, so the README says it and requirements-dev.txt pins it for CI.
|
|
dependencies:
|
|
community.general: ">=14.0.0"
|
|
ansible.posix: ">=2.2.0"
|
|
community.proxmox: ">=2.1.0"
|
|
build_ignore:
|
|
# Repository tooling that is not part of the Collection. scripts/check_tarball.py fails
|
|
# the build if anything outside its allowlist ends up in the archive, so a new top-level
|
|
# file is a decision: ignore it here or allow it there.
|
|
- .ansible
|
|
- apm.yml
|
|
- apm.lock.yaml
|
|
- apm_modules
|
|
- .apm-local
|
|
- .claude
|
|
- .config
|
|
- .gitea
|
|
- .gitignore
|
|
- .pre-commit-config.yaml
|
|
- .python-version
|
|
- .ruff_cache
|
|
- .venv
|
|
- .yamllint
|
|
- docs
|
|
- .ansible-lint
|
|
- .ansible-lint-ignore
|
|
- AGENTS.md
|
|
- CODEOWNERS
|
|
- CONTRIBUTING.md
|
|
- GLOSSARY.md
|
|
- SECURITY.md
|
|
- extensions
|
|
- images
|
|
- scripts
|
|
- tests/scripts
|
|
- renovate.json
|
|
- ruff.toml
|
|
- requirements-dev.txt
|
|
- requirements-dev.lock
|
|
- requirements.yml
|
|
- gitleaks-report.json
|
|
- importer_result.json
|
|
- 'roles/*/molecule'
|
|
# Contributor rules for agents: a consumer's agent reading an installed role must not load them.
|
|
- roles/AGENTS.md
|
|
- '*.tar.gz'
|