chef-golang
chef-golang copied to clipboard
should be able to pass in cfgfile
Right now this is hardcoded. Should be an option in Connect
method. Maybe even build out a config lib and move this out of api?
@spheromak I'm not sure I understand. The knife.rb acts as your config file, no? I guess it would be neat to be able to specify where your knife.rb is, other that ~/.chef/knife.rb but that doesn't sound like what you mean
poor wording on my part at 3 am. I do mean that we should be able to pass in the location to a knife.rb. I also mean that we should support not having to have a knife.rb at all.
interesting. i just worry that it would a little https://xkcd.com/927/ if we added another way that people could describe their chef configurations, on top of what they already know. thoughts?
my thought is that it's a library not an app, so we should not enforce how you want to connect in the library. I think we should have a chef/config module, but that the api itself shouldn't enforce how you want to use it higher up.
IMO we aren't doing anything bad here. Even in core chef-client they don't do the knife.rb parsing for Chef::Rest. thats not even carried out by Chef::Config. I just want to build that separation here.
gotcha, nice, thanks for bearing with me :)