Skip to content

Commit

Permalink
OPENSHIFTP-133: CentOS-Stream-8 is EOL, switching to CentOS-Stream-9
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Jun 13, 2024
1 parent 58a072a commit c7f8a70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/cicd-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ done
echo "SERVICE_STATE: ${SERVICE_STATE}"

# 5. CREATE CENTOS IMAGE
# The CentOS-Stream-8 image is stock-image on PowerVS.
# The Centos-Stream-9 image is stock-image on PowerVS.
# This image is available across all PowerVS workspaces.
# The VMs created using this image are used in support of ignition on PowerVS.
echo "Creating the Centos Stream Image"
echo "PowerVS Target CRN is: ${CRN}"
ibmcloud pi workspace target "${CRN}"
ibmcloud pi image list
ibmcloud pi image create CentOS-Stream-8 --json
ibmcloud pi image create Centos-Stream-9 --json
echo "Import image status is: $?"

# This CRN is useful when manually destroying.
Expand Down
4 changes: 2 additions & 2 deletions scripts/create-var-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ COREOS_NAME=$(echo ${COREOS_FILE} | sed 's|\.ova\.gz||' | tr '.' '-' | sed 's|-0
# RHEL_IMAGE_NAME
if [ -z "${RHEL_IMAGE_NAME}" ]
then
echo "WARNING: RHEL_IMAGE_NAME is not set, defaulting to 'CentOS-Stream-8'"
RHEL_IMAGE_NAME="CentOS-Stream-8"
echo "WARNING: RHEL_IMAGE_NAME is not set, defaulting to 'Centos-Stream-9'"
RHEL_IMAGE_NAME="Centos-Stream-9"
fi
OVERRIDE_PREFIX=$(${IBMCLOUD} pi workspace list 2>&1 | grep $POWERVS_SERVICE_INSTANCE_ID | awk '{print $NF}')
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ variable "bastion_health_status" {
}
}

# Centos default is CentOS-Stream-8
# Centos default is Centos-Stream-9
variable "rhel_image_name" {
type = string
description = "Name of the RHEL or Centos image that you want to use for the bastion node"
default = "CentOS-Stream-8"
default = "Centos-Stream-9"
}

variable "rhel_username" {
Expand Down

0 comments on commit c7f8a70

Please sign in to comment.