MAS DevOps Ansible Collection Ansible CLI
Edit on GitHub
Home Ansible Automation Platform OCP Install Cloud Pak For Data Install Core Add AIBroker Add IoT Add Manage Add Monitor Add Optimizer Add Predict Add Visual Inspection Update Upgrade Uninstall Core Backup & Restore ocp_cluster_monitoring ocp_config ocp_deprovision ocp_efs ocp_github_oauth ocp_login ocp_node_config ocp_provision ocp_roks_upgrade_registry_storage ocp_upgrade ocp_verify appconnect aws_bucket_access_point aws_documentdb_user aws_policy aws_route53 aws_user_creation aws_vpc cert_manager cis common-services configure_manage_eventstreams cos cos_bucket cp4d_admin_pwd_update cp4d cp4d_service db2 dro eck grafana ibm_catalogs kafka nvidia_gpu mongodb ocs sls turbonomic uds mirror_case_prepare mirror_extras_prepare mirror_images mirror_ocp ocp_idms ocp_simulate_disconnected_network registry suite_app_config suite_app_install suite_app_uninstall suite_app_upgrade suite_app_rollback suite_app_backup_restore suite_certs suite_config suite_db2_setup_for_manage suite_dns suite_install suite_manage_attachments_config suite_manage_birt_report_config suite_manage_bim_config suite_manage_customer_files_config suite_manage_imagestitching_config suite_manage_import_certs_config suite_manage_load_dbc_scripts suite_manage_logging_config suite_manage_pvc_config suite_uninstall suite_upgrade suite_rollback suite_verify suite_backup_restore ansible_version_check entitlement_key_rotation gencfg_jdbc gencfg_watsonstudio gencfg_workspace gencfg_mongo

mirror_ocp¤

This role supports mirroring the Red Hat Platform and selected content from the Red Hat operator catalogs. Only content in the Red Hat catalogs directly used by IBM Maximo Application Suite is mirrored.

Four actions are supported:

Three Catalogs are mirrored, containing the following content:

certified-operator-index¤

  1. gpu-operator-certified (required by ibm.mas_devops.nvidia_gpu role)
  2. kubeturbo-certified (required by ibm.mas_devops.kubeturbo role)
  3. ibm-metrics-operator (required by ibm.mas_devops.dro role)
  4. ibm-data-reporter-operator (required by ibm.mas_devops.dro role)

community-operator-index¤

  1. grafana-operator (required by ibm.mas_devops.grafana role)
  2. opentelemetry-operator (required by ibm.mas_devops.opentelemetry role)
  3. strimzi-kafka-operator (required by ibm.mas_devops.kafka role)

redhat-operator-index¤

  1. amq-streams (required by ibm.mas_devops.kafka role)
  2. openshift-pipelines-operator-rh (required by the MAS CLI)
  3. nfd (required by ibm.mas_devops.nvidia_gpu role)
  4. aws-efs-csi-driver-operator (required by ibm.mas_devops.ocp_efs role)
  5. local-storage-operator (required by ibm.mas_devops.ocs role)
  6. odf-operator (required by ibm.mas_devops.ocs role)
  7. openshift-cert-manager-operator (required by ibm.mas_devops.cert_manager role)
  8. lvms-operator (not directly used, but often used in SNO environments)

Requirements¤

Role Variables¤

mirror_mode¤

Set the action to perform (direct, to-filesystem, from-filesystem)

Role Variables - Mirror Actions¤

mirror_working_dir¤

Set the working directory for the mirror operations

mirror_redhat_platform¤

Enable mirroring of the Red Hat platform images.

mirror_redhat_operators¤

Enable mirroring of selected content from the Red Hat operator catalogs.

redhat_pullsecret¤

Path to your Red Hat pull secret, available from: https://console.redhat.com/openshift/install/pull-secret.

Role Variables - OpenShift Version¤

ocp_release¤

The Red Hat release you are mirroring content for, e.g. 4.16.

ocp_min_version¤

The minimum version of the Red Hat release to mirror platform content for, e.g. 4.16.11.

ocp_max_version¤

The maximimum version of the Red Hat release to mirror platform content for, e.g. 4.16.20.

Role Variables - Target Registry¤

registry_public_host¤

The public hostname for the target registry

registry_public_port¤

The public port number for the target registry

registry_prefix_redhat¤

The prefix used for the target registry. The images will not be mirrored to the registry at this time but will define the final destination in the form: {host}[:{port}]/{prefix}/{reponame}

registry_username¤

The username for the target registry.

registry_password¤

The password for the target registry.

Example Playbook¤

- hosts: localhost
  vars:
    registry_public_host: myregistry.mycompany.com
    registry_public_port: 5000
    registry_prefix_redhat: "ocp416"
    registry_username: user1
    registry_password: 8934jk77s862!  # Not a real password, don't worry security folks

    mirror_mode: direct
    mirror_working_dir: /tmp/mirror
    mirror_redhat_platform: false
    mirror_redhat_operators: true

    ocp_release: 4.16
    redhat_pullsecret: ~/pull-secret.json

  roles:
    - ibm.mas_devops.mirror_ocp

License¤

EPL-2.0