ibm-mas/ansible-airgap

Deliver playbook to mirror UDS images

durera opened this issue · 0 comments

Mirroring IBM User Data Services

export CLOUDCTL_OUTPUTDIR=/root/offline/uds

1. Download the User Data Services Cloud Pak archive

cloudctl case save --repo https://github.com/IBM/cloud-pak/raw/master/repo/case --case ibm-uds --version 2.0.1 --outputdir
$CLOUDCTL_OUTPUTDIR

The following command stores and caches the registry credentials in a file on your file system in the $HOME/.airgap/secrets folder.
You must specify your IBM entitlement key in place of in the following command.

cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action configure-creds-airgap
--args "--registry cp.icr.io --user cp --pass <entitlement key>"
You must specify your user id and password for each registry in the following commands.
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action configure-creds-airgap
--args "--registry cp.icr.io --user cp --pass $ENTITLEMENT_KEY"
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action configure-creds-airgap
--args "--registry icr.io --user cp --pass $ENTITLEMENT_KEY"
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action configure-creds-airgap
--args --registry registry.connect.redhat.com --user ******* --pass *******
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action configure-creds-airgap
--args --registry registry.redhat.io --user ******* --pass *******

2. Mirror the IBM User Data Services images

cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-uds-2.0.1.tgz --inventory operatorSetup --action mirror-images --args
--registry $MIRROR_REGISTRY --inputDir $CLOUDCTL_OUTPUTDIR
oc -a /root/auth.json image mirror registry.redhat.io/openshift4/ose-kube-rbac-
proxy@sha256:6cc717fd9ec50ec20d8d6c942fb76576890b8bc02e4735c02772adc1cc3ab892 $MIRROR_REGISTRY/redhat
/openshift4-ose-kube-rbac-proxy:v4.6.0 --insecure
oc -a /root/auth.json image mirror registry.redhat.io/rhel8/postgresql-
12@sha256:1b91c9946f4351bd3688bc538d498e6738cd8a5285af998be6e8dfe218dca6fa $MIRROR_REGISTRY/redhat/rhel8-
postgresql-12:1b91c994 --insecure --filter-by-os=/*