diff options
author | Thom May <thom@chef.io> | 2018-03-24 08:32:14 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-03-24 08:55:31 +0000 |
commit | 8b40f2984d478c00a6e7d8dc7a991c7b3cad181a (patch) | |
tree | 1d262df33ed5fd8843302677b2bf68ed3174cce4 | |
parent | 5242eef602dd9f00d030a51fbb2bee116b650113 (diff) | |
download | chef-8b40f2984d478c00a6e7d8dc7a991c7b3cad181a.tar.gz |
Ship InSpec 2
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | Gemfile.lock | 50 | ||||
-rw-r--r-- | omnibus/config/projects/chef.rb | 6 | ||||
-rw-r--r-- | omnibus/config/software/unf_ext.rb | 23 |
4 files changed, 74 insertions, 7 deletions
@@ -13,7 +13,7 @@ gem "cheffish", "~> 14" group(:omnibus_package) do gem "appbundler" gem "rb-readline" - gem "inspec", "~> 1" + gem "inspec", "~> 2" gem "chef-vault" end diff --git a/Gemfile.lock b/Gemfile.lock index b5ae58c273..31c14aad43 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -99,6 +99,16 @@ GEM mixlib-cli (~> 1.4) mixlib-shellout (~> 2.0) ast (2.4.0) + aws-sdk (2.11.21) + aws-sdk-resources (= 2.11.21) + aws-sdk-core (2.11.21) + aws-sigv4 (~> 1.0) + jmespath (~> 1.0) + aws-sdk-resources (2.11.21) + aws-sdk-core (= 2.11.21) + aws-sigv4 (1.0.2) + azure_mgmt_resources (0.16.0) + ms_rest_azure (~> 0.10.0) backports (3.11.1) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) @@ -115,6 +125,7 @@ GEM chef-zero (~> 14.0) net-ssh coderay (1.1.2) + concurrent-ruby (1.0.5) crack (0.4.3) safe_yaml (~> 1.0.0) debug_inspector (0.0.3) @@ -123,12 +134,17 @@ GEM docker-api (1.34.2) excon (>= 0.47.0) multi_json + domain_name (0.5.20170404) + unf (>= 0.0.5, < 1.0.0) erubis (2.7.0) ethon (0.11.0) ffi (>= 1.3.0) excon (0.61.0) faraday (0.14.0) multipart-post (>= 1.2, < 3) + faraday-cookie_jar (0.0.6) + faraday (>= 0.7.4) + http-cookie (~> 1.0.0) faraday_middleware (0.12.2) faraday (>= 0.7.4, < 1.0) ffi (1.9.23) @@ -154,9 +170,12 @@ GEM hashie (3.5.7) highline (1.7.10) htmlentities (4.3.4) + http-cookie (1.0.3) + domain_name (~> 0.5) httpclient (2.8.3) + inifile (3.0.0) iniparse (1.4.4) - inspec (1.51.21) + inspec (2.1.10) addressable (~> 2.4) faraday (>= 0.9.0) hashie (~> 3.4) @@ -172,11 +191,12 @@ GEM rubyzip (~> 1.1) semverse sslshake (~> 1.2) - thor (~> 0.19) + thor (~> 0.20) tomlrb (~> 1.2) - train (~> 0.32) + train (~> 1.2) ipaddress (0.8.3) iso8601 (0.9.1) + jmespath (1.3.1) json (2.1.0) launchy (2.4.3) addressable (~> 2.3) @@ -197,6 +217,15 @@ GEM mixlib-shellout (2.3.2-universal-mingw32) win32-process (~> 0.8.2) wmi-lite (~> 1.0) + ms_rest (0.7.2) + concurrent-ruby (~> 1.0) + faraday (~> 0.9) + timeliness (~> 0.3) + ms_rest_azure (0.10.3) + concurrent-ruby (~> 1.0) + faraday (~> 0.9) + faraday-cookie_jar (~> 0.0.6) + ms_rest (~> 0.7.2) multi_json (1.13.1) multipart-post (2.0.0) net-http-persistent (2.9.4) @@ -229,7 +258,7 @@ GEM systemu (~> 2.6.4) wmi-lite (~> 1.0) parallel (1.12.1) - parser (2.5.0.4) + parser (2.5.0.5) ast (~> 2.4.0) parslet (1.8.2) plist (3.4.0) @@ -311,9 +340,13 @@ GEM syslog-logger (1.6.8) systemu (2.6.5) thor (0.20.0) + timeliness (0.3.8) tomlrb (1.2.6) - train (0.32.0) + train (1.2.0) + aws-sdk (~> 2) + azure_mgmt_resources (~> 0.15) docker-api (~> 1.26) + inifile json (>= 1.8, < 3.0) mixlib-shellout (~> 2.0) net-scp (~> 1.2) @@ -331,6 +364,11 @@ GEM typhoeus (~> 0.6, >= 0.6.8) typhoeus (0.8.0) ethon (>= 0.8.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) + unf_ext (0.0.7.5-x64-mingw32) + unf_ext (0.0.7.5-x86-mingw32) unicode-display_width (1.3.0) uuidtools (2.1.5) webmock (3.3.0) @@ -387,7 +425,7 @@ DEPENDENCIES chef-vault cheffish (~> 14) chefstyle! - inspec (~> 1) + inspec (~> 2) netrc octokit pry diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb index f758893cbb..10032b44a4 100644 --- a/omnibus/config/projects/chef.rb +++ b/omnibus/config/projects/chef.rb @@ -46,6 +46,12 @@ overrides_path = File.expand_path("../../../../omnibus_overrides.rb", current_fi instance_eval(IO.read(overrides_path), overrides_path) dependency "preparation" + +# InSpec 2 depends on unf_ext, which doesn't currently build on solaris on aix. There exists a fork +# of unf_ext which fixes this, so let's use that in Chef for now. +# FIXME: must remove this ASAP. +dependency "unf_ext" + dependency "chef" # diff --git a/omnibus/config/software/unf_ext.rb b/omnibus/config/software/unf_ext.rb new file mode 100644 index 0000000000..269fa933b7 --- /dev/null +++ b/omnibus/config/software/unf_ext.rb @@ -0,0 +1,23 @@ +# encoding: utf-8 +# override for unf_ext until +# https://github.com/knu/ruby-unf_ext/pull/39 +# is merged and released + +name "unf_ext" + +dependency "ruby" +dependency "rubygems" +dependency "bundler" +dependency "appbundler" + +license :project_license +default_version "c0b3bd922214a172976f6f368c0b4e4fbf91ed78" +source git: "https://github.com/jquick/ruby-unf_ext.git" +skip_transitive_dependency_licensing true + +build do + env = with_standard_compiler_flags(with_embedded_path) + delete "#{name}-*.gem" + gem "build #{name}.gemspec", env: env + gem "install #{name}-*.gem --no-document", env: env +end |