Comments (9)
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.
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.
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.
we had to put that here for windows.
from chef_client_updater.
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.
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.
@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.
yeah it looks like we should copy that logic and probably the windows logic out of the omnibus cookbook
from chef_client_updater.
This is fixed with the 2.0.3 release
from chef_client_updater.
Related Issues (20)
- No checksum validation of handle.zip
- The PowerShell to reschedule the upgrade does not work (Windows) HOT 2
- "cannot load such file -- highline" after upgraded. HOT 8
- Direct Download - Unable to contain self signed certificate
- Require Chef Infra Client 12.5+
- Remove support for ChefDK
- Move the upgrade logic outside of Chef
- Chef client update fails on windows 7 citrix VDIs
- Cookbook removes scheduled task HOT 5
- Chef upgrade failing in windows10 version 2004 and later
- Cookbook hangs when upgrading on Solaris HOT 1
- Assumes `C:\opscode` exists HOT 1
- Calls mixlib-install even when `download_url_override` is set HOT 1
- Create Tag 3.12 HOT 4
- Deprecation warning for `unified_mode` HOT 2
- Latest release contains mac underscore files HOT 3
- The exec_command value cannot be overridden HOT 1
- Provide basic authentication when using download_url_override?
- Restart chef-client.service after upgrade
- product_name does not allow 'cinc' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef_client_updater.