inspec/test/kitchen/cookbooks/install_inspec/recipes/default.rb
Clinton Wolfe 55732b848a Do not use audit cookbook for resource testing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 21:00:05 -04:00

25 lines
514 B
Ruby

cookbook_file "/root/inspec-core.gem" do
source "inspec-core.gem"
action :create
end
cookbook_file "/root/inspec-core-bin.gem" do
source "inspec-core-bin.gem"
action :create
end
# Must explicitly remove then re-install as it has an executable file
# conflict with the incoming package
chef_gem "inspec-core" do
action :remove
end
chef_gem "inspec-core" do
source "/root/inspec-core.gem"
action :install
end
chef_gem "inspec-core-bin" do
source "/root/inspec-core-bin.gem"
action :upgrade
end