Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1a46fcdb1 | ||
|
|
a659e83e6b |
No files matched your search
@@ -57,14 +57,6 @@ issue.
|
||||
`.pre-commit-config.yaml` takes the slow path, which installs the pinned tools and collections.
|
||||
*Why:* a pull request is tested on its own pins, and an unchanged one starts in seconds.
|
||||
*Held:* control: the "Check the baked tooling against the pins" step.
|
||||
- **On the fast path the network is cut by environment**: `PIP_NO_INDEX=1`, the proxy variables
|
||||
set to a dead local port and `no_proxy` empty, for every later step except "Test the repository
|
||||
scripts", which unsets them for its fake registry on loopback; the slow path keeps network.
|
||||
*Why:* a runtime download is a bake-in defect and must fail the job, not silently slow it.
|
||||
*Held:* control, set by the "Check the baked tooling against the pins" step, for pip, curl, git
|
||||
over HTTPS and Python's urllib or requests (anything honouring `PIP_NO_INDEX` or the proxy
|
||||
variables); review for a raw socket or a tool that ignores the proxy variables, and for the
|
||||
script tests.
|
||||
- **Triggers:** both run on pull requests to `main` and on manual dispatch; Build also runs on
|
||||
`v*` tags, where it checks the tag against `galaxy.yml`. *Why:* the tag is what consumers
|
||||
install. *Held:* review.
|
||||
|
||||
@@ -60,11 +60,6 @@ jobs:
|
||||
run: |
|
||||
if sha256sum --quiet -c /opt/ci-pins.sha256; then
|
||||
echo "The pin files match the ci image; using the baked tools."
|
||||
# A job container may not unshare, so the network is cut by environment: pip, curl,
|
||||
# git over HTTPS and Python's urllib fail; a raw socket is not caught.
|
||||
printf '%s\n' PIP_NO_INDEX=1 http_proxy=http://127.0.0.1:9 https_proxy=http://127.0.0.1:9 \
|
||||
HTTP_PROXY=http://127.0.0.1:9 HTTPS_PROXY=http://127.0.0.1:9 no_proxy= NO_PROXY= >> "$GITHUB_ENV"
|
||||
echo "::notice::Later steps run with a dead proxy; a download fails the job (bake it into images/ci)."
|
||||
else
|
||||
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
|
||||
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
|
||||
|
||||
@@ -59,11 +59,6 @@ jobs:
|
||||
run: |
|
||||
if sha256sum --quiet -c /opt/ci-pins.sha256; then
|
||||
echo "The pin files match the ci image; using the baked tools."
|
||||
# A job container may not unshare, so the network is cut by environment: pip, curl,
|
||||
# git over HTTPS and Python's urllib fail; a raw socket is not caught.
|
||||
printf '%s\n' PIP_NO_INDEX=1 http_proxy=http://127.0.0.1:9 https_proxy=http://127.0.0.1:9 \
|
||||
HTTP_PROXY=http://127.0.0.1:9 HTTPS_PROXY=http://127.0.0.1:9 no_proxy= NO_PROXY= >> "$GITHUB_ENV"
|
||||
echo "::notice::Later steps run with a dead proxy; a download fails the job (bake it into images/ci)."
|
||||
else
|
||||
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
|
||||
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
|
||||
@@ -113,10 +108,8 @@ jobs:
|
||||
fi
|
||||
python3 -E -s "$guard" "$HEAD_REF" "$BASE_REF"
|
||||
|
||||
# Without the guard: an empty no_proxy would send the fake registry on 127.0.0.1 to the dead proxy.
|
||||
- name: Test the repository scripts
|
||||
run: |
|
||||
unset PIP_NO_INDEX http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
|
||||
export PATH="/opt/venv/bin:$PATH"
|
||||
python3 -m unittest discover -s tests/scripts
|
||||
|
||||
|
||||
@@ -4,6 +4,24 @@ mortis.kamino Release Notes
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
v3.1.0
|
||||
======
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- tailscale - New role. Installs Tailscale from the upstream APT repository with the keyring pinned by sha256, sets ``--tun=userspace-networking`` in the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true, enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs ``tailscale up`` with ``tailscale_auth_key`` while the node is not Running; it can also update to the APT candidate version and remove or purge. Declares Ubuntu noble and resolute; the molecule scenario installs the real package but does not join a tailnet.
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- cloudflared - Do not fail under ``--check`` on a host where the cloudflared account or systemd unit does not exist yet.
|
||||
- docker - Do not fail under ``--check`` on a host where the Docker repository and packages are not installed yet.
|
||||
- gitea - Do not fail under ``--check`` on a host where Gitea is not installed yet.
|
||||
- gitea_runner - Do not fail under ``--check`` on a host where the runner account, Docker or the systemd unit does not exist yet.
|
||||
- traefik - Do not fail under ``--check`` on a host where Traefik is not installed yet.
|
||||
- user_management - Do not fail under ``--check`` when a managed user does not exist yet.
|
||||
|
||||
v3.0.0
|
||||
======
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
|
||||
`pihole`, `pve_lxc`, `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.0.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `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 3.1.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).
|
||||
|
||||
## Consuming
|
||||
|
||||
@@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
|
||||
collections:
|
||||
- name: https://git.rkdr.net/mortis/kamino.git
|
||||
type: git
|
||||
version: v3.0.0
|
||||
version: v3.1.0
|
||||
```
|
||||
|
||||
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
|
||||
|
||||
@@ -51,6 +51,10 @@ objects:
|
||||
description: Harden systemd for a system type
|
||||
name: systemd_hardening
|
||||
version_added: null
|
||||
tailscale:
|
||||
description: Install Tailscale and bring the node up
|
||||
name: tailscale
|
||||
version_added: null
|
||||
traefik:
|
||||
description: Install, configure, update or remove Traefik as a systemd binary
|
||||
name: traefik
|
||||
@@ -81,4 +85,4 @@ plugins:
|
||||
strategy: {}
|
||||
test: {}
|
||||
vars: {}
|
||||
version: 3.0.0
|
||||
version: 3.1.0
|
||||
@@ -446,3 +446,31 @@ releases:
|
||||
- 133-drop-jammy-and-ubuntu-all.yml
|
||||
- 133-ubuntu-2604.yml
|
||||
release_date: '2026-11-26'
|
||||
3.1.0:
|
||||
changes:
|
||||
bugfixes:
|
||||
- cloudflared - Do not fail under ``--check`` on a host where the cloudflared
|
||||
account or systemd unit does not exist yet.
|
||||
- docker - Do not fail under ``--check`` on a host where the Docker repository
|
||||
and packages are not installed yet.
|
||||
- gitea - Do not fail under ``--check`` on a host where Gitea is not installed
|
||||
yet.
|
||||
- gitea_runner - Do not fail under ``--check`` on a host where the runner account,
|
||||
Docker or the systemd unit does not exist yet.
|
||||
- traefik - Do not fail under ``--check`` on a host where Traefik is not installed
|
||||
yet.
|
||||
- user_management - Do not fail under ``--check`` when a managed user does not
|
||||
exist yet.
|
||||
minor_changes:
|
||||
- tailscale - New role. Installs Tailscale from the upstream APT repository
|
||||
with the keyring pinned by sha256, sets ``--tun=userspace-networking`` in
|
||||
the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true,
|
||||
enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs
|
||||
``tailscale up`` with ``tailscale_auth_key`` while the node is not Running;
|
||||
it can also update to the APT candidate version and remove or purge. Declares
|
||||
Ubuntu noble and resolute; the molecule scenario installs the real package
|
||||
but does not join a tailnet.
|
||||
fragments:
|
||||
- 134-check-mode.yml
|
||||
- tailscale-role.yml
|
||||
release_date: '2026-11-26'
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
cloudflared - Do not fail under ``--check`` on a host where the cloudflared account or systemd
|
||||
unit does not exist yet.
|
||||
- >-
|
||||
docker - Do not fail under ``--check`` on a host where the Docker repository and packages are
|
||||
not installed yet.
|
||||
- >-
|
||||
gitea - Do not fail under ``--check`` on a host where Gitea is not installed yet.
|
||||
- >-
|
||||
gitea_runner - Do not fail under ``--check`` on a host where the runner account, Docker or the
|
||||
systemd unit does not exist yet.
|
||||
- >-
|
||||
traefik - Do not fail under ``--check`` on a host where Traefik is not installed yet.
|
||||
- >-
|
||||
user_management - Do not fail under ``--check`` when a managed user does not exist yet.
|
||||
@@ -1,9 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
tailscale - New role. Installs Tailscale from the upstream APT repository with the keyring pinned by sha256,
|
||||
sets ``--tun=userspace-networking`` in the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true,
|
||||
enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs ``tailscale up`` with
|
||||
``tailscale_auth_key`` while the node is not Running; it can also update to the APT candidate version and remove
|
||||
or purge. Declares Ubuntu noble and resolute; the molecule scenario installs the real package but does not join a
|
||||
tailnet.
|
||||
+1
-2
@@ -66,8 +66,7 @@ Read `.gitea/workflows/molecule.yml` for the full command.
|
||||
|
||||
`/opt/ci-pins.sha256` lists the five pin files by their checkout-relative path, so `sha256sum -c` runs in the checkout root. When
|
||||
the checkout's `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `extensions/molecule/requirements.yml` and `.pre-commit-config.yaml` match, the baked tools and
|
||||
collections are used as they are, and Lint and Build cut the network by environment (proxy variables and
|
||||
`PIP_NO_INDEX`) for all but the script tests, so a tool that downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
|
||||
collections are used as they are. When a pull request changes a pin the check fails and the job installs the pinned
|
||||
tools and collections itself for that run
|
||||
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml`, `molecule.yml` and `gitea-release-key.yml`
|
||||
are the real consumers.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
---
|
||||
namespace: mortis
|
||||
name: kamino
|
||||
version: 3.0.0
|
||||
version: 3.1.0
|
||||
readme: README.md
|
||||
authors:
|
||||
- Defame1297
|
||||
|
||||
+2
-4
@@ -61,10 +61,8 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
|
||||
|
||||
- **Bake in:** every tool, collection, hook environment and package a CI job uses is in its
|
||||
image; a job downloads at run time only on the slow path (a pull request that changes a pin
|
||||
file). *Why:* a run that downloads is slower and depends on the network. *Held:* control: on
|
||||
the fast path Lint and Build cut the network by environment, so a download through pip or a
|
||||
proxy-honouring client fails the job; review for a raw socket, for the script tests, which keep
|
||||
network, and for Molecule.
|
||||
file). *Why:* a run that downloads is slower and depends on the network. *Held:* review until
|
||||
the network-off check (#168) lands.
|
||||
- **Recorded speed:** a speed optimisation that adds machinery states its measured saving where
|
||||
it lives (a comment next to it). *Why:* machinery is kept only for a saving someone can check.
|
||||
*Held:* review.
|
||||
|
||||
Reference in new issue
Block a user