From a930a58bebd9ca4173b6cedf7c8d2854d86286b2 Mon Sep 17 00:00:00 2001 From: Dragonish Date: Wed, 25 Nov 2026 18:42:26 +0000 Subject: [PATCH] chore(release): 2.0.1 Patch release: the docker role gains the opt-in boot and shutdown units for hosts that run Docker with live-restore. Assisted-by: Claude Code:claude-sonnet-5-5 --- CHANGELOG.rst | 8 +++++++ README.md | 4 ++-- changelogs/.plugin-cache.yaml | 2 +- changelogs/changelog.yaml | 21 +++++++++++++++++++ .../fragments/docker-boot-shutdown-units.yml | 11 ---------- changelogs/fragments/role-readme-headings.yml | 6 ------ galaxy.yml | 2 +- 7 files changed, 33 insertions(+), 21 deletions(-) delete mode 100644 changelogs/fragments/docker-boot-shutdown-units.yml delete mode 100644 changelogs/fragments/role-readme-headings.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8531fcd..aa758cb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,14 @@ mortis.kamino Release Notes .. contents:: Topics +v2.0.1 +====== + +Minor Changes +------------- + +- docker - Add the opt-in inputs ``docker_start_missed`` and ``docker_stop_at_shutdown`` (both default ``false``, so a host that does not set them is unchanged) for a host that runs Docker with ``live-restore``. ``docker_start_missed`` installs a boot unit that starts the containers dockerd's restore pass skipped after a reboot of the whole host (exited with code 255 during this boot, restart policy ``unless-stopped`` or ``always``; one stopped on purpose stays stopped), with ``docker_start_missed_settle_seconds`` (default 30). ``docker_stop_at_shutdown`` installs a unit that ends every container process at shutdown while the network and NFS shares are still up (SIGTERM, then SIGKILL after ``docker_stop_at_shutdown_timeout`` seconds, default 30, never ``docker stop`` or ``docker kill``), so that a container holding an NFS mount does not stall the shutdown while the network is already down. Setting an input back to ``false``, or ``docker_remove``, removes its unit and script. Both units do nothing when ``/usr/bin/docker`` does not exist. + v2.0.0 ====== diff --git a/README.md b/README.md index 6a6abd1..97bc7ec 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: `sshd`, `system_baseline`, `systemd_hardening`, `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 2.0.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). +Status: roles arrive in waves. Release 2.0.1 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening`, `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: v2.0.0 + version: v2.0.1 ``` Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 108bfd5..e504287 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -71,4 +71,4 @@ plugins: strategy: {} test: {} vars: {} -version: 2.0.0 +version: 2.0.1 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 05d9442..a9e4c14 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -355,3 +355,24 @@ releases: - system-baseline-reboot-throttle-apt-daily.yml - system-baseline-unattended-blacklist.yml release_date: '2026-11-24' + 2.0.1: + changes: + minor_changes: + - docker - Add the opt-in inputs ``docker_start_missed`` and ``docker_stop_at_shutdown`` + (both default ``false``, so a host that does not set them is unchanged) for + a host that runs Docker with ``live-restore``. ``docker_start_missed`` installs + a boot unit that starts the containers dockerd's restore pass skipped after + a reboot of the whole host (exited with code 255 during this boot, restart + policy ``unless-stopped`` or ``always``; one stopped on purpose stays stopped), + with ``docker_start_missed_settle_seconds`` (default 30). ``docker_stop_at_shutdown`` + installs a unit that ends every container process at shutdown while the network + and NFS shares are still up (SIGTERM, then SIGKILL after ``docker_stop_at_shutdown_timeout`` + seconds, default 30, never ``docker stop`` or ``docker kill``), so that a + container holding an NFS mount does not stall the shutdown while the network + is already down. Setting an input back to ``false``, or ``docker_remove``, + removes its unit and script. Both units do nothing when ``/usr/bin/docker`` + does not exist. + fragments: + - docker-boot-shutdown-units.yml + - role-readme-headings.yml + release_date: '2026-11-25' diff --git a/changelogs/fragments/docker-boot-shutdown-units.yml b/changelogs/fragments/docker-boot-shutdown-units.yml deleted file mode 100644 index b51ea6f..0000000 --- a/changelogs/fragments/docker-boot-shutdown-units.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -minor_changes: - - >- - docker - Add the opt-in inputs ``docker_start_missed`` and ``docker_stop_at_shutdown`` (both default ``false``, so a host that does not - set them is unchanged) for a host that runs Docker with ``live-restore``. ``docker_start_missed`` installs a boot unit that starts the - containers dockerd's restore pass skipped after a reboot of the whole host (exited with code 255 during this boot, restart policy - ``unless-stopped`` or ``always``; one stopped on purpose stays stopped), with ``docker_start_missed_settle_seconds`` (default 30). - ``docker_stop_at_shutdown`` installs a unit that ends every container process at shutdown while the network and NFS shares are still up - (SIGTERM, then SIGKILL after ``docker_stop_at_shutdown_timeout`` seconds, default 30, never ``docker stop`` or ``docker kill``), so that - a container holding an NFS mount does not stall the shutdown while the network is already down. Setting an input back to ``false``, or ``docker_remove``, - removes its unit and script. Both units do nothing when ``/usr/bin/docker`` does not exist. diff --git a/changelogs/fragments/role-readme-headings.yml b/changelogs/fragments/role-readme-headings.yml deleted file mode 100644 index d2eb747..0000000 --- a/changelogs/fragments/role-readme-headings.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -trivial: - - >- - Every public role README follows the fixed heading set: Supported platforms, Requirements and - run order, Role variables, Entry points, Variables set by the role, Tags, Example play, Tests - and Notes, with an "Idempotent" line. diff --git a/galaxy.yml b/galaxy.yml index 5ad717c..94c563f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 2.0.0 +version: 2.0.1 readme: README.md authors: - Defame1297