berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
230 stars 84 forks source link

Update client version #374

Closed iancward closed 6 years ago

iancward commented 7 years ago

As part of a general effort to get folks to "get with the times", in our private chef installation, we'd like to prohibit chef client versions prior to 12.0.0. Unfortunately, Ridley (which Berkshelf uses) masquerades as chef client version 11.4.0 so berkshelf is getting blocked. This means we're unable to do things like use berks to upload cookbooks to the chef version.

Can we get this hard-coded version to be changed to something a bit more recent?

scalp42 commented 7 years ago

@iancward curious how do you prevent chef client versions < 12.0.0. if you don't mind sharing?

iancward commented 7 years ago

@scalp42 it's a setting in private chef server: PrivateChef['lb']['chef_min_version'] = 12

iancward commented 7 years ago

here's the relevant documentation: https://docs.chef.io/config_rb_server_optional_settings.html#lb-lb-internal

haidangwa commented 6 years ago

FYI, this is the line of code in question, which @iancward linked in the main description already: https://github.com/berkshelf/ridley/blob/36b43e93f57a7fc472e1e232de8a575bf6d9f305/lib/ridley.rb#L16

thommay commented 6 years ago

Fixed by #377