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

we should use the latest inspec version by default #8

Closed
chris-rock opened this Issue Mar 28, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@chris-rock
Collaborator

chris-rock commented Mar 28, 2016

Currently, the inspec version is hardcoded:
https://github.com/chef/audit-cookbook/blob/6b18c581bb6103aca79a4a3c28fe5f605545bde3/libraries/profile.rb#L25

We should use latest as default and allow users to pin versions if required.

@sclark007

This comment has been minimized.

sclark007 commented Apr 16, 2016

this will be required when the node does not have port 80 open to grab the inspec gem. for this use case i pre-install the cookbooks required gems via using remote_file and chef_gem.

example:

  # Grab chef vault gem
  remote_file "#{Chef::Config[:file_cache_path]}/chef-vault-2.6.1.gem" do
    source "#{node['yum-neustar']['repo']}/neustar/gems/gems/chef-vault-2.6.1.gem"
  end.run_action(:create)

  # Install the Chef Vault Gem
  chef_gem 'chef-vault' do # ~FC009
    source "#{Chef::Config[:file_cache_path]}/chef-vault-2.6.1.gem"
    compile_time true
    action :install
  end
@chris-rock

This comment has been minimized.

Collaborator

chris-rock commented Apr 16, 2016

@sclark007 that is a great hint, we should allow this as an option, if no internet access is available. Going forward, we intend to make inspec.gem part of the chef-client, which eliminates the problem.

@chris-rock

This comment has been minimized.

Collaborator

chris-rock commented May 3, 2016

@sclark007 your use-case is not yet covered. We cover that in #26. Also we work on a PR for chef-client to include inspec as part of normal chef-client releases. That would eliminate the need to install the gem.

@chris-rock chris-rock closed this May 3, 2016

@sclark007

This comment has been minimized.

sclark007 commented May 6, 2016

thanks.

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