New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit cookbook removes inspec_core on new install #329

Closed
timusmc96 opened this Issue Aug 14, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@timusmc96

timusmc96 commented Aug 14, 2018

Cookbook version

7.0.1

Chef-client version

14.3.37

Platform Details

Windows/Linux

Scenario:

audit runs and removes inspec_core

audit::inspec recipe
inspec_gem 'inspec' do
version node['audit']['inspec_version']
source node['audit']['inspec_gem_source']
action :nothing
end.run_action(:install)

Steps to Reproduce:

[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]

14-Aug-2018 10:02:12 Recipe: audit::inspec
14-Aug-2018 10:02:12 * inspec_gem[inspec] action install
14-Aug-2018 10:02:12 - uninstall all inspec and train gem versions
14-Aug-2018 10:02:12 - install latest InSpec version
14-Aug-2018 10:02:12 * chef_gem[remove all inspec versions] action remove
14-Aug-2018 10:02:12 - remove package inspec
14-Aug-2018 10:02:13 * chef_gem[remove all inspec-core versions] action remove
14-Aug-2018 10:02:15 * chef_gem[remove all train versions] action remove
14-Aug-2018 10:02:16 - remove package train
14-Aug-2018 10:02:16 * chef_gem[remove all train-core versions] action remove
14-Aug-2018 10:02:16 * chef_gem[inspec] action install

Expected Result:

inspec_core should not get removed and inspec should not get installed

Actual Result:

inspec_core removed and inspec installed

@timusmc96 timusmc96 closed this Aug 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment