coa phase 3: coa_shared role on matou + build/tenant env on the coa role (plan Tasks 16–17) #10
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/matou-distributed-servers!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "coa-phase-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two session tickets from the coa phase-3 plan (spec §3.6, ADR 0005):
#6 —
roles/coa_shared(pattern:matou_forms/coa). Pinned checkout of Matou/matou-infrastructure at/opt/coa-shared/src,any-sync/config.envrendered forcoamode with external addresses (coa-infra.<domain>, vault MinIO keys),keri/.env.coaviagenerate-env.sh coawithCONFIG_PUBLIC_URL,keri/.env.secretswithCONFIG_ADMIN_TOKENfrom vaultcoa_config_admin_token,make up-coa, wait/probe127.0.0.1:5904, ufw tcp 5901–5903 / 7642–7647 / 9723 / 3001–3006 + udp 3011–3016, Caddycoa-infra.<domain>→127.0.0.1:5904. Wired inplaybooks/host.ymlaftercoa(coa_shared_enabled, tagscoa_shared, routing);host_vars/matou.ymlenables it and pinscoa_shared_infra_ref;secrets.yml.examplegains the COA block.#7 —
coarole phase-3 env. Compose gainsGITHUB_DISPATCH_TOKEN,COA_BUILDS_REPO/WORKFLOW/REF,BUILD_WEBHOOK_SECRET,COA_NOTIFY_EMAIL,COA_SHARED_ADMIN_URL(http://127.0.0.1:5904),COA_SHARED_ADMIN_TOKEN,COA_SHARED_PUBLIC_URL; defaultscoa_builds_repo,coa_notify_email, …; the assert requirescoa_github_dispatch_token,coa_webhook_hmac_secret,coa_config_admin_token.Two things the ticket text didn't know:
matou-collective/matou-infrastructure, the repo's realorigin) anonymously instead of putting a credential on the host. Consequence: a pinned sha must be on GitLab — mirrormainthere after merging a Forgejo PR (coa GOTCHAS 12 applies to this repo too).ff581b7cis the tip of matou-infrastructure PR #6 (infra #3–#5), pushed to both remotes. It stays valid once that PR merges; bump to the merge sha later if you prefer.Acceptance:
ansible-playbook playbooks/host.yml --limit matou --check --diff -t coa_shared→ ok=12 changed=8 failed=0 (git pin resolves, config/secrets/Caddy render; the run-onlymake up-coa/wait/probe tasks are gated onnot ansible_check_modebecausechdirfires before check mode is honoured);-t coa→ ok=13 changed=2 failed=0, the new env renders from the vault values into the 0600 compose. Real runs are coa Task 18b/19.Closes #6
Closes #7
coamode on matou, Caddy coa-infra.<domain>, ufw (coa phase-3 plan Task 16) #6coamode on matou, Caddy coa-infra.<domain>, ufw (coa phase-3 plan Task 16) #6