Skip to content

Commit e12d980

Browse files
authored
Merge pull request #274 from puppetlabs/maint/main/skip_gem_add_for_sparc_aix
(PA-8312) Skip gem source add for Solaris & AIX
2 parents 3b65bc7 + b4e6b0a commit e12d980

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup/common/012_Finalize_Installs.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,13 @@
2121
end
2222

2323
step 'Configure gem mirror' do
24-
configure_gem_mirror(hosts)
24+
# Skip if RELEASE_STREAM is 'puppet9' and platform is aix or solaris
25+
# Issue with Rubygems's SafeMarshal see: PA-8312
26+
release_stream = ENV.fetch('RELEASE_STREAM')
27+
skip_platforms = /aix|solaris/i
28+
if release_stream == 'puppet9' && hosts.any? { |host| host['platform'] =~ skip_platforms }
29+
logger.info 'Skipping configure_gem_mirror for puppet9 on aix/solaris, issue with rubygems 4.0'
30+
else
31+
configure_gem_mirror(hosts)
32+
end
2533
end

0 commit comments

Comments
 (0)