diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aa758cb..3657eec 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,21 @@ mortis.kamino Release Notes .. contents:: Topics +v2.1.0 +====== + +Minor Changes +------------- + +- docker - Add ``docker_daemon_options``, ``docker_live_restore``, ``docker_log_driver``, ``docker_log_max_size``, ``docker_log_max_file`` and ``docker_daemon_restart``, which manage ``/etc/docker/daemon.json``. The file is written, before the packages are installed, only when at least one of the first five is set, so a host that sets none is unchanged; the role then owns the whole file. It restarts dockerd only when ``docker_daemon_restart`` is true (default ``false``), because a restart with ``live-restore`` off ends every container, and says that the file applies at the next restart otherwise. A key that ``docker_daemon_options`` and a dedicated input both set, a bad ``docker_log_driver``, ``docker_log_max_size`` or ``docker_log_max_file`` stops the run before any change. +- pihole - New role. Installs Pi-hole v6 on Ubuntu noble by cloning the upstream repository and running its installer unattended, with ``pihole.toml`` rendered from ``pihole_default`` merged with ``pihole_overrides``. ``pihole_web_password`` is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived from codeberg.org/ansible/pihole (GPL-3.0-only), with Pi-hole FTL comment text (EUPL-1.2). +- system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), the directory the apt upgrade and autoremove use as ``TMPDIR``. The role creates it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` entry point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative path or a ``..``. + +Bugfixes +-------- + +- system_baseline - the apt upgrade no longer loses its staged packages when it upgrades ``openssh-server`` on a host whose ``ssh.service`` has ``PrivateTmp=yes``. The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of the upgrade, so dpkg failed with "cannot access archive" and left packages unpacked but not configured. The upgrade and the autoremove now run with ``TMPDIR`` set to ``system_baseline_apt_tmpdir``, and the role opens a new connection afterwards. + v2.0.1 ====== diff --git a/README.md b/README.md index d8af1fa..86d4ef5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: `pihole`, `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.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). +Status: roles arrive in waves. Release 2.1.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `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.1 + version: v2.1.0 ``` 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 e504287..1f4807d 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 + pihole: + description: Install and configure Pi-hole from the upstream repository + name: pihole + version_added: null sshd: description: Write a hardened sshd drop-in name: sshd @@ -71,4 +75,4 @@ plugins: strategy: {} test: {} vars: {} -version: 2.0.1 +version: 2.1.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index a9e4c14..558b550 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -376,3 +376,41 @@ releases: - docker-boot-shutdown-units.yml - role-readme-headings.yml release_date: '2026-11-25' + 2.1.0: + changes: + bugfixes: + - system_baseline - the apt upgrade no longer loses its staged packages when + it upgrades ``openssh-server`` on a host whose ``ssh.service`` has ``PrivateTmp=yes``. + The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of + the upgrade, so dpkg failed with "cannot access archive" and left packages + unpacked but not configured. The upgrade and the autoremove now run with ``TMPDIR`` + set to ``system_baseline_apt_tmpdir``, and the role opens a new connection + afterwards. + minor_changes: + - docker - Add ``docker_daemon_options``, ``docker_live_restore``, ``docker_log_driver``, + ``docker_log_max_size``, ``docker_log_max_file`` and ``docker_daemon_restart``, + which manage ``/etc/docker/daemon.json``. The file is written, before the + packages are installed, only when at least one of the first five is set, so + a host that sets none is unchanged; the role then owns the whole file. It + restarts dockerd only when ``docker_daemon_restart`` is true (default ``false``), + because a restart with ``live-restore`` off ends every container, and says + that the file applies at the next restart otherwise. A key that ``docker_daemon_options`` + and a dedicated input both set, a bad ``docker_log_driver``, ``docker_log_max_size`` + or ``docker_log_max_file`` stops the run before any change. + - pihole - New role. Installs Pi-hole v6 on Ubuntu noble by cloning the upstream + repository and running its installer unattended, with ``pihole.toml`` rendered + from ``pihole_default`` merged with ``pihole_overrides``. ``pihole_web_password`` + is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. + A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived + from codeberg.org/ansible/pihole (GPL-3.0-only), with Pi-hole FTL comment + text (EUPL-1.2). + - system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), + the directory the apt upgrade and autoremove use as ``TMPDIR``. The role creates + it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` + entry point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative + path or a ``..``. + fragments: + - docker-daemon-json.yml + - pihole-role.yml + - system-baseline-apt-tmpdir.yml + release_date: '2026-11-25' diff --git a/changelogs/fragments/docker-daemon-json.yml b/changelogs/fragments/docker-daemon-json.yml deleted file mode 100644 index 65fdf3b..0000000 --- a/changelogs/fragments/docker-daemon-json.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -minor_changes: - - >- - docker - Add ``docker_daemon_options``, ``docker_live_restore``, ``docker_log_driver``, ``docker_log_max_size``, ``docker_log_max_file`` - and ``docker_daemon_restart``, which manage ``/etc/docker/daemon.json``. The file is written, before the packages are installed, only when - at least one of the first five is set, so a host that sets none is unchanged; the role then owns the whole file. It restarts dockerd only - when ``docker_daemon_restart`` is true (default ``false``), because a restart with ``live-restore`` off ends every container, and says - that the file applies at the next restart otherwise. A key that ``docker_daemon_options`` and a dedicated input both set, a bad - ``docker_log_driver``, ``docker_log_max_size`` or ``docker_log_max_file`` stops the run before any change. diff --git a/changelogs/fragments/pihole-role.yml b/changelogs/fragments/pihole-role.yml deleted file mode 100644 index 2fd9c19..0000000 --- a/changelogs/fragments/pihole-role.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -minor_changes: - - >- - pihole - New role. Installs Pi-hole v6 on Ubuntu noble and resolute by cloning the upstream repository and running - its installer unattended, with ``pihole.toml`` rendered from ``pihole_default`` merged with ``pihole_overrides``. - ``pihole_web_password`` is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. - A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived from codeberg.org/ansible/pihole - (GPL-3.0-only), with Pi-hole FTL comment text (EUPL-1.2). diff --git a/changelogs/fragments/system-baseline-apt-tmpdir.yml b/changelogs/fragments/system-baseline-apt-tmpdir.yml deleted file mode 100644 index 97a5557..0000000 --- a/changelogs/fragments/system-baseline-apt-tmpdir.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -bugfixes: - - >- - system_baseline - the apt upgrade no longer loses its staged packages when it upgrades ``openssh-server`` on a host whose - ``ssh.service`` has ``PrivateTmp=yes``. The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of the upgrade, so - dpkg failed with "cannot access archive" and left packages unpacked but not configured. The upgrade and the autoremove now run with - ``TMPDIR`` set to ``system_baseline_apt_tmpdir``, and the role opens a new connection afterwards. -minor_changes: - - >- - system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), the directory the apt upgrade and - autoremove use as ``TMPDIR``. The role creates it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` entry - point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative path or a ``..``. diff --git a/galaxy.yml b/galaxy.yml index e32127f..238b60a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 2.0.1 +version: 2.1.0 readme: README.md authors: - Defame1297