From f43f91775b69c91196e1be50af470ef67a3bece1 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 17 Feb 2016 14:54:35 -0800 Subject: Make the chef pipeline build chef + optional chef-fips This also makes the ruby version explicit. --- omnibus/config/projects/chef-fips.rb | 12 ------------ omnibus/config/projects/chef.rb | 30 ++++++++++++++++++++++++------ 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/omnibus/config/projects/chef-fips.rb b/omnibus/config/projects/chef-fips.rb index c91dbc4b89..6e30ea8e1c 100644 --- a/omnibus/config/projects/chef-fips.rb +++ b/omnibus/config/projects/chef-fips.rb @@ -34,16 +34,6 @@ else install_dir "#{default_root}/#{name}" end -# Even if chef marches ahead, make sure that we stay pinned to 1.10.6 -# bundler 1.11 introduces some new features that require zlib. The zlib1.dll -# base address is generated by gcc to overlap that of libeay.dll. This will -# force windows into relocating libeay, freaking out the FIPS integrity -# verifier. Lol security indeed. -# Delete this once all dlls we generate are appropriately relocated. -override :bundler, version: "1.10.6" - -override :ruby, version: "2.1.7" -override :"rb-readline", version: "v0.5.3" # Global FIPS override flag. override :fips, enabled: true @@ -51,8 +41,6 @@ override :fips, enabled: true override :chef, version: "local_source" override :ohai, version: "master" -dependency "rb-readline" - msi_upgrade_code = "819F5DB3-B818-4358-BB2B-54B8171D0A26" project_location_dir = "chef-fips" diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb index 5926538bb8..0d17d1d450 100644 --- a/omnibus/config/projects/chef.rb +++ b/omnibus/config/projects/chef.rb @@ -34,15 +34,25 @@ else install_dir "#{default_root}/#{name}" end +# Compile ruby on all platforms - including windows. +override :ruby, version: "compiled" +# Do not have rubygems pull down and package devkit - use the system compiler +# when building all native gems. We do this because we intend to eventually +# not ship devkit at all on windows. For now, we introduce an artificial +# dependency on rubyinstaller devkit at the very end of the build process +# to simply land those bits in place, even though they aren't being used during +# the build process. +override :"rubygems-native", version: "system-default" + if windows? - override :'ruby-windows', version: "2.0.0-p645" + override :"ruby-compiled", version: "2.0.0-p645" # Leave dev-kit pinned to 4.5 because 4.7 is 20MB larger and we don't want # to unnecessarily make the client any fatter. if windows_arch_i386? - override :'ruby-windows-devkit', version: "4.5.2-20111229-1559" + override :"devkit-rubyinstaller", version: "4.5.2-20111229-1559" end else - override :ruby, version: "2.1.6" + override :"ruby-compiled", version: "2.1.6" end override :bundler, version: "1.11.2" @@ -51,14 +61,22 @@ override :rubygems, version: "2.5.2" # Chef Release version pinning override :chef, version: "local_source" override :ohai, version: "master" +override :"rb-readline", version: "v0.5.3" + +# Global FIPS override flag. +if windows? || rhel? + override :fips, enabled: true +end dependency "preparation" -dependency "chef" -dependency "pry" dependency "nokogiri" +dependency "pry" +dependency "chef" dependency "shebang-cleanup" +# Manually tack on devkit on windows. +# Delete this when we no longer want to ship devkit. +dependency "rubygems-devkit-rubyinstaller" if windows? dependency "version-manifest" -dependency "openssl-customization" package :rpm do signing_passphrase ENV["OMNIBUS_RPM_SIGNING_PASSPHRASE"] -- cgit v1.2.1