Skip to content

Commit

Permalink
Merge branch 'ppc64le-cloud:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-zhang authored Jan 12, 2024
2 parents 0c1719d + 640d788 commit ce182b4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions sno/setup-sno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,23 @@ SSH_PUB_KEY_FILE=/root/.sno/id_rsa.pub
export SSH_PUB_KEY="$(cat $SSH_PUB_KEY_FILE)"
export OFFLINE_TOKEN_FILE=/root/.sno/offline-token

#set -x
set -x

CONFIG_DIR="/tmp/${CLUSTER_NAME}-config"
IMAGES_DIR="/var/lib/tftpboot/images/${CLUSTER_NAME}"
WWW_DIR="/var/www/html/${CLUSTER_NAME}"

mkdir -p $IMAGES_DIR $WWW_DIR $CONFIG_DIR

# install required package for agent based installer
dnf install -y /usr/bin/nmstatectl coreos-installer jq

# Download the openshift-install
if [[ ! -z ${INSTALLER_URL} ]]; then
curl ${INSTALLER_URL} -o openshift-install-linux.tar.gz
tar xzvf openshift-install-linux.tar.gz
if [[ ${INSTALL_TYPE} != "sno" ]]; then
# install required package for agent based installer
dnf install -y /usr/bin/nmstatectl coreos-installer jq

if [[ ! -z ${INSTALLER_URL} ]]; then
curl ${INSTALLER_URL} -o openshift-install-linux.tar.gz
tar xzvf openshift-install-linux.tar.gz
fi
fi

sno_prepare_cluster() {
Expand Down

0 comments on commit ce182b4

Please sign in to comment.