mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
The entity name keys a role's instance directory, its compose project and its container name, and was derived only by stripping the longest matching category prefix. Two roles under different categories whose names share a suffix therefore collapse onto one entity and overwrite each other's rendered stack, which no provides: can repair. A literal entity_name in vars/main.yml now wins over the derivation. web-app-seaweedfs-console takes its shorter name back and declares the entity seaweedfs-console, which frees the seaweedfs key in its own services map for the engine consumer and removes the provides:, covers: and alias entries that stood in for it. A new lint pairs the declaration with the primary key it has to match, because a drift between them would drop the role from the provider set in silence. Compared across all 288 roles, exactly one entity changes, and it restores what main already keeps on disk, so no instance directory moves. The function and the filter lose their get_ prefix. Two lints read that prefix as the discriminator between the variable and the filter that fills it; both discriminate on the pipe now. Ansible's templar resolves a filter and a same-named variable independently, verified against ansible-core 2.20.2. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Container Purge 🗑️
Container-local cleanup helpers under scripts/container/purge/.
These scripts run inside the local infinito container and remove container-local state only. For the canonical Make target index that invokes these helpers, see make.md.
Entry Points 🎯
| Entry point | What it does | Notes |
|---|---|---|
apps.sh |
App-keyed orchestrator that maps $apps to compose entities, drives entity/{db,compose,dir}.sh, and wipes the matching token-store entries via tokens.py. |
The host-side wrapper entity.sh docker execs this script. |
web.sh |
Removes nginx and self-signed CA state inside the container. | Called by the local purge wrapper. |
entity/ |
Entity-keyed primitives. | See entity/README.md for the exact scripts. |