- focal
- centos7
- centos8
+ - centos9
- jessie
- stretch
- buster
regex: (mimic|nautilus|octopus|pacific|quincy)
label: '${BRANCH}'
- condition-kind: regex-match
- regex: (xenial|bionic|focal|centos7|centos8|buster|bullseye)
+ regex: (xenial|bionic|focal|centos7|centos8|centos9|buster|bullseye)
label: '${DIST}'
on-evaluation-failure: dont-run
steps:
fi
export LC_ALL=C # the following is vulnerable to i18n
-$SUDO yum install -y redhat-lsb-core yum-utils
+$SUDO yum install -y yum-utils
get_rpm_dist
execution-strategy:
combination-filter: |
DIST == AVAILABLE_DIST && ARCH == AVAILABLE_ARCH &&
- (ARCH == "x86_64" || (ARCH == "arm64" && ["xenial", "bionic", "centos7", "centos8"].contains(DIST)))
+ (ARCH == "x86_64" || (ARCH == "arm64" && ["xenial", "bionic", "centos7", "centos8", "centos9"].contains(DIST)))
axes:
- axis:
type: label-expression
- focal
- centos7
- centos8
+ - centos9
- jessie
- precise
- centos6
password: DOCKER_HUB_PASSWORD
- build-name:
name: "#${BUILD_NUMBER} ${BRANCH}, ${SHA1}, ${DISTROS}, ${FLAVOR}"
-
- centos6
- centos7
- centos8
+ - centos9
- leap15
- windows
- axis:
- string:
name: DISTROS
- description: "A list of distros to build for. Available options are: centos8, centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, and windows"
+ description: "A list of distros to build for. Available options are: centos9, centos8, centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, and windows"
default: "focal bionic centos7 centos8 windows"
- string:
- string:
name: DISTROS
- description: "A list of distros to build for. Available options are: centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, and windows"
+ description: "A list of distros to build for. Available options are: centos9, centos8, centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, and windows"
default: "focal bionic centos7 centos8"
- string:
target=el8
chacra_baseurl="ceph-release/${chacra_ref}/HEAD/centos/8"
fi
+if [ "$target"= "centos9" ] ; then
+ target=el9
+ chacra_baseurl="ceph-release/${chacra_ref}/HEAD/centos/9"
+fi
if [ "$target" = "sles11sp2" ] ; then
target=sles11
chacra_baseurl="ceph-release/${chacra_ref}/HEAD/sles/11"
- string:
name: DISTROS
- description: "A list of distros to build for. Available options are: centos8, centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, buster, bullseye"
+ description: "A list of distros to build for. Available options are: centos9, centos8, centos7, centos6, focal, bionic, xenial, trusty, precise, wheezy, jessie, buster, bullseye"
default: "focal bionic centos8 buster bullseye"
- string:
- string:
name: DISTROS
- description: "A list of distros to build for. Available options are: centos8, focal, bionic, xenial, and trusty"
+ description: "A list of distros to build for. Available options are: centos9, centos8, focal, bionic, xenial, and trusty"
default: "centos8 trusty xenial bionic focal"
- string:
type: label-expression
name: AVAILABLE_DIST
values:
+ - centos9
- centos8
- trusty
- xenial
# creates a DISTRO_VERSION and DISTRO global variable for
# use in constructing chacra urls for rpm distros
- LSB_RELEASE=/usr/bin/lsb_release
- [ ! -x $LSB_RELEASE ] && echo unknown && exit
+ source /etc/os-release
- ID=`$LSB_RELEASE --short --id`
+ RELEASE=$VERSION_ID
+ DISTRO=$ID
case $ID in
- RedHatEnterpriseServer)
- RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
+ rhel)
DIST=rhel$RELEASE
- DISTRO=rhel
;;
- CentOS|CentOSStream)
- RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
+ centos)
DIST=el$RELEASE
- DISTRO=centos
;;
- Fedora)
- RELEASE=`$LSB_RELEASE --short --release`
+ fedora)
DIST=fc$RELEASE
- DISTRO=fedora
;;
- SUSE\ LINUX|openSUSE)
- DESC=`$LSB_RELEASE --short --description`
- RELEASE=`$LSB_RELEASE --short --release`
- case $DESC in
- *openSUSE*)
- DIST=opensuse$RELEASE
- DISTRO=opensuse
- ;;
- *Enterprise*)
- DIST=sles$RELEASE
- DISTRO=sles
- ;;
- esac
+ sles)
+ DIST=sles$RELEASE
+ ;;
+ opensuse)
+ DIST=opensuse$RELEASE
+ DISTRO=opensuse
;;
*)
DIST=unknown
$SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
$SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save
+ elif [ "$RELEASE" = 9 ]; then
+ $SUDO dnf -y copr enable ceph/el9
+ $SUDO dnf -y install epel-next-release
+
+ $SUDO dnf config-manager --add-repo http://mirror.stream.centos.org/9-stream/CRB/x86_64/os/
+
+ $SUDO dnf -y install javapackages-tools
fi
DIR=/tmp/install-deps.$$