1+ project 'pe-bolt-server-runtime-2023.8.x' do |proj |
2+ proj . setting ( :pe_version , '2023.8' )
3+ proj . setting ( :rubygem_puppet_version , '8.8.1' )
4+ # We build bolt server with the ruby installed in the puppet-agent dep. For ruby 2.7 we need to use a --no-document flag
5+ # for gem installs instead of --no-ri --no-rdoc. This setting allows us to use this while we support both ruby 2.5 and 2.7
6+ # Once we are no longer using ruby 2.5 we can update.
7+ proj . setting ( :no_doc , true )
8+
9+ proj . setting ( :ruby_version , '3.2.5' )
10+ proj . setting ( :openssl_version , '3.0' )
11+
12+ # We enable legacy algorithms for winrm transport. Currently the winrm transport
13+ # does not work on FIPS, so in order to stay compliant we do not enable legacy algorithms
14+ # on fips builds.
15+ if proj . get_platform . name =~ /^redhatfips/
16+ proj . setting ( :use_legacy_openssl_algos , false )
17+ else
18+ proj . setting ( :use_legacy_openssl_algos , true )
19+ end
20+
21+ instance_eval File . read ( File . join ( File . dirname ( __FILE__ ) , '_shared-pe-bolt-server_with_ruby.rb' ) )
22+ # These are ruby 3/puppet 8 specific gems. Some of them are "default/standard" gems. There
23+ # is a very annoying issue where default gems can be loaded by MRI but not jruby.
24+ # We explicitly pacakge up some default gems where we have explicit dependencies for jruby
25+ proj . component 'rubygem-prime'
26+ proj . component 'rubygem-rexml'
27+ proj . component 'rubygem-getoptlong'
28+ end
0 commit comments