A consumer gets a running single-node OpenBao server on integrated raft storage, listening on TLS they supply, left uninitialised and sealed. The role installs the pinned 2.7.3 release tarball, checked by get_url against the sha256 of each architecture from the release's checksums.txt (its GPG signature checks out against OpenBao's release key). It creates its own system user, data directory, configuration and sandboxed unit: Type=notify, SIGINT stop, MemorySwapMax=0 instead of mlock, an empty capability set, ProtectSystem=strict with the data directory writable, and ExecReload sending SIGHUP. The directive set was tried against the real binary under systemd before it was kept. TLS certificate, key and CA paths are required unless openbao_tls_disable is true, which warns; validation fails before any change when a file is missing, and the role checks the service user can read the key and certificate before writing the config. It reads its seal status over https://127.0.0.1 validated against the CA file, so an address other than a wildcard or loopback gets a second loopback listener. The tasks are split by job (validate, prereqs, install, configure, seal_status) so the init, unseal, audit and update work can reuse them. Refs: #536 Assisted-by: Claude Code
64 lines
2.8 KiB
Markdown
64 lines
2.8 KiB
Markdown
# mortis.kamino
|
|
|
|
An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
|
|
`cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`,
|
|
`nfs_client`, `openbao`, `pihole`, `pve_lxc`, `pve_vm`, `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.5.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `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). `openbao` is on `main` for the next release.
|
|
|
|
## Consuming
|
|
|
|
The Collection is consumed by git tag and used by fully qualified collection
|
|
name (FQCN) only, `mortis.kamino.<role>`:
|
|
|
|
```yaml
|
|
# requirements.yml
|
|
collections:
|
|
- name: https://git.rkdr.net/mortis/kamino.git
|
|
type: git
|
|
version: v3.5.0
|
|
```
|
|
|
|
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
|
|
`ansible-galaxy` installs them unless the same file already pins a satisfying version. The modules of
|
|
`community.proxmox` also need the Python library `proxmoxer` 2.3 or later on the controller
|
|
(`pip install 'proxmoxer>=2.3'`); `galaxy.yml` cannot declare a Python dependency.
|
|
|
|
```yaml
|
|
- 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>`).
|
|
|
|
## Roadmap
|
|
|
|
Roles arrive in waves. The order inside a wave is not a promise, and a role arrives only
|
|
when its own prerequisites (tests, a safe cutover wherever the role already runs) are met.
|
|
|
|
Still to come:
|
|
|
|
- Wave 3: `rke2`, `proxmox_host`.
|
|
|
|
Will not be extracted (they serve one lab or install that lab's own tool pins):
|
|
`k8s_manage`, `k8s_localhost`, `k8s_lint_tools`, `minecraft_server`, `dragonwilds_server`,
|
|
`satisfactory_server`.
|
|
|
|
## 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.
|