For CloudBlue Commerce version 21, a VM is required to run python scripts that use poaupdater
and have access to OSS and BSS DB credentials in the format that poaupdater
understands. That is, in the same format that was used on the OA MN before upgrading to version 21.
To create this environment, complete the following steps:
In the VM, create the
/etc/yum.repos.d/pa-central.repo
file with the following content:[pa-central-repo] name=PA Central YUM repo for RHEL $releasever baseurl=https://download.automation.odin.com/cb/20.5/repo/RHEL/$releasever/ gpgcheck=0
Create the
/etc/yum.repos.d/epel.repo
file with the following content:[epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Install
poaupdater
:yum install https://download.platform.cloudblue.com/cb/support/poaupdater-21.3.0-10/poaupdater-21.3.0-10.noarch.rpm
Install additional packages:
yum install python-configparser postgresql11-contrib postgresql11-libs postgresql11-server postgresql11 --nogpgcheck
If you use AKS, install Azure CLI 2.0 as described at https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-yum?view=azure-cli-latest
If you use AKS, connect Azure AKS using instructions at https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-get-credentials
Install
kubectl
.For AKS, use these instructions: https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli
For an on-premises environment, create the
/etc/yum.repos.d/kubernetes.repo
file with the following content:[kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
and install
kubectl
usingyum
.
If you use an on-premises Kubernetes cluster, copy the admin configuration file to
~/.kube/config
:mkdir /root/~.kube copy /etc/kubernetes/admin.conf from kubernetes master node to /root/~.kube/config chmod 600 /root/~.kube/config
Install Help from https://github.com/helm/helm/releases/tag/v3.5.4
Set up
poaupdater
configuration files using thegenerate_configs.py
script, as follows:python generate_configs.py --namespace <NAMESPACE>
Where
<NAMESPACE>
is the Kubernetes namespace where the CNC stack is located.This script generates configuration files with DB and OpenAPI credentials that
poaupdaer
uses:/usr/local/pem/etc/Kernel.conf
/usr/local/pem/etc/pleskd.props
/usr/local/pem/etc/odbc.ini
Also, it generates the
/usr/local/pem/APS/certificates/poa.pem
certificate for APS BUS.