-
Notifications
You must be signed in to change notification settings - Fork 112
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 be loading default config using workstation config loader #153
Conversation
f1d6aeb
to
d7a9c6c
Compare
@@ -130,7 +131,8 @@ def reset | |||
end | |||
|
|||
config_context :chef do | |||
default(:cookbook_repo_paths, ChefConfig::Config[:cookbook_path]) | |||
ChefConfig::WorkstationConfigLoader.new(nil, ChefRun::Log).load | |||
default(:cookbook_repo_paths, [ChefConfig::Config[:cookbook_path]].flatten) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SO this is only merging in cookbook paths? I'm not sure what it buys us? Does it hinder us in the future to be pulling in knife.rb and client.rb
Could rogue configuration from a local chef/knife.rb affect what gets produced when we generate the cookbook & create the policy archive? |
@jonsmorrow @marcparadise Its completely possible that loading local We can get around this by reseting the |
11eed05
to
ccb0ed5
Compare
@jonsmorrow @marcparadise Okay, I updated the code to reset the ChefConfig after we use the workstation config loader. This should prevent it from interfering with Policyfile creation later. What do you think about this now? |
Signed-off-by: tyler-ball <tyleraball@gmail.com>
ccb0ed5
to
5d5d729
Compare
This must have gotten deleted at some point. Adding it back ensures we load any local
~/.chef/knife.rb
or/etc/chef/client.rb
on user's workstation