summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
4493016)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I33f6497a9b18b2b071ba384e0ca4063241409b12
#KuD version to use
KUD_VERSION="ed96bca7fe415f1636d82c26af15d7474bdfe876"
#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}"
#Discard existing repo directory
FORCE_REPO_UPDATE="${FORCE_REPO_UPDATE:-true}"
clone_repository ${KUDPATH} ${KUDREPO} ${KUD_VERSION}
}
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
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
+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"
function fetch_image {
if [[ "${BM_IMAGE_URL}" && "${BM_IMAGE}" ]]; then
mkdir -p "${IRONIC_DATA_DIR}/html/images"
install_kustomize
install_clusterctl
install_flux_cli
install_kustomize
install_clusterctl
install_flux_cli