Skip to content

Add ROSA HCP as deployment method for openshift clusters#156

Open
wkulhanek wants to merge 1 commit into
mainfrom
rosa
Open

Add ROSA HCP as deployment method for openshift clusters#156
wkulhanek wants to merge 1 commit into
mainfrom
rosa

Conversation

@wkulhanek

@wkulhanek wkulhanek commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ROSA (Red Hat OpenShift Service on AWS) Hosted Control Planes as a new host_ocp4_deploy_installation_method: rosa for the openshift-cluster config
  • New host_ocp4_rosa_install role: installs ROSA CLI, Terraform, creates VPC networking via terraform-vpc-example, deploys ROSA HCP cluster, creates admin user, fetches kubeconfig, sets standard OpenShift facts (openshift_api_url, openshift_console_url, openshift_cluster_ingress_domain)
  • New host_ocp4_rosa_destroy role: deletes ROSA cluster and Terraform VPC resources from bastion
  • Idempotent: detects existing clusters (any state), resumes in-progress installs, reconnects to ready clusters
  • SSH-resilient: long wait loops run as async shell scripts on bastion to survive transient SSH drops
  • Integrates with existing config lifecycle: pre_infra assertions, post_software API readiness check, destroy flow, CSR approval skip

Add ROSA (Red Hat OpenShift Service on AWS) Hosted Control Planes as a
new installation method (host_ocp4_deploy_installation_method: rosa)
for the openshift-cluster config.

New roles:
- host_ocp4_rosa_install: Installs ROSA CLI, Terraform, creates VPC
  networking, deploys ROSA HCP cluster, sets up admin access and
  kubeconfig, queries standard OpenShift cluster facts
- host_ocp4_rosa_destroy: Deletes ROSA cluster and Terraform VPC
  resources on bastion

Modified files:
- pre_infra.yml: Skip pull_secret check, add rosa_token assertion
- post_software.yml: Skip credential cleanup, add API readiness check
- destroy_env.yml: Add ROSA destroy play on bastion
- lifecycle_hook_post_start.yml: Skip CSR approval for ROSA
- default_vars.yml: Add ROSA configuration variables

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wkulhanek wkulhanek requested a review from a team as a code owner May 23, 2026 06:30
@wkulhanek wkulhanek changed the title Add ROSA HCP as deployment method Add ROSA HCP as deployment method for openshift clusters May 23, 2026
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.

1 participant