Skip to content

Seed AO CI/CD Pipeline with Gitea + OpenFlake shared services - #393

Merged
rlopez133 merged 34 commits into
ansible:mainfrom
IPvSean:feature/ao-cicd-pipeline-seed
Nov 6, 2026
Merged

rlopez133 merged 34 commits into
ansible:mainfrom
IPvSean:feature/ao-cicd-pipeline-seed

Conversation

@IPvSean

@IPvSean IPvSean commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Seed the CI/CD Pipeline demo from ansible-tmm/aap-orchestrator-demos into AO Install (infrastructure/ao/demos.yml + JT/credential wiring).
  • Extend Provision Gitea to bootstrap inventory-service, act_runner, and upsert a Gitea Controller credential.
  • Extend OpenFlake install to upsert an OpenFlake Controller credential (SN_* / OPENFLAKE_* injectors).
  • Add OpenFlake to Infrastructure | AWS - Deploy Shared Services so one shared-services run provisions Mattermost + Gitea (AWS) and OpenFlake (OpenShift) together.

Test plan

  • Run infrastructure demo setup; confirm OpenFlake + Gitea credential types/credentials exist
  • Launch Deploy Shared Services; confirm OpenFlake starts immediately and Mattermost/Gitea follow VPC+keypair
  • Confirm Controller OpenFlake and Gitea credentials are upserted from job output values
  • Run AO Install; confirm cicd-pipeline workflow imports and soft-warns if deps missing
  • Optional E2E: Reset Demo → Simulate Lightwell PR → merge in Gitea → approve in AO → OpenFlake CHG updates

IPvSean and others added 4 commits November 4, 2026 09:35
Wire cicd-pipeline into AO Install with soft-warn deps, extend Provision
Gitea for Actions/runner/inventory-service + credential write-back, and
publish OpenFlake credentials so Shared Services labs can demo the
pipeline without wiping the forge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Start OpenFlake on OpenShift in parallel with AWS VPC/keypair so one shared-services run also provisions ITSM and upserts the OpenFlake credential for AO CI/CD.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Move AWS inventory sync before the human-facing credential publish
result so Controllers job output ends on that summary.

Co-authored-by: Cursor <cursoragent@cursor.com>
@IPvSean
IPvSean force-pushed the feature/ao-cicd-pipeline-seed branch from 9b42918 to b24b53f Compare November 4, 2026 14:35
IPvSean and others added 25 commits November 4, 2026 09:47
Quote the on key and add a document start so yaml[truthy] and
yaml[document-start] pass on the seeded inventory-service CI file.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use /admin/runners/registration-token, recreate the Gitea container so
Actions env applies on re-runs, and surface HTTP status when the token
lookup fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pin Actions in app.ini, pass GITEA_RUNNER_REGISTRATION_TOKEN into Gitea
and act_runner, and skip the admin registration-token endpoint that was
returning 403 even after container recreate.

Co-authored-by: Cursor <cursoragent@cursor.com>
During AO workflow sync, inject input_schema defaults for the
lightwell-ci-cd trigger, building ci_build_url from the Controller
Gitea host/port/owner/repo so mock runs work without a prior webhook.

Co-authored-by: Cursor <cursoragent@cursor.com>
Vendor app.py, unit tests, and the CI workflow so Provision Gitea
stands up the vulnerable aiohttp 3.9.0 repo Reset Demo / Simulate
Lightwell PR expect for repeatable CI/CD Pipeline demos.

Co-authored-by: Cursor <cursoragent@cursor.com>
Override upstream simulate default (3.9.2.rhlw) via JT extra_vars so the
demo only adds the backport suffix to the same 3.9.0 baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
Shared Services / Provision Gitea now install inventory-service dev and
prod runtimes on aws_gitea automatically; add a standalone JT for
refreshing apps without re-provisioning the forge.

Co-authored-by: Cursor <cursoragent@cursor.com>
When the Gitea credential is attached and provisioned, seed writes the
lightwell-ci-cd webhook URL into inventory-service Actions secrets.

Co-authored-by: Cursor <cursoragent@cursor.com>
Long AAP JT provisioning can outlive the initial JWT, which caused a
401 when listing workflows after Install.

Co-authored-by: Cursor <cursoragent@cursor.com>
Webhook triggers require authorized_service_account_ids before publish;
seed creates the APD CI/CD account, injects it, publishes the workflow,
and writes Gitea OAuth Actions secrets for authenticated webhook calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
Students typically read Install output, not the nested Shared Services /
OpenFlake job where the chart-generated password was previously shown.

Co-authored-by: Cursor <cursoragent@cursor.com>
The password was easy to miss above the credential-publish result that
students scroll to at the bottom of the job.

Co-authored-by: Cursor <cursoragent@cursor.com>
Those steps call OpenFlake for change work notes; without the credential
inject, openflake_url stays empty and the uri module fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
Defaults to CHG0034907 so presenters can clear OpenFlake notes and
reopen the ticket before re-running the AO pipeline.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Same UX issue as OpenFlake: credential publish was the last thing
students saw when scrolling to the bottom of the job.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use trigger-based close/rollback notes and agentic schema defaults so empty LiteMaaS/qwen content cannot block AAP steps; set 48h AO sessions; lead Path 2 with Deploy Shared Services.

Co-authored-by: Cursor <cursoragent@cursor.com>
Point docker_host/DOCKER_HOST at /run/podman/podman.sock (same path in the container), run privileged, and accept current registration log text so Provision Gitea no longer dies after a successful register. Also clean Path 2 markdown that pipes/backticks mangled in the docs site.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Self-referential ao_session_* defaults blew up k8s patches on Install; use plain 48h/60m defaults instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bare # inside {{ }} is invalid Jinja and broke AO Install when seeding disk-utilization.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop owner/environment prompts for APD one-size-fits-all (fixed apd/Prod), and expand the region dropdown to APD-enabled AWS regions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Print Gitea before OpenFlake with login or an explicit not-provisioned line so a failed Shared Services Gitea node is obvious even when job output truncates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pass ACCESS_TOKEN_EXPIRE_MINUTES=2880 via Helm extraEnv so demo sessions match AO instead of the upstream 60m default.

Co-authored-by: Cursor <cursoragent@cursor.com>
IPvSean and others added 5 commits November 6, 2026 11:47
Publish a password-gated page with Mattermost, Gitea, and OpenFlake
logins so presenters have one URL after Deploy Shared Services.

Co-authored-by: Cursor <cursoragent@cursor.com>
Modern buckets reject public-read ACLs; rely on the bucket policy like the VPC report role.

Co-authored-by: Cursor <cursoragent@cursor.com>
Hyphenated s3-website-<region> does not resolve in us-east-2.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ansible was rendering the ciphertext as a Python dict repr; emit real JSON via to_json.

Co-authored-by: Cursor <cursoragent@cursor.com>
crypto.subtle is unavailable on the HTTP s3-website endpoint, so the password gate always failed there.

Co-authored-by: Cursor <cursoragent@cursor.com>
@IPvSean
IPvSean requested a review from rlopez133 November 6, 2026 19:54
@rlopez133
rlopez133 merged commit 2f54493 into ansible:main Nov 6, 2026
1 check passed
@IPvSean
IPvSean deleted the feature/ao-cicd-pipeline-seed branch November 9, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants