summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-03-04 16:02:00 -0800
committerTim Smith <tsmith84@gmail.com>2021-03-15 20:08:50 -0700
commite55588b7e53e005aee47131f5e428a13f010e6f6 (patch)
treea14364b9b823b6e4486ca752e11d75d4739e42bb
parent84b0c1e9d6817cad2a472a4733ee8ae7dd7b83f3 (diff)
downloadchef-e55588b7e53e005aee47131f5e428a13f010e6f6.tar.gz
Use DNF on Oracle / CentOS kitchen tests
Oracle 8 docker image no longer ships with yum Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--kitchen-tests/kitchen.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml
index beffc077f6..6c6202ff4b 100644
--- a/kitchen-tests/kitchen.yml
+++ b/kitchen-tests/kitchen.yml
@@ -87,7 +87,7 @@ platforms:
image: dokken/centos-8
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- - RUN yum -y install e2fsprogs
+ - RUN dnf -y install e2fsprogs
- RUN sed -i -e "s/Defaults.*requiretty.*/Defaults !requiretty/g" /etc/sudoers
- name: oraclelinux-7
@@ -103,8 +103,8 @@ platforms:
image: dokken/oraclelinux-8
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- - RUN yum -y install e2fsprogs
- - RUN yum -y reinstall systemd
+ - RUN dnf -y install e2fsprogs
+ - RUN dnf -y reinstall systemd
- RUN mkdir /etc/sysconfig/network-scripts # missing from the oracle image
- RUN sed -i -e "s/Defaults.*requiretty.*/Defaults !requiretty/g" /etc/sudoers