From 562ed76bfc49d47cffb81b0143f171e9b1d49f6b Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 8 Nov 2026 19:23:44 +0000 Subject: [PATCH] chore(release): 1.0.0 First release, holding the docker role. Version bump in galaxy.yml, the changelog built by antsibull-changelog release, README and CLAUDE.md no longer say there are no roles, CHANGELOG.rst is allowed in the archive (scripts/check_tarball.py) and the generated changelog.yaml is exempt from yamllint like changelogs/config.yaml. Verified: the commit hooks; the tarball script's unit tests; a local ansible-galaxy build of 1.0.0 passes scripts/check_tarball.py. Not verified: ansible-test sanity and the importer (CI). The tag is the maintainer's. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- .yamllint | 1 + CHANGELOG.rst | 20 +++++++++++ CLAUDE.md | 3 +- README.md | 5 ++- changelogs/.plugin-cache.yaml | 23 ++++++++++++ changelogs/changelog.yaml | 35 ++++++++++++++++++- .../fragments/ci-concurrency-main-runs.yml | 4 --- .../fragments/collection-tarball-contents.yml | 16 --------- .../credential-and-workflow-comments.yml | 2 -- changelogs/fragments/dev-setup-robustness.yml | 6 ---- changelogs/fragments/docker-role.yml | 2 -- .../fragments/image-version-and-pin-check.yml | 9 ----- changelogs/fragments/scaffold.yml | 2 -- galaxy.yml | 2 +- scripts/check_tarball.py | 2 +- 15 files changed, 83 insertions(+), 49 deletions(-) create mode 100644 CHANGELOG.rst create mode 100644 changelogs/.plugin-cache.yaml delete mode 100644 changelogs/fragments/ci-concurrency-main-runs.yml delete mode 100644 changelogs/fragments/collection-tarball-contents.yml delete mode 100644 changelogs/fragments/credential-and-workflow-comments.yml delete mode 100644 changelogs/fragments/dev-setup-robustness.yml delete mode 100644 changelogs/fragments/docker-role.yml delete mode 100644 changelogs/fragments/image-version-and-pin-check.yml delete mode 100644 changelogs/fragments/scaffold.yml diff --git a/.yamllint b/.yamllint index 256c308..c391af8 100644 --- a/.yamllint +++ b/.yamllint @@ -5,6 +5,7 @@ ignore: | .venv/** # Written and rewritten by antsibull-changelog, which does not indent sequences. changelogs/config.yaml + changelogs/changelog.yaml rules: trailing-spaces: diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..1e97158 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,20 @@ +=========================== +mortis.kamino Release Notes +=========================== + +.. contents:: Topics + +v1.0.0 +====== + +Release Summary +--------------- + +First release. It holds the docker role; further roles follow in waves. + +Minor Changes +------------- + +- The Collection archive no longer contains extensions/ (the image-smoke molecule scenario), the roles' molecule scenarios, CLAUDE.md or other repository tooling; the Build workflow now fails when the archive holds anything outside an allow list, a member that is not a regular file or directory (symlinks, hardlinks, devices), or a path that is absolute or holds an empty, '..' or '.git' component (compared case-insensitively), a backslash or a control or zero-width character; it also fails on duplicate members, an empty archive or one that lacks MANIFEST.json, FILES.json, COPYING, README.md, meta/runtime.yml or changelogs/changelog.yaml, and on symlinks in the source tree (which ansible-galaxy would dereference). +- The archive check also rejects any file name containing "vault", SSH key and .envrc/.env* files, names that Windows or macOS extraction would read differently (trailing space or dot, reserved device names such as CON or NUL, "::", 8.3 aliases of .git, non-ASCII spaces, surrogate, private-use and unassigned characters, components over 255 bytes), case-insensitive duplicates and a name used as both a file and a directory. The Build workflow fails with a clear message unless exactly one tarball was built. +- docker - New role. Installs, updates or removes Docker Engine from the upstream APT repository and adds users to the docker group. diff --git a/CLAUDE.md b/CLAUDE.md index 16c5894..62e62ea 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,8 +6,7 @@ Guidance for Claude Code (claude.ai/code) in this repository. `mortis.kamino`: an Ansible Collection (GPL-3.0-or-later, REUSE-compliant), extracted role by role from the author's homelab environment repository. The design contract is ADR 0004 (in the -maintainer's environment repository). There are no roles here yet: wave 1 arrives with the -extraction. +maintainer's environment repository). Roles arrive here wave by wave; the first, `docker`, is in 1.0.0. Fork pull requests from untrusted users are not accepted for now: a fork controls its own workflow file, so the `if:` guards are a convenience, not a boundary (see the header of diff --git a/README.md b/README.md index ca7c8c9..65caee8 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ 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: scaffolding. The Collection holds no roles yet; roles arrive in waves. -Version 1.0.0 is reserved for the first stable release. +Status: roles arrive in waves. Release 1.0.0 holds the `docker` role. ## Consuming @@ -17,7 +16,7 @@ name (FQCN) only, `mortis.kamino.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v0.1.0 + version: v1.0.0 ``` ```yaml diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml new file mode 100644 index 0000000..4ec6ffb --- /dev/null +++ b/changelogs/.plugin-cache.yaml @@ -0,0 +1,23 @@ +objects: + role: + docker: + description: Install, update or remove Docker Engine + name: docker + version_added: null +plugins: + become: {} + cache: {} + callback: {} + cliconf: {} + connection: {} + filter: {} + httpapi: {} + inventory: {} + lookup: {} + module: {} + netconf: {} + shell: {} + strategy: {} + test: {} + vars: {} +version: 1.0.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index d4f9724..01611ef 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1,2 +1,35 @@ ancestor: null -releases: {} +releases: + 1.0.0: + changes: + minor_changes: + - The Collection archive no longer contains extensions/ (the image-smoke molecule + scenario), the roles' molecule scenarios, CLAUDE.md or other repository tooling; + the Build workflow now fails when the archive holds anything outside an allow + list, a member that is not a regular file or directory (symlinks, hardlinks, + devices), or a path that is absolute or holds an empty, '..' or '.git' component + (compared case-insensitively), a backslash or a control or zero-width character; + it also fails on duplicate members, an empty archive or one that lacks MANIFEST.json, + FILES.json, COPYING, README.md, meta/runtime.yml or changelogs/changelog.yaml, + and on symlinks in the source tree (which ansible-galaxy would dereference). + - The archive check also rejects any file name containing "vault", SSH key and + .envrc/.env* files, names that Windows or macOS extraction would read differently + (trailing space or dot, reserved device names such as CON or NUL, "::", 8.3 + aliases of .git, non-ASCII spaces, surrogate, private-use and unassigned characters, + components over 255 bytes), case-insensitive duplicates and a name used as + both a file and a directory. The Build workflow fails with a clear message + unless exactly one tarball was built. + - docker - New role. Installs, updates or removes Docker Engine from the upstream + APT repository and adds users to the docker group. + release_summary: First release. It holds the docker role; further roles follow + in waves. + fragments: + - ci-concurrency-main-runs.yml + - collection-tarball-contents.yml + - credential-and-workflow-comments.yml + - dev-setup-robustness.yml + - docker-role.yml + - image-version-and-pin-check.yml + - release-1.0.0.yml + - scaffold.yml + release_date: '2026-11-08' diff --git a/changelogs/fragments/ci-concurrency-main-runs.yml b/changelogs/fragments/ci-concurrency-main-runs.yml deleted file mode 100644 index 9ac883d..0000000 --- a/changelogs/fragments/ci-concurrency-main-runs.yml +++ /dev/null @@ -1,4 +0,0 @@ -trivial: - - >- - A later push to main no longer cancels the Lint and Build runs of an earlier one; pull request - runs still cancel their predecessors, and in the Build workflow a tag run has its own group. diff --git a/changelogs/fragments/collection-tarball-contents.yml b/changelogs/fragments/collection-tarball-contents.yml deleted file mode 100644 index dceb997..0000000 --- a/changelogs/fragments/collection-tarball-contents.yml +++ /dev/null @@ -1,16 +0,0 @@ -minor_changes: - - >- - The Collection archive no longer contains extensions/ (the image-smoke molecule scenario), - the roles' molecule scenarios, CLAUDE.md or other repository tooling; the Build workflow - now fails when the archive holds anything outside an allow list, a member that is not a - regular file or directory (symlinks, hardlinks, devices), or a path that is absolute or - holds an empty, '..' or '.git' component (compared case-insensitively), a backslash or a - control or zero-width character; it also fails on duplicate members, an empty archive or one - that lacks MANIFEST.json, FILES.json, COPYING, README.md, meta/runtime.yml or - changelogs/changelog.yaml, and on symlinks in the source tree (which ansible-galaxy would - dereference). - - >- - The archive check also rejects any file name containing "vault", SSH key and .envrc/.env* files, names that Windows or macOS extraction - would read differently (trailing space or dot, reserved device names such as CON or NUL, "::", 8.3 aliases of .git, non-ASCII spaces, - surrogate, private-use and unassigned characters, components over 255 bytes), case-insensitive duplicates and a name used as both a - file and a directory. The Build workflow fails with a clear message unless exactly one tarball was built. diff --git a/changelogs/fragments/credential-and-workflow-comments.yml b/changelogs/fragments/credential-and-workflow-comments.yml deleted file mode 100644 index b858e5a..0000000 --- a/changelogs/fragments/credential-and-workflow-comments.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: - - Document the credential model in CLAUDE.md, CONTRIBUTING.md and the workflow headers, and rename the image workflow to Images. diff --git a/changelogs/fragments/dev-setup-robustness.yml b/changelogs/fragments/dev-setup-robustness.yml deleted file mode 100644 index 709ae0b..0000000 --- a/changelogs/fragments/dev-setup-robustness.yml +++ /dev/null @@ -1,6 +0,0 @@ -trivial: - - >- - scripts/dev-setup.sh checks for Python 3.11 or newer (KAMINO_PYTHON selects one), derives the repository from its own location, rebuilds an older - virtualenv, shell-quotes the repository path it writes into the installed hooks, lifts a repo-local core.hooksPath that points at this - repository's own hooks (including a multi-valued, empty or newline-containing one) for the install and restores it exactly, and fails early - only when core.hooksPath points elsewhere or is set outside the repository's config (a global value), or when the hooks are missing. diff --git a/changelogs/fragments/docker-role.yml b/changelogs/fragments/docker-role.yml deleted file mode 100644 index a2bc03a..0000000 --- a/changelogs/fragments/docker-role.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - docker - New role. Installs, updates or removes Docker Engine from the upstream APT repository and adds users to the docker group. diff --git a/changelogs/fragments/image-version-and-pin-check.yml b/changelogs/fragments/image-version-and-pin-check.yml deleted file mode 100644 index a462d1e..0000000 --- a/changelogs/fragments/image-version-and-pin-check.yml +++ /dev/null @@ -1,9 +0,0 @@ -trivial: - - >- - Add scripts/check_image_versions.py and its tests, and run them in the Lint workflow: - image pins must name an image of the build matrix, and a pull request that changes an - image's inputs must bump its version. - - >- - scripts/check_image_versions.py reports a pin written in any case, with a port, in a nested path or without a tag; fails closed (naming - file and line) on a Dockerfile COPY source with a variable, quote or comment character and on a RUN --mount of the build context; says so - for a non-UTF-8 diff path and an empty image.yml; requires lint.yml and lists the consumer files it checked. diff --git a/changelogs/fragments/scaffold.yml b/changelogs/fragments/scaffold.yml deleted file mode 100644 index 05df43e..0000000 --- a/changelogs/fragments/scaffold.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: - - Initial repository scaffolding, CI workflows and the molecule base image definition. diff --git a/galaxy.yml b/galaxy.yml index 92abc7d..620434b 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 0.1.0 +version: 1.0.0 readme: README.md authors: - Defame1297 diff --git a/scripts/check_tarball.py b/scripts/check_tarball.py index 347345f..c168848 100644 --- a/scripts/check_tarball.py +++ b/scripts/check_tarball.py @@ -42,7 +42,7 @@ import tarfile import unicodedata ALLOWED_TOP = { - "COPYING", "FILES.json", "LICENSES", "MANIFEST.json", "NOTICE", "README.md", + "CHANGELOG.rst", "COPYING", "FILES.json", "LICENSES", "MANIFEST.json", "NOTICE", "README.md", "REUSE.toml", "changelogs", "docs", "meta", "plugins", "roles", "tests", } # Every Collection archive built by ansible-galaxy holds these.