diff options
author | afariasa <afariasa@redhat.com> | 2022-08-16 12:42:46 +0000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2022-08-25 16:14:41 -0700 |
commit | da52e56751d6a37ff953fc5ef886f2b029b181e1 (patch) | |
tree | f12433c2a24c8194be729f6a374b82cf835d86b5 /tools | |
parent | d8af3d7a0db2609fc1a0805a8d592ba4e2d9e120 (diff) | |
download | swift-da52e56751d6a37ff953fc5ef886f2b029b181e1.tar.gz |
Migrate CentOS Stream 8 FIPS job to CentOS Stream 9
Change-Id: I8b0bd7ee1c649294ac3795cba801c9e07bc3d51b
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-setup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh index 08b772781..44d9e6d0d 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -25,6 +25,11 @@ function is_rhel8 { cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ cat /etc/*release | grep -q 'release 8' } +function is_rhel9 { + [ -f /usr/bin/dnf ] && \ + cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ + cat /etc/*release | grep -q 'release 9' +} if is_rhel7; then @@ -40,3 +45,10 @@ if is_rhel8; then sudo dnf install -y centos-release-openstack-xena sudo dnf install -y liberasurecode-devel fi + +if is_rhel9; then + # Install CentOS OpenStack repos so that we have access to some extra + # packages. + sudo dnf install -y centos-release-openstack-yoga + sudo dnf install -y liberasurecode-devel +fi |