Settings for WikiDeck Nights 1 and 2; production image from Gitea #1

Merged
eric merged 1 commits from claude/ansible-role-wikideck:night2-production into main 2026-11-18 18:24:02 +00:00
Contributor

This gets the role ready to deploy WikiDeck/wikideck#23 (Nights 1 and 2) to production.

Changes

  • wikideck_env, a new variable (default {}): extra application settings as NAME: value, at most 32. The role validates them:

    • names must be upper-case
    • values must be strings or numbers
    • role-managed names (PORT, PUBLIC_ORIGIN, WIKIDECK_MAINNET_*, …) are rejected

    The settings are rendered into the container env after the role's own variables. This is needed because the template hard-coded its env, so the new app settings couldn't be set.

  • Production playbook (playbooks/wikideck.yaml):

    • The image moves to gitea.eom.dev/wikideck/wikideck:latest (the Gitea container registry) from ericomeehan/wikideck:latest. The WikiDeck org is public, so no pull secret is needed.
    • WIKIDECK_OIDC_REDIRECT_URIS=https://wikideck.eom.dev/auth/callback,dev.eom.wikideck:/oauth/callback enables eom.dev login. It matches DevOps/ansible-role-dex#1, which is merged; run the Dex playbook first.
    • WIKIDECK_OPERATOR_CONTACT=https://gitea.eom.dev/WikiDeck/wikideck/issues is the contact in the Wikimedia User-Agent. Change it if you'd rather use a different URL or email.
  • Tests: a render case with extra settings, plus three invalid cases (a reserved name, a lower-case name, a list value). tests/render.yml passes: ok=417, failed=0, rescued=35, where the baseline was 32 rescued.

The CRLF line endings are kept, so the diff is only the 49 changed lines.

Deploy order

  1. Push the image (built locally from WikiDeck/wikideck main dbb89ce):
    • gitea.eom.dev/wikideck/wikideck:latest
    • gitea.eom.dev/wikideck/wikideck:night2-dbb89ce
  2. Run the Dex playbook (DevOps/ansible-role-dex playbooks/deploy-eom.yml).
  3. Merge this PR, then run playbooks/wikideck.yaml.

🤖 Generated with Claude Code

This gets the role ready to deploy WikiDeck/wikideck#23 (Nights 1 and 2) to production. ## Changes - **`wikideck_env`**, a new variable (default `{}`): extra application settings as `NAME: value`, at most 32. The role validates them: - names must be upper-case - values must be strings or numbers - role-managed names (`PORT`, `PUBLIC_ORIGIN`, `WIKIDECK_MAINNET_*`, …) are rejected The settings are rendered into the container env after the role's own variables. This is needed because the template hard-coded its env, so the new app settings couldn't be set. - **Production playbook (`playbooks/wikideck.yaml`):** - The image moves to **`gitea.eom.dev/wikideck/wikideck:latest`** (the Gitea container registry) from `ericomeehan/wikideck:latest`. The WikiDeck org is public, so no pull secret is needed. - `WIKIDECK_OIDC_REDIRECT_URIS=https://wikideck.eom.dev/auth/callback,dev.eom.wikideck:/oauth/callback` enables eom.dev login. It matches DevOps/ansible-role-dex#1, which is merged; run the Dex playbook first. - `WIKIDECK_OPERATOR_CONTACT=https://gitea.eom.dev/WikiDeck/wikideck/issues` is the contact in the Wikimedia User-Agent. Change it if you'd rather use a different URL or email. - **Tests:** a render case with extra settings, plus three invalid cases (a reserved name, a lower-case name, a list value). `tests/render.yml` passes: ok=417, failed=0, rescued=35, where the baseline was 32 rescued. The CRLF line endings are kept, so the diff is only the 49 changed lines. ## Deploy order 1. Push the image (built locally from WikiDeck/wikideck `main` dbb89ce): - `gitea.eom.dev/wikideck/wikideck:latest` - `gitea.eom.dev/wikideck/wikideck:night2-dbb89ce` 2. Run the Dex playbook (`DevOps/ansible-role-dex` `playbooks/deploy-eom.yml`). 3. Merge this PR, then run `playbooks/wikideck.yaml`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-18 18:20:29 +00:00
- wikideck_env: extra application settings as NAME: value (max 32),
  validated against role-managed names, rendered into the container env.
- Production playbook: pull gitea.eom.dev/wikideck/wikideck:latest, and set
  WIKIDECK_OIDC_REDIRECT_URIS (eom.dev login via Dex) and
  WIKIDECK_OPERATOR_CONTACT (Wikimedia User-Agent contact).
- Tests: a render case with extra settings and three invalid cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eric merged commit 38998c5959 into main 2026-11-18 18:24:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WikiDeck/ansible-role-wikideck#1