matschaffer / knife-solo

DEPRECATED: Please consider using https://knife-zero.github.io/, ansible, or visit https://www.chef.io/ for other ideas
MIT License
786 stars 213 forks source link

Support solo_legacy_mode #503

Open hirose31 opened 7 years ago

hirose31 commented 7 years ago

Do you have plan to support solo_legacy_mode?

matschaffer commented 7 years ago

Oh, interesting idea. Just cut over to zero and have people use --legacy-mode if they need solo.

Not something that had occurred to me yet.

The biggest roadblock in my mind for zero right now is that (last time I checked) zero requires JSON roles & environments, not ruby.

I'd guess a lot of people using knife-solo are still using ruby roles & environments so I want to make sure there's some road forward without a full migration.

matschaffer commented 7 years ago

(fwiw, knife-solo doesn't get a whole lot of attention from me these days either, so there's that)

hirose31 commented 7 years ago

Latest chef-solo loads DataBags via HTTP when solo_legacy_mode is false (default), so chef-solo invoked from knife-solo cannot load from data_bags/* in local filesystem...

I'm trying to migrate my Chef-12.0 + knife solo + Berksfile + the environment cookbook pattern system (I know it's legacy!) to using Chef-12.18 with minimal effort. But this issue blocks.

matschaffer commented 7 years ago

Oh, ouch. I didn't hear this news https://discourse.chef.io/t/chef-solo-will-be-local-mode-by-default/8499

(Guess you can tell how long I've been out of the chef-world ;) )

Now I see why you mention this.

I would be fine with a PR to provide a way to pass in the local mode flag into knife-solo->chef-solo as a workaround.

I could be implemented fairly simply I think.