chef-golang icon indicating copy to clipboard operation
chef-golang copied to clipboard

should be able to pass in cfgfile

Open spheromak opened this issue 10 years ago • 5 comments

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 avatar Apr 26 '14 08:04 spheromak

@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

marpaia avatar Apr 27 '14 08:04 marpaia

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.

spheromak avatar Apr 27 '14 08:04 spheromak

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?

marpaia avatar Apr 27 '14 08:04 marpaia

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.

spheromak avatar Apr 27 '14 18:04 spheromak

gotcha, nice, thanks for bearing with me :)

marpaia avatar Apr 27 '14 18:04 marpaia