summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorAdam Leff <adam@leff.co>2017-04-04 15:44:58 -0400
committerAdam Leff <adam@leff.co>2017-04-05 06:45:18 -0400
commit7ca92ad31c7a4d5fc564bc2af34eff407f514490 (patch)
tree42b97f8d9f07c8737c7a18b990c1cec450bbbedc /omnibus
parentce64bc946883cb95a4cc26891bb64384e8f866c5 (diff)
downloadchef-7ca92ad31c7a4d5fc564bc2af34eff407f514490.tar.gz
Add InSpec to chef omnibus buildsadamleff/add-inspec
This change adds InSpec to the Chef Gemfile, making it easier for our community to use InSpec for testing without requiring them to `chef_gem` install it prior to use. This also helps our users who wish to use InSpec but are in an air-gapped environment. Including our preferred testing library in our Omnibus builds will make it much easier for those users to use InSpec. Signed-off-by: Adam Leff <adam@leff.co>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/config/software/chef-gem-inspec.rb10
-rw-r--r--omnibus/config/software/chef.rb1
2 files changed, 11 insertions, 0 deletions
diff --git a/omnibus/config/software/chef-gem-inspec.rb b/omnibus/config/software/chef-gem-inspec.rb
new file mode 100644
index 0000000000..8c5e1cbf26
--- /dev/null
+++ b/omnibus/config/software/chef-gem-inspec.rb
@@ -0,0 +1,10 @@
+# gem installs this gem from the version specified in chef's Gemfile.lock
+# so we can take advantage of omnibus's caching. Just duplicate this file and
+# add the new software def to chef software def if you want to separate
+# another gem's installation.
+require_relative "../../files/chef-gem/build-chef-gem/gem-install-software-def"
+BuildChefGem::GemInstallSoftwareDef.define(self, __FILE__)
+
+license "Apache-2.0"
+license_file "https://raw.githubusercontent.com/chef/inspec/master/LICENSE"
+skip_transitive_dependency_licensing true
diff --git a/omnibus/config/software/chef.rb b/omnibus/config/software/chef.rb
index 6130b3d74c..4726f8b687 100644
--- a/omnibus/config/software/chef.rb
+++ b/omnibus/config/software/chef.rb
@@ -44,6 +44,7 @@ dependency "chef-gem-ruby-prof"
dependency "chef-gem-byebug"
dependency "chef-gem-debug_inspector"
dependency "chef-gem-binding_of_caller"
+dependency "chef-gem-inspec"
unless ios_xr? || solaris?
dependency "chef-gem-rbnacl-libsodium"
dependency "chef-gem-bcrypt_pbkdf-ruby"