From c794d3133aba0804eb511b843621f5b43707febe Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 24 Oct 2026 20:39:34 +0000 Subject: [PATCH] feat: add the empty mortis.kamino collection skeleton Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- .gitignore | 13 +++++++++++++ CONTRIBUTING.md | 19 +++++++++++++++++++ README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ galaxy.yml | 31 +++++++++++++++++++++++++++++++ meta/runtime.yml | 5 +++++ roles/.gitkeep | 0 6 files changed, 114 insertions(+) create mode 100644 .gitignore create mode 100644 CONTRIBUTING.md create mode 100644 README.md create mode 100644 galaxy.yml create mode 100644 meta/runtime.yml create mode 100644 roles/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a1edcf --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Built collection archives and local tooling +*.tar.gz +/.venv/ +/venv/ +__pycache__/ +*.pyc +.ansible/ +# Never commit credentials or key material +*.pem +*.key +.vault-pass* +vault-pass* +gitleaks-report.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..2add830 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,19 @@ +# Contributing + +- Open a pull request against `main`. Pull requests from forks need a + maintainer's approval before any workflow runs, and CI never receives secrets + on pull requests. +- Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/) + (`feat:`, `fix:`, `docs:`, `ci:` ...). CI checks every commit. +- Every user-visible change needs a changelog fragment in `changelogs/fragments/` + (antsibull-changelog format, a YAML file with a section such as + `minor_changes:` or `bugfixes:`). Pure CI or docs changes use `trivial:`. +- Role variables carry the role name as a prefix (`_`). +- Third-party material needs an SPDX header and an entry in `NOTICE`. +- Set up the tooling with `pip install -r requirements-dev.txt` in a virtualenv, + then run `pre-commit install --install-hooks` once and + `pre-commit run --all-files` before pushing. +- Never commit credentials, tokens or key material. +- Releases are cut by the maintainer: bump `version` in `galaxy.yml`, run + `antsibull-changelog release` in a release PR, then push an annotated + `vX.Y.Z` tag. diff --git a/README.md b/README.md new file mode 100644 index 0000000..2de8407 --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +# 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: scaffolding. The Collection holds no roles yet; roles arrive in waves +(see the extraction plan in the environment repo's ADR 0001). Version 1.0.0 is +reserved for the first stable release. + +## Consuming + +The Collection is consumed by git tag and used by fully qualified collection +name (FQCN) only, `mortis.kamino.`: + +```yaml +# requirements.yml +collections: + - name: https://git.rkdr.net/mortis/kamino.git + type: git + version: v0.1.0 +``` + +```yaml +- ansible.builtin.include_role: + name: mortis.kamino. +``` + +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 (`_`). + +## 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`. The release and consumption contract is recorded as ADR +0004 ("The Collection is a public repo released by operator-pushed semver tags +and consumed by FQCN from a baked image") in the maintainer's environment repo. diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 0000000..7bb9fd3 --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,31 @@ +--- +namespace: mortis +name: kamino +version: 0.1.0 +readme: README.md +authors: + - Defame1297 +description: Reusable, hardened Ansible roles for a self-hosted home lab (Linux baseline, firewall, SSH, Proxmox and Gitea runners). +license: + - GPL-3.0-or-later +tags: + - infrastructure + - linux + - security + - hardening +repository: https://git.rkdr.net/mortis/kamino +documentation: https://git.rkdr.net/mortis/kamino/src/branch/main/README.md +homepage: https://git.rkdr.net/mortis/kamino +issues: https://git.rkdr.net/mortis/kamino/issues +dependencies: {} +build_ignore: + - .gitea + - .gitignore + - .pre-commit-config.yaml + - .yamllint + - .ansible-lint + - CONTRIBUTING.md + - images + - scripts + - requirements-dev.txt + - '*.tar.gz' diff --git a/meta/runtime.yml b/meta/runtime.yml new file mode 100644 index 0000000..6b6faa6 --- /dev/null +++ b/meta/runtime.yml @@ -0,0 +1,5 @@ +--- +# ansible-core 2.19 is what the environment repo's CI image pins +# (ci_python_tool_ansible_core_version). Raise this when a role needs a newer +# core; lowering it needs the molecule and sanity runs on the older core first. +requires_ansible: ">=2.19.0" diff --git a/roles/.gitkeep b/roles/.gitkeep new file mode 100644 index 0000000..e69de29