File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
acceptance/lib/puppet/acceptance Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,18 @@ module RpmUtils
77
88 def rpm_provider ( agent )
99 has_dnf = on ( agent , 'which dnf' , :acceptable_exit_codes => [ 0 , 1 ] ) . exit_code
10- if has_dnf == 0
11- 'dnf'
12- else
13- 'yum'
14- end
10+ has_dnf == 0 ? 'dnf' : 'yum'
1511 end
1612
1713 def setup ( agent )
1814 @@setup_packages [ agent ] ||= { }
1915 cmd = rpm_provider ( agent )
20- required_packages = [ ' createrepo' , ' curl' , ' rpm-build' ]
16+ required_packages = %w[ createrepo curl rpm-build ]
2117 required_packages . each do |pkg |
2218 pkg_installed = ( on agent , "#{ cmd } list installed #{ pkg } " , :acceptable_exit_codes => ( 0 ..255 ) ) . exit_code == 0
19+ # We need a newer OpenSSH for the newer OpenSSL that curl installs
20+ # RE-16677
21+ on ( agent , 'dnf upgrade -y openssh' ) if ( agent . platform . start_with? ( 'el-9' ) && pkg == 'curl' )
2322 # package not present, so perform a new install
2423 if !pkg_installed
2524 on agent , "#{ cmd } install -y #{ pkg } "
You can’t perform that action at this time.
0 commit comments