Refs #113. - .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from. - requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh, the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any disagreement between the two files. - scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode). - renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly, never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate. - check_bot_pr_diff.py accepts `rev: <sha> # frozen: <tag>` and lock entries, hashes and plain comments, but not a changed pip-compile header command. - ci image 0.2.18 -> 0.2.19 (image inputs changed).
mortis.kamino
An Ansible Collection of reusable, hardened roles for a self-hosted home lab: Linux baseline, firewall, SSH, user management and, in later releases, Proxmox, Gitea and Gitea Actions runner roles.
Status: roles arrive in waves. Release 1.3.0 holds the docker, fail2ban, network_interfaces, system_baseline and systemd_hardening roles.
Consuming
The Collection is consumed by git tag and used by fully qualified collection
name (FQCN) only, mortis.kamino.<role>:
# requirements.yml
collections:
- name: https://git.rkdr.net/mortis/kamino.git
type: git
version: v1.3.0
Its dependencies (community.general, ansible.posix) are declared in galaxy.yml, so
ansible-galaxy installs them unless the same file already pins a satisfying version.
- ansible.builtin.include_role:
name: mortis.kamino.<role>
Pin a tag, never a branch. Releases are annotated vX.Y.Z tags pushed by the
maintainer; the tag equals v plus the version in galaxy.yml. Every role
input carries the role name as a prefix (<role>_<name>).
Licence
Licensed GPL-3.0-or-later (see COPYING). Files marked GPL-3.0-only
(roles/pihole, roles/ufw/templates/before.rules.j2) make the Collection as a
whole distributable under GPL-3.0 only. Third-party material
keeps its own licence, marked by an SPDX header, with texts in LICENSES/ and
attribution in NOTICE. The repository follows the REUSE specification
(reuse lint).
Development
See CONTRIBUTING.md. Releases follow semantic versioning: annotated vX.Y.Z
tags that only the maintainer can push, a changelog built from antsibull-changelog
fragments, and consumption by pinned git tag and FQCN.