From a3c75bde74e3dec79b6b47638d9adc898faa5c0c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 6 Jun 2026 01:53:24 +0200 Subject: [PATCH] fix(ci): load default.yml inventory vars in swarm deploy step The swarm CI deploy invoked cli.administration.deploy.swarm with only swarm.yml and the runtime extras as -e files. Default-inventory vars (OIDC.CLIENT.SECRET, users, design, ...) were applied only to host_vars/.yml via the provision step's --vars-file argument, so they reached mgr-01 but not the workers. Workers without OIDC.CLIENT defaults rendered roles/web-app-keycloak/templates/import/clients/default.json.j2 into "object of type 'dict' has no attribute 'SECRET'" at the realm import step (CI run 27044129926). Load default.yml as inventory-wide extra-vars before swarm.yml, so the two are merged uniformly across mgr-01 and workers. swarm.yml still overrides any keys it sets (extra-vars merge left-to-right, last wins). Co-Authored-By: Claude Opus 4.7 --- .github/workflows/test-deploy-swarm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-deploy-swarm.yml b/.github/workflows/test-deploy-swarm.yml index b9cfa0aa21..82542684b1 100644 --- a/.github/workflows/test-deploy-swarm.yml +++ b/.github/workflows/test-deploy-swarm.yml @@ -169,6 +169,7 @@ jobs: /tmp/inv/devices.yml \ -p /tmp/inv/.password \ --skip-build --skip-cleanup --skip-backup \ + -e @inventories/development/default.yml \ -e @inventories/development/swarm.yml \ -e @/tmp/swarm-nfs-extras.yml