mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
The project licence governs this repository's code and says nothing about the application a role installs, which is where a restriction on commercial use usually sits: a deployment cleared to use Infinito.Nexus commercially is still barred from NLLB-200's CC BY-NC weights. Each invokable role names its licence in meta/<role>/license.yml with the url it was read from. The rights of a named licence live once in meta/licenses.yml, fifteen fields following the taxonomy choosealicense publishes. AND folds to the strictest combination, OR keeps the most favourable whole licence, and the seven contexts are derived from the rights rather than declared, so a heading cannot contradict the matrix under it. The generated page renders one matrix per context, a lint refuses a role that declares nothing, and a Playwright spec asserts the page against the deployed docs. 21 of 22 deprecated SPDX ids were resolved against the upstream text; EPSON's remains unread because its AUR page blocks automated access. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Docker Swarm
Description
Docker Swarm is Docker's built-in clustering and container-orchestration mode. It groups multiple Docker hosts into a single virtual host that can schedule services, replicate tasks, and route traffic via an internal mesh.
Overview
This role bootstraps and manages a Docker Swarm cluster across the
hosts in the Ansible group svc-swarm-node. The manager is the single
host in svc-swarm-manager; every other group member joins as a
worker. Membership is expressed via group membership only, never via
duplicated lists in group_vars. Inventory node labels are pushed to
the cluster after the join phase.
Features
- Single-manager bootstrap: Initialises the cluster on the manager with the configured advertise address; idempotent on re-runs.
- Auto-derived workers:
svc-swarm-node - svc-swarm-manageryields the worker set; no separateworker_nodeslist to drift. - Token publishing: Manager-fetched worker/manager join tokens are published as facts to every cluster member.
- Node labels: Per-host labels declared via
swarm_node_labelsin inventory are applied to the joining node. - Mode-selection trigger: Membership in
svc-swarm-noderesolvesDEPLOYMENT_MODE = swarmfor every web-app role on that host.