chef-cookbooks / chef_client_updater

Chef Cookbook to update the chef client on nodes
https://supermarket.chef.io/cookbooks/chef_client_updater
Apache License 2.0
54 stars 79 forks source link

bugfix: move unified_mode into resource definition #241

Closed jasonwbarnett closed 2 years ago

jasonwbarnett commented 2 years ago

Description

Fixes unified_mode deprecation warnings.

Check List

jasonwbarnett commented 2 years ago

@lamont-granquist can you review this one? I think this is a pretty obvious fix.

lamont-granquist commented 2 years ago

This probably never should have been fixed this way. We test this using non-unified_mode chef-clients and then pray that it'll work correctly on unified_mode and we can't support running it both ways, that's deeply crazy.

We need to remove this and find some other way of suppressing the deprecation warning.

lamont-granquist commented 2 years ago

And basically what adding this is doing is asking me to ultimately debug issues in this massively complex cookbook that needs backcompat to early-12 at least if not chef-11 and would then need to run in unfied_mode and not unified_mode keeping both execution models in my head, which is a large pile of 'nope'. This cookbook needs to remain non-unified_mode.

jasonwbarnett commented 2 years ago

@lamont-granquist closing this out in favor of this: https://github.com/chef-cookbooks/chef_client_updater/pull/242