VM→OpenShift build/run pipeline rework #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rework/vm-to-openshift"
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?
Helm bundles, generated tests, MTA closed loop, post-merge build_run (AAP JT 133 verified green end-to-end). See docs/E2E_ACCEPTANCE.md.
plugins/module_utils/mta_client.py — MTA hub HTTP client. Owns Keycloak auth, per-host token caching at ~/.cache/migration-mta/<host>.json, and a 401-retry wrapper. One construct per call site replaces the per-task uri: + register: + set_fact: triplet. plugins/modules/mta_resource.py — idempotent CRUD across kinds {tag_category, tag, business_service, identity, application, stakeholder}. GET-by-name + POST-if-missing + PUT-if-different + 409 fallback in Python, once, for every kind. The children: arg on tag_category replaces phases/ 3_tags.yml's per-category create loops (lands in A2.b). Wired into: - roles/mta_publish/tasks/phases/2_tag_categories.yml 96 lines of list+diff+POST+relist → 58 lines of one mta_resource loop - roles/mta_publish/tasks/phases/4_business_service.yml 83 lines of list+match+create+409-recheck → 33 lines of one mta_resource call Both new phases still set the legacy _mta_cat_* / _mta_business_service_id facts so phase 3 + upsert_application keep working unchanged. Phase 1's _mta_token flow is preserved for downstream phases that still call uri: directly; A2.b retires it. Also: fix stale filter_plugins path in ansible.cfg (generate_manifests + deep_inspect roles no longer exist; the python_literal filter now lives in roles/discover/filter_plugins/). After installing the collection (ansible-galaxy collection install --force .) the existing tests/test-publish-mta.yml exercises the new module end-to-end against the anaeem MTA hub. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>