Skip to content

Commit

Permalink
Update OpenSSH on Red Hat 9
Browse files Browse the repository at this point in the history
We are encountering an issue with the older version of OpenSSH installed
on the Red Hat 9 images that we use in CI. This commit adds a temporary
step to update OpenSSH on Red Hat Enterprise Linux 9 platforms.

(cherry picked from commit 7f54e44)
  • Loading branch information
mhashizume committed Nov 26, 2024
1 parent 8a7b60a commit 4b16390
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acceptance/lib/puppet/acceptance/rpm_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def setup(agent)
required_packages = %w[createrepo curl rpm-build]
required_packages.each do |pkg|
pkg_installed = (on agent, "#{cmd} list installed #{pkg}", :acceptable_exit_codes => (0..255)).exit_code == 0
# We need a newer OpenSSH for the newer OpenSSL that curl installs
# RE-16677
on(agent, 'dnf upgrade -y openssh') if (agent.platform.start_with?('el-9') && pkg == 'curl')
# package not present, so perform a new install
if !pkg_installed
on agent, "#{cmd} install -y #{pkg}"
Expand Down

0 comments on commit 4b16390

Please sign in to comment.