File tree 1 file changed +5
-6
lines changed
acceptance/lib/puppet/acceptance
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,18 @@ module RpmUtils
7
7
8
8
def rpm_provider ( agent )
9
9
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'
15
11
end
16
12
17
13
def setup ( agent )
18
14
@@setup_packages [ agent ] ||= { }
19
15
cmd = rpm_provider ( agent )
20
- required_packages = [ ' createrepo' , ' curl' , ' rpm-build' ]
16
+ required_packages = %w[ createrepo curl rpm-build ]
21
17
required_packages . each do |pkg |
22
18
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' )
23
22
# package not present, so perform a new install
24
23
if !pkg_installed
25
24
on agent , "#{ cmd } install -y #{ pkg } "
You can’t perform that action at this time.
0 commit comments