Update default image versions for CentOS and RHEL

Update new default version for CentOS images to 9-stream and for RHEL
to 9.

Change-Id: I8072e000fac02166d989e7fdb358c4dc34fa1bfa
This commit is contained in:
Tom Weininger
2022-05-30 12:38:38 +02:00
parent 6253560d22
commit f444fa7c4d
3 changed files with 14 additions and 6 deletions

View File

@@ -69,8 +69,9 @@ running the tests:
Usage Usage
===== =====
This script and associated elements will build Amphora images. Current support This script and associated elements will build Amphora images. Current support
is with an Ubuntu base OS and HAProxy. The script can use Fedora is with an Ubuntu and CentOS Stream base OS and HAProxy.
The script can use RHEL and Fedora
as a base OS but these will not initially be tested or supported. as a base OS but these will not initially be tested or supported.
As the project progresses and/or the diskimage-builder project adds support As the project progresses and/or the diskimage-builder project adds support
for additional base OS options they may become available for Amphora images. for additional base OS options they may become available for Amphora images.
@@ -101,7 +102,7 @@ Command syntax:
[-a i386 | **amd64** | armhf | aarch64 | ppc64le ] [-a i386 | **amd64** | armhf | aarch64 | ppc64le ]
[-b **haproxy** ] [-b **haproxy** ]
[-c **~/.cache/image-create** | <cache directory> ] [-c **~/.cache/image-create** | <cache directory> ]
[-d **focal**/**8** | <other release id> ] [-d **focal**/**9-stream**/**9** | <other release id> ]
[-e] [-e]
[-f] [-f]
[-g **repository branch** | stable/train | stable/stein | ... ] [-g **repository branch** | stable/train | stable/stein | ... ]

View File

@@ -23,7 +23,7 @@ usage() {
echo " [-a i386 | **amd64** | armhf | aarch64 | ppc64le]" echo " [-a i386 | **amd64** | armhf | aarch64 | ppc64le]"
echo " [-b **haproxy** ]" echo " [-b **haproxy** ]"
echo " [-c **~/.cache/image-create** | <cache directory> ]" echo " [-c **~/.cache/image-create** | <cache directory> ]"
echo " [-d **focal**/**8** | <other release id> ]" echo " [-d **focal**/**9-stream**/**9** | <other release id> ]"
echo " [-e]" echo " [-e]"
echo " [-f]" echo " [-f]"
echo " [-g **repository branch** | stable/train | stable/stein | ... ]" echo " [-g **repository branch** | stable/train | stable/stein | ... ]"
@@ -235,8 +235,10 @@ AMP_BASEOS=${AMP_BASEOS:-"ubuntu-minimal"}
if [ "$AMP_BASEOS" = "ubuntu-minimal" ]; then if [ "$AMP_BASEOS" = "ubuntu-minimal" ]; then
export DIB_RELEASE=${AMP_DIB_RELEASE:-"focal"} export DIB_RELEASE=${AMP_DIB_RELEASE:-"focal"}
elif [ "${AMP_BASEOS}" = "centos-minimal" ] || [ "${AMP_BASEOS}" = "rhel" ]; then elif [ "${AMP_BASEOS}" = "rhel" ]; then
export DIB_RELEASE=${AMP_DIB_RELEASE:-"8"} export DIB_RELEASE=${AMP_DIB_RELEASE:-"9"}
elif [ "${AMP_BASEOS}" = "centos-minimal" ]; then
export DIB_RELEASE=${AMP_DIB_RELEASE:-"9-stream"}
elif [ "${AMP_BASEOS}" = "fedora" ]; then elif [ "${AMP_BASEOS}" = "fedora" ]; then
export DIB_RELEASE=${AMP_DIB_RELEASE:-"28"} export DIB_RELEASE=${AMP_DIB_RELEASE:-"28"}
fi fi

View File

@@ -0,0 +1,5 @@
---
upgrade:
- |
diskimage-create defaults now to distribution release 9 when selecting RHEL
as base OS and to release 9-stream when selecting CentOS as base OS.