diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e070c3e..315ae53 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,23 @@ mortis.kamino Release Notes .. contents:: Topics +v3.3.0 +====== + +Minor Changes +------------- + +- docker - New input ``docker_keyring_checksum``: the Docker APT key is verified against a pinned sha256, and a changed key fails the install until a person has checked it and updated the hash. Set ``docker_keyring_checksum`` too when ``docker_gpg_url`` is overridden. +- nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts`` (default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode, writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share. +- pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and network, updates an existing VM only on detected drift, grows its boot disk, applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``) deletes it. It never sets a cloud-init password and deletes one stored on the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user`` and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk`` is true). Declares Ubuntu noble and resolute guests; the molecule scenario covers the input validation and the drift detection, not the API lifecycle. +- traefik - The prerequisites install refreshes the APT cache only when it is older than an hour; before, every run refreshed it. A consumer who adds an APT source just before the role must refresh the cache first. + +Bugfixes +-------- + +- fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed yet, through either entry point; the preview reports the install and skips the configuration, service and jail tasks. +- ufw - ``--check`` no longer fails on a host where ufw is not installed yet; the preview reports the install and skips the tasks that need the ``ufw`` binary. + v3.2.0 ====== diff --git a/README.md b/README.md index 1cc89d7..3077dcd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap). -Status: roles arrive in waves. Release 3.2.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). `nfs_client` and `pve_vm` are on `main` for the next release. +Status: roles arrive in waves. Release 3.3.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). ## Consuming @@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v3.2.0 + version: v3.3.0 ``` Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 506a305..6c3da5e 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -31,6 +31,10 @@ objects: description: Manage /etc/network/interfaces name: network_interfaces version_added: null + nfs_client: + description: Install the NFS client and manage NFS entries in /etc/fstab + name: nfs_client + version_added: null pihole: description: Install and configure Pi-hole from the upstream repository name: pihole @@ -39,6 +43,10 @@ objects: description: Manage a Proxmox LXC container name: pve_lxc version_added: null + pve_vm: + description: Manage a Proxmox VE QEMU VM cloned from a template + name: pve_vm + version_added: null sshd: description: Write a hardened sshd drop-in name: sshd @@ -85,4 +93,4 @@ plugins: strategy: {} test: {} vars: {} -version: 3.2.0 +version: 3.3.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 162c0ab..1cf4d68 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -532,3 +532,47 @@ releases: - refusals-in-verify.yml - traefik-release-url.yml release_date: '2026-11-27' + 3.3.0: + changes: + bugfixes: + - fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed + yet, through either entry point; the preview reports the install and skips + the configuration, service and jail tasks. + - ufw - ``--check`` no longer fails on a host where ufw is not installed yet; + the preview reports the install and skips the tasks that need the ``ufw`` + binary. + minor_changes: + - 'docker - New input ``docker_keyring_checksum``: the Docker APT key is verified + against a pinned sha256, and a changed key fails the install until a person + has checked it and updated the hash. Set ``docker_keyring_checksum`` too when + ``docker_gpg_url`` is overridden.' + - nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries + in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional + ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts`` + (default ``_netdev,nofail``) for an entry that sets none. It creates each + mount point without owner, group or mode, writes only the fstab line, never + mounts or unmounts, and reloads systemd after a change. An ``absent`` entry + loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule + scenario never mounts a share. + - 'pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the + Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and + network, updates an existing VM only on detected drift, grows its boot disk, + applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``) + deletes it. It never sets a cloud-init password and deletes one stored on + the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run + under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user`` + and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk`` + is true). Declares Ubuntu noble and resolute guests; the molecule scenario + covers the input validation and the drift detection, not the API lifecycle.' + - traefik - The prerequisites install refreshes the APT cache only when it is + older than an hour; before, every run refreshed it. A consumer who adds an + APT source just before the role must refresh the cache first. + fragments: + - 402-nfs-client.yml + - 448-docker-keyring-checksum.yml + - 456-system-baseline-purge-batch.yml + - 458-traefik-apt-cache-valid-time.yml + - 478-ufw-fail2ban-check-mode.yml + - 482-pve-vm.yml + - system-baseline-internal-registers.yml + release_date: '2026-12-01' diff --git a/changelogs/fragments/402-nfs-client.yml b/changelogs/fragments/402-nfs-client.yml deleted file mode 100644 index 0a674bf..0000000 --- a/changelogs/fragments/402-nfs-client.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -minor_changes: - - >- - nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts`` - (``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts`` - (default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode, - writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its - line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share. diff --git a/changelogs/fragments/448-docker-keyring-checksum.yml b/changelogs/fragments/448-docker-keyring-checksum.yml deleted file mode 100644 index 2d740cb..0000000 --- a/changelogs/fragments/448-docker-keyring-checksum.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -minor_changes: - - >- - docker - New input ``docker_keyring_checksum``: the Docker APT key is verified against a pinned - sha256, and a changed key fails the install until a person has checked it and updated the hash. - Set ``docker_keyring_checksum`` too when ``docker_gpg_url`` is overridden. diff --git a/changelogs/fragments/456-system-baseline-purge-batch.yml b/changelogs/fragments/456-system-baseline-purge-batch.yml deleted file mode 100644 index 6ce6f74..0000000 --- a/changelogs/fragments/456-system-baseline-purge-batch.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -trivial: - - >- - system_baseline - Purge the unwanted packages that are installed in one apt call instead of one call per package. diff --git a/changelogs/fragments/458-traefik-apt-cache-valid-time.yml b/changelogs/fragments/458-traefik-apt-cache-valid-time.yml deleted file mode 100644 index 683b2a6..0000000 --- a/changelogs/fragments/458-traefik-apt-cache-valid-time.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -minor_changes: - - >- - traefik - The prerequisites install refreshes the APT cache only when it is older than an hour; - before, every run refreshed it. A consumer who adds an APT source just before the role must - refresh the cache first. diff --git a/changelogs/fragments/478-ufw-fail2ban-check-mode.yml b/changelogs/fragments/478-ufw-fail2ban-check-mode.yml deleted file mode 100644 index 6e57dbc..0000000 --- a/changelogs/fragments/478-ufw-fail2ban-check-mode.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -bugfixes: - - >- - ufw - ``--check`` no longer fails on a host where ufw is not installed yet; the preview reports - the install and skips the tasks that need the ``ufw`` binary. - - >- - fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed yet, through - either entry point; the preview reports the install and skips the configuration, service and - jail tasks. diff --git a/changelogs/fragments/482-pve-vm.yml b/changelogs/fragments/482-pve-vm.yml deleted file mode 100644 index 40e2f73..0000000 --- a/changelogs/fragments/482-pve-vm.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -minor_changes: - - >- - pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the Proxmox API (``community.proxmox``), sets - its cloud-init user, SSH keys and network, updates an existing VM only on detected drift, grows its boot disk, - applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``) deletes it. It never sets - a cloud-init password and deletes one stored on the VM. Only ``pve_vm_exists`` is set for later plays. The input - checks run under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user`` and - ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk`` is true). Declares - Ubuntu noble and resolute guests; the molecule scenario covers the input validation and the drift detection, not - the API lifecycle. diff --git a/changelogs/fragments/system-baseline-internal-registers.yml b/changelogs/fragments/system-baseline-internal-registers.yml deleted file mode 100644 index 0df9925..0000000 --- a/changelogs/fragments/system-baseline-internal-registers.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -trivial: - - >- - system_baseline - The registered results of the unattended-upgrades check and the reboot-required - check carry the internal ``__system_baseline_`` prefix. diff --git a/galaxy.yml b/galaxy.yml index 60e3034..377e0b3 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 3.2.0 +version: 3.3.0 readme: README.md authors: - Defame1297