Deliver playbook to mirror MAS images
Closed this issue · 0 comments
Automate the following manual instructions ... for now don't worry about making the version configurable .. we just want a playbook that mirrors the latest GA release of MAS (8.7.2) & each application.
We should end up with a number of playbooks as below:
- mirror_sls @durera
- mirror_truststore_mgr @durera
- mirror_mas_core @durera
- mirror_mas_assist
- mirror_mas_hputilities
- mirror_mas_iot
- mirror_mas_manage
- mirror_mas_monitor
- mirror_mas_predict
- mirror_mas_mso
- mirror_mas_visualinspection
Use the existing mirror_sls
, mirror_truststore_mgr
, and mirror_mas_core
and playbooks as a starting point .. This should be a few hours work, primarily in time spent testing.
Mirroring IBM Maximo Application Suite
This includes MAS, TrustStore Manager, SLS, Manage and others.
export CLOUDCTL_OUTPUTDIR=/root/offline/ibm-mas
export ENTITLEMENT_KEY=<your_key>
Reference:
- https://www.ibm.com/docs/en/mas86/8.6.0?topic=installing-maximo-application-suite-from-passport-advantage
- https://www.ibm.com/docs/en/mas84/8.4.0?topic=installing-maximo-application-suite
cloudctl case save --repo https://github.com/IBM/cloud-pak/raw/master/repo/case --case ibm-mas --version 8.6.1 --outputdir
$CLOUDCTL_OUTPUTDIR
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-mas-8.6.1.tgz --inventory ibmMasSetup --action configure-creds-airgap
--args "--registry cp.icr.io --user cp --pass $ENTITLEMENT_KEY"
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-mas-8.6.1.tgz --inventory ibmMasSetup --action configure-creds-airgap
--args "--registry icr.io --user cp --pass $ENTITLEMENT_KEY"
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/ibm-mas-8.6.1.tgz --inventory ibmMasSetup --action configure-creds-airgap
--args "--registry $MIRROR_REGISTRY --user $REGISTRY_USERNAME --pass $REGISTRY_PASSWORD"
Mirror IBM TrustStore Manager Images
mkdir $CLOUDCTL_OUTPUTDIR/TSM/
mv $CLOUDCTL_OUTPUTDIR/ibm-truststore-mgr-* $CLOUDCTL_OUTPUTDIR/TSM/
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/TSM/ibm-truststore-mgr-1.2.2.tgz --inventory ibmTrustStoreMgrSetup
--action mirror-images --args "--registry $MIRROR_REGISTRY --inputDir $CLOUDCTL_OUTPUTDIR/TSM"
MIrror IBM SLS Images
mkdir $CLOUDCTL_OUTPUTDIR/SLS/
mv $CLOUDCTL_OUTPUTDIR/ibm-sls-* $CLOUDCTL_OUTPUTDIR/SLS/
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/SLS/ibm-sls-3.2.4.tgz --inventory ibmSlsSetup --action mirror-images --args
"--registry $MIRROR_REGISTRY --inputDir $CLOUDCTL_OUTPUTDIR/SLS"
Mirror IBM Maximo Application Suite Images
mkdir $CLOUDCTL_OUTPUTDIR/MAS/
mv $CLOUDCTL_OUTPUTDIR/ibm-mas-8* $CLOUDCTL_OUTPUTDIR/MAS/
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/MAS/ibm-mas-8.6.1.tgz --inventory ibmMasSetup --action mirror-images
--args "--registry $MIRROR_REGISTRY --inputDir $CLOUDCTL_OUTPUTDIR/MAS"
Mirror IBM Manage Images
mkdir $CLOUDCTL_OUTPUTDIR/MNG/
mv $CLOUDCTL_OUTPUTDIR/ibm-mas-manage* $CLOUDCTL_OUTPUTDIR/MNG/
cloudctl case launch --case $CLOUDCTL_OUTPUTDIR/MNG/ibm-mas-manage-8.2.1.tgz --inventory ibmMasManageSetup --action
mirror-images --args "--registry $MIRROR_REGISTRY --inputDir $CLOUDCTL_OUTPUTDIR/MNG"
NOTE: Additionally... If you are transferring the mirror images to a site without internet connectivity, then you will also need to
take
• https://github.com/redhat-developer/service-binding-operator/releases/download/v0.8.0/release.yaml
• https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.yaml
And the downloaded case bundles, such as
• ibm-cp-common-services-1.9.0.tgz
• ibm-uds-2.0.1.tgz
• ibm-truststore-mgr-1.2.2.tgz
• ibm-sls-3.2.4.tgz
• ibm-mas-8.6.1.tgz
• ibm-mas-manage-8.2.1.tgz
• other case bundles needed for deployment.