ci: use the new epel feature to enable EPEL for testing farm
Now that https://github.com/teemtee/tmt/pull/3128 has merged we can use the new epel feature to enable EPEL for testing farm Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
committed by
Richard Megginson
parent
353535c34e
commit
1f5c9c9e5e
@@ -31,15 +31,6 @@ prepare:
|
|||||||
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
|
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
|
||||||
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
|
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
|
||||||
fi
|
fi
|
||||||
# Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged
|
|
||||||
- name: Enable epel to install beakerlib
|
|
||||||
script: |
|
|
||||||
# CS 10 and Fedora doesn't require epel
|
|
||||||
if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
yum install epel-release yum-utils -y
|
|
||||||
yum-config-manager --enable epel epel-debuginfo epel-source
|
|
||||||
discover:
|
discover:
|
||||||
- name: Prepare managed node
|
- name: Prepare managed node
|
||||||
how: fmf
|
how: fmf
|
||||||
@@ -62,5 +53,11 @@ discover:
|
|||||||
# filter: tag:reserve_system
|
# filter: tag:reserve_system
|
||||||
# url: https://github.com/linux-system-roles/tft-tests
|
# url: https://github.com/linux-system-roles/tft-tests
|
||||||
# ref: main
|
# ref: main
|
||||||
|
adjust:
|
||||||
|
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
|
||||||
|
prepare+:
|
||||||
|
- how: feature
|
||||||
|
epel: enabled
|
||||||
|
order: 10
|
||||||
execute:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
|
|||||||
Reference in New Issue
Block a user