diff --git a/ibm/mas_devops/roles/mirror_ocp/README.md b/ibm/mas_devops/roles/mirror_ocp/README.md index 5dde08a5b..813a27b0f 100644 --- a/ibm/mas_devops/roles/mirror_ocp/README.md +++ b/ibm/mas_devops/roles/mirror_ocp/README.md @@ -7,25 +7,29 @@ Four actions are supported: - `direct` Directly mirror content to your target registry - `to-filesystem` Mirror content to the local filesystem - `from-filesystem` Mirror content from the local filesystem to your target registry -- `install-catalogs` Install CatalogSources for the mirrored content. -Two **CatalogSources** are created by the `install-catalogs` action in the `openshift-marketplace` namespace, containing the following content: +Three **Catalogs** are mirrored, containing the following content: ### certified-operator-index - crunchy-postgres-operator (required by ibm.mas_devops.uds role) +- gpu-operator-certified (required by ibm.mas_devops.nvidia_gpu role) +- kubeturbo-certified (required by ibm.mas_devops.kubeturbo role) +- ibm-metrics-operator (required by ibm.mas_devops.dro role) +- ibm-data-reporter-operator (required by ibm.mas_devops.dro role) +- redhat-marketplace-operator (required by ibm.mas_devops.dro role) + +### community-operator-index +- grafana-operator (required by ibm.mas_devops.cluster_monitoring role) +- opentelemetry-operator (required by ibm.mas_devops.cluster_monitoring role) +- strimzi-kafka-operator (required by ibm.mas_devops.kafka role) ### redhat-operator-index - amq-streams (required by ibm.mas_devops.kafka role) - openshift-pipelines-operator-rh (required by the MAS CLI) - -!!! note - We are limited to the content we can support mirroring for today due to bug with Red Hat's support for OCI images, this prevents the mirroring of the following packages (which are all optional dependencies): - - - **kubeturbo-certified** - - **grafana-operator** - - **opentelemetry-operator** - - For more information refer to [solution 6997884](https://access.redhat.com/solutions/6997884) and [CFE 780](https://issues.redhat.com/browse/CFE-780). +- nfd (required by ibm.mas_devops.nvidia_gpu role) +- aws-efs-csi-driver-operator (required by ibm.mas_devops.ocp_efs role) +- local-storage-operator (required by ibm.mas_devops.ocs role) +- odf-operator (required by ibm.mas_devops.ocs role) Requirements @@ -136,9 +140,9 @@ Example Playbook ```yaml - hosts: localhost vars: - registry_public_host: myocp-5f1320191125833da1cac8216c06779e-0000.us-south.containers.appdomain.cloud - registry_public_port: 32500 - registry_username: admin + registry_public_host: myregistry.mycompany.com + registry_public_port: 5000 + registry_username: user1 registry_password: 8934jk77s862! # Not a real password, don't worry security folks mirror_mode: direct diff --git a/ibm/mas_devops/roles/mirror_ocp/templates/imagesetconfiguration.yml.j2 b/ibm/mas_devops/roles/mirror_ocp/templates/imagesetconfiguration.yml.j2 index 78bd616aa..6e32488eb 100644 --- a/ibm/mas_devops/roles/mirror_ocp/templates/imagesetconfiguration.yml.j2 +++ b/ibm/mas_devops/roles/mirror_ocp/templates/imagesetconfiguration.yml.j2 @@ -30,6 +30,16 @@ mirror: - name: kubeturbo-certified # Required by ibm.mas_devops.kubeturbo role channels: - name: stable + - name: ibm-metrics-operator # Required by ibm.mas_devops.dro role + channels: + - name: stable + - name: ibm-data-reporter-operator # Required by ibm.mas_devops.dro role + channels: + - name: stable + - name: redhat-marketplace-operator # Required by ibm.mas_devops.dro role + channels: + - name: stable + # community-operators - catalog: registry.redhat.io/redhat/community-operator-index:v{{ ocp_release }} diff --git a/ibm/mas_devops/roles/ocp_contentsourcepolicy/templates/redhat-catalogs.yml.j2 b/ibm/mas_devops/roles/ocp_contentsourcepolicy/templates/redhat-catalogs.yml.j2 index 7ef6bef79..63ab5cbff 100644 --- a/ibm/mas_devops/roles/ocp_contentsourcepolicy/templates/redhat-catalogs.yml.j2 +++ b/ibm/mas_devops/roles/ocp_contentsourcepolicy/templates/redhat-catalogs.yml.j2 @@ -100,3 +100,9 @@ spec: - mirrors: - {{ registry_private_url }}/turbonomic source: registry.connect.redhat.com/turbonomic + - mirrors: + - {{ registry_private_url }}/rh-marketplace + source: quay.io/rh-marketplace + - mirrors: + - {{ registry_private_url }}/rh-marketplace + source: registry.connect.redhat.com/rh-marketplace