Skip to content
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
Closed

could not find valid gem 'inspec' #194

kmanohar1 opened this issue Feb 10, 2017 · 2 comments

Comments

@kmanohar1
Copy link

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
Copy link

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
Copy link
Author

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

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

No branches or pull requests

2 participants