Giter Club home page Giter Club logo

Comments (9)

4-20ma avatar 4-20ma commented on July 19, 2024

Update

Test whether changing platform string from centos to el resolves the issue. Forked cookbook and hard-coded platform to el, resulting in success (chef-client was properly downgraded to v12.19.36 and then subsequently upgraded to latest v13.1.31 by adjusting node['chef_client_updater']['version']).

diff --git a/providers/default.rb b/providers/default.rb
index 7d0a2c9..2169b11 100644
--- a/providers/default.rb
+++ b/providers/default.rb
@@ -73,7 +73,7 @@ def mixlib_install
   options = {
     product_name: 'chef',
     platform_version_compatibility_mode: true,
-    platform: node['platform'],
+    platform: 'el',
     platform_version: node['platform_version'],
     architecture: node['kernel']['machine'],
     channel: new_resource.channel.to_sym,

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

IMO that should get fixed over in mixlib-install and we should normalize all the platforms over there with ohai platform names (which at one point i thought i tried to do back when it was all just omnitruck)

from chef_client_updater.

wrightp avatar wrightp commented on July 19, 2024

mixlib install will accept any override value for platform. The correct thing to do here is remove platform, platform_version and architecture options and let mixlib install auto detect the appropriate values.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

we had to put that here for windows.

from chef_client_updater.

wrightp avatar wrightp commented on July 19, 2024

Ok I see. I'm not used to seeing this since most scenarios like this use chef-ingredient (which I understand why we're not). May I suggest doing similar to how this is handled in chef-ingredient?

https://github.com/chef-cookbooks/chef-ingredient/blob/master/libraries/helpers.rb#L299-L310

Essentially, call Mixlib::Install.detect_platform and go from there.

from chef_client_updater.

wrightp avatar wrightp commented on July 19, 2024

I've also see this Windows logic in omnibus: https://github.com/chef-cookbooks/omnibus/blob/master/recipes/_omnibus_toolchain.rb#L20

from chef_client_updater.

4-20ma avatar 4-20ma commented on July 19, 2024

@lamont-granquist I'm happy to pinch the referenced code from the chef-ingredient cookbook. Would you entertain a PR with that change? I'm not sure how this would affect the windows support.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

yeah it looks like we should copy that logic and probably the windows logic out of the omnibus cookbook

from chef_client_updater.

tas50 avatar tas50 commented on July 19, 2024

This is fixed with the 2.0.3 release

from chef_client_updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.