X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Flib%2Fcommon.sh;h=809e67f32fb251a5de5935acce15e3231edf99ce;hb=ed9305ea85bf6f5e5722e2bfd962c7e6aad5c645;hp=0de84060e121c73963ebff59b70593d2da3b4b20;hpb=8d37977a52baafada063ce4bc1170274e8049e11;p=icn.git diff --git a/env/lib/common.sh b/env/lib/common.sh index 0de8406..809e67f 100755 --- a/env/lib/common.sh +++ b/env/lib/common.sh @@ -7,8 +7,8 @@ IRONIC_INTERFACE=${IRONIC_INTERFACE:-} IRONIC_PROVISIONING_INTERFACE=${IRONIC_PROVISIONING_INTERFACE:-"provisioning"} IRONIC_IPMI_INTERFACE=${IRONIC_IPMI_INTERFACE:-} IRONIC_PROVISIONING_INTERFACE_IP=${IRONIC_PROVISIONING_INTERFACE_IP:-"172.22.0.1"} -BM_IMAGE_URL=${BM_IMAGE_URL:-"https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img"} -BM_IMAGE=${BM_IMAGE:-"bionic-server-cloudimg-amd64.img"} +BM_IMAGE_URL=${BM_IMAGE_URL:-"https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"} +BM_IMAGE=${BM_IMAGE:-"focal-server-cloudimg-amd64.img"} #Baremetal operator repository URL BMOREPO="${BMOREPO:-https://github.com/metal3-io/baremetal-operator.git}" @@ -24,6 +24,13 @@ KUDPATH="/opt/src/github.com/onap/multicloud-k8s" #KuD version to use KUD_VERSION="ed96bca7fe415f1636d82c26af15d7474bdfe876" +#EMCO repository URL +EMCOREPO="${EMCOREPO:-https://github.com/open-ness/EMCO.git}" +#Path to clone the EMCO repo +EMCOPATH="/opt/src/github.com/open-ness/EMCO" +#EMCO version to use +EMCO_VERSION="openness-21.03.06" + #Discard existing repo directory FORCE_REPO_UPDATE="${FORCE_REPO_UPDATE:-true}" @@ -207,6 +214,10 @@ function clone_kud_repository { clone_repository ${KUDPATH} ${KUDREPO} ${KUD_VERSION} } +function clone_emco_repository { + clone_repository ${EMCOPATH} ${EMCOREPO} ${EMCO_VERSION} +} + function install_kustomize { curl -sL "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" -o kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz tar xzf kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz --no-same-owner @@ -228,6 +239,12 @@ function install_flux_cli { flux --version } +function install_emcoctl { + clone_emco_repository + make -C ${EMCOPATH}/src/tools/emcoctl + sudo install -o root -g root -m 0755 ${EMCOPATH}/bin/emcoctl/emcoctl /usr/local/bin/emcoctl +} + function fetch_image { if [[ "${BM_IMAGE_URL}" && "${BM_IMAGE}" ]]; then mkdir -p "${IRONIC_DATA_DIR}/html/images"