Files
computer-playbook/roles/svc-swarm-node
kevinveenbirkenbachandClaude Opus 5 ff734fe728 feat(licensing): declare the deployed software's licence per role
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>
2026-10-20 23:35:00 +02:00
..
…
…

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-manager yields the worker set; no separate worker_nodes list 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_labels in inventory are applied to the joining node.
  • Mode-selection trigger: Membership in svc-swarm-node resolves DEPLOYMENT_MODE = swarm for every web-app role on that host.