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

could not find valid gem 'inspec' #194

Closed
kmanohar1 opened this Issue Feb 10, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@kmanohar1

kmanohar1 commented Feb 10, 2017

My node does NOT have internet connection. I get his error while running chef-client.

STDERR: ERROR: Could not find a valid gem 'inspec' (= 1.8.0), here is why:
Unable to download data from https://rubygems.org/ - Errno::EHOSTUNREACH: Failed to open TCP connection to api.rubygems.org:443 (No route to host - connect(2) for "api.rubygems.org" port 443) (https://api.rubygems.org/specs.4.8.gz)

@vjeffrey

This comment has been minimized.

Collaborator

vjeffrey commented Feb 13, 2017

hi @kmanohar1; sorry to hear that :( We've played around with a couple ideas for solving the issue of getting the inspec gem in airgapped environments (#112, #165)

If you have an internal gem repo, you could use this functionality: https://github.com/chef-cookbooks/audit/blob/master/attributes/default.rb#L25

curious: what would best solve your needs, of the options above or other?

@kmanohar1

This comment has been minimized.

kmanohar1 commented Feb 13, 2017

Thank you so much. Overriding 'inspec_gem_source' attribute worked for me.

@kmanohar1 kmanohar1 closed this Feb 13, 2017

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