-
Notifications
You must be signed in to change notification settings - Fork 14
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
chef-run fails to pull cookbooks from chef server #78
Comments
Hey @nhuff - I thought we fixed this but cannot find any git history to agree with me. Would you mind checking the latest version of Chef Workstation ( |
Got a different error. It looks like the Chef Config never gets initialized.
|
Thanks for checking that @nhuff - we'll look into that new error that occurs in the latest version. |
Got an error below with chef-run when pulling cookbook from artifactory.
Policyfile
config.rb command Log
Version
|
I'm getting the same as @yangpeng-chn
Chef Version
|
Description
Trying to run chef-run with a cookbook that uses other cookbooks that need to be pulled from a chef server fails.
Chef Apply Version
Platform Version
Replication Case
Create a cookbook that uses a Policyfile
Edit
Policyfile.rb
to be the followingEdit
metadata.rb
to add the dependancyAdd the default recipe
recipes/default.rb
Try to apply that cookbook with chef-run
Client Output
Stacktrace
Workaround
The issue seems to be that
chef-apply
never configures thecookbook-omnifetch
http client. I was able to hack in settingCookbookOmnifetch.integration.default_chef_server_http_client
before chef-apply tries to generate the Policyfile lock and that seems to work.The text was updated successfully, but these errors were encountered: