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
Push the image (built locally from WikiDeck/wikideck main dbb89ce):
gitea.eom.dev/wikideck/wikideck:latest
gitea.eom.dev/wikideck/wikideck:night2-dbb89ce
Run the Dex playbook (DevOps/ansible-role-dexplaybooks/deploy-eom.yml).
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)
- 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 main2026-11-18 18:24:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 asNAME: value, at most 32. The role validates them:PORT,PUBLIC_ORIGIN,WIKIDECK_MAINNET_*, …) are rejectedThe 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):gitea.eom.dev/wikideck/wikideck:latest(the Gitea container registry) fromericomeehan/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/callbackenables 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/issuesis 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.ymlpasses: 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
maindbb89ce):gitea.eom.dev/wikideck/wikideck:latestgitea.eom.dev/wikideck/wikideck:night2-dbb89ceDevOps/ansible-role-dexplaybooks/deploy-eom.yml).playbooks/wikideck.yaml.🤖 Generated with Claude Code