From b4e6b0addeabeba9e693276aee3839e365f5c03a Mon Sep 17 00:00:00 2001 From: Christopher Thorn Date: Wed, 11 Mar 2026 12:37:32 -0700 Subject: [PATCH] (PA-8312) Skip gem source add for Solaris & AIX After installing skip the gem source add part because we're running into memory issues and crashing. See PA-8312 for details. --- setup/common/012_Finalize_Installs.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup/common/012_Finalize_Installs.rb b/setup/common/012_Finalize_Installs.rb index 686f128..a4bf2e1 100644 --- a/setup/common/012_Finalize_Installs.rb +++ b/setup/common/012_Finalize_Installs.rb @@ -21,5 +21,13 @@ end step 'Configure gem mirror' do - configure_gem_mirror(hosts) + # Skip if RELEASE_STREAM is 'puppet9' and platform is aix or solaris + # Issue with Rubygems's SafeMarshal see: PA-8312 + release_stream = ENV.fetch('RELEASE_STREAM') + skip_platforms = /aix|solaris/i + if release_stream == 'puppet9' && hosts.any? { |host| host['platform'] =~ skip_platforms } + logger.info 'Skipping configure_gem_mirror for puppet9 on aix/solaris, issue with rubygems 4.0' + else + configure_gem_mirror(hosts) + end end