Add rocky support to the epel element

OpenDev relies on the epel role to configure the epel repository for our
image builds. Specifically we need epel to pull in haveged. Update the
epel role to recognize rocky and configure it properly.

Change-Id: I968d4702ef39590e972b782a09e18a5db40703ad
This commit is contained in:
Clark Boylan 2022-02-21 11:32:53 -08:00
parent 53524dec59
commit 7d77f4fab2
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,10 @@
"rhel7": { "rhel7": {
"wget": "wget", "wget": "wget",
"yum-utils": "yum-utils" "yum-utils": "yum-utils"
},
"rocky": {
"wget": "wget",
"yum-utils": "yum-utils"
} }
}, },
"default": { "default": {

View File

@ -6,7 +6,7 @@ fi
set -eu set -eu
set -o pipefail set -o pipefail
if [[ ${DISTRO_NAME} =~ "centos" && "${DIB_RELEASE%-stream}" -lt '9' ]]; then if [[ (${DISTRO_NAME} =~ "centos" || ${DISTRO_NAME} =~ "rocky") && "${DIB_RELEASE%-stream}" -lt '9' ]]; then
# Centos has "epel-release" in extras, which is default enabled. # Centos has "epel-release" in extras, which is default enabled.
${YUM} install -y epel-release ${YUM} install -y epel-release
else else