How to update chef-client on nodes?

When I created the nodes I specified the bootstrap-version argument in
knife. Since then, chef-client has been updated. How do I get the new
chef-client on my nodes?

I’m using the chef-client cookbook, but I didn’t see a way to specify the
client version to install (or a URL to download it from) in the attributes
there.

Thanks!

Hey Greg, have you looked at https://github.com/hw-cookbooks/omnibus_updater?
I think that is what you are after.

On Fri, Dec 5, 2014 at 9:31 PM, Greg Barker fletch@fletchowns.net wrote:

When I created the nodes I specified the bootstrap-version argument in
knife. Since then, chef-client has been updated. How do I get the new
chef-client on my nodes?

I’m using the chef-client cookbook, but I didn’t see a way to specify the
client version to install (or a URL to download it from) in the attributes
there.

Thanks!

Just tried using this cookbook but I quickly ran into this issue:
https://github.com/hw-cookbooks/omnibus_updater/issues/49

==> default: [2015-06-11T18:00:36+00:00] DEBUG: Re-raising exception:
LoadError - cannot load such file – highline

It did update the chef-client version and a subsequent converge seems to
complete successfully.

Anybody else run into this? Do I just have to live with the fact that the
first converge after upgrade is gonna fail?

On Fri, Dec 5, 2014 at 7:13 PM, David Petzel davidpetzel@gmail.com wrote:

Hey Greg, have you looked at
https://github.com/hw-cookbooks/omnibus_updater? I think that is what you
are after.

On Fri, Dec 5, 2014 at 9:31 PM, Greg Barker fletch@fletchowns.net wrote:

When I created the nodes I specified the bootstrap-version argument in
knife. Since then, chef-client has been updated. How do I get the new
chef-client on my nodes?

I’m using the chef-client cookbook, but I didn’t see a way to specify the
client version to install (or a URL to download it from) in the attributes
there.

Thanks!

i use blender, and upgrade from outside in. this is the happy path
scenario: https://gist.github.com/ranjib/237c51b94cf8ae0a2462

you are likely to add more steps depending upon your installation. like
(/opt/chef/embedded/bin/gem install foo, if foo is required in config)

cheers
ranjib

Ideally I’d like to stick with just using chef to do the update, especially
since omnibus_updater is what they used to update Hosted Chef.

Still can’t get around this “cannot load such file – highline” issue
though. I’ve got depends ‘omnibus_updater’ in my metadata. Tried going from
11.16.2 to 12.3.0 and 11.18.12 to 12.3.0, neither worked.

Would it matter that I’m trying this in a Vagrant box using the chef-solo
provisioner?

On Thu, Jun 11, 2015 at 11:54 AM, Ranjib Dey dey.ranjib@gmail.com wrote:

i use blender, and upgrade from outside in. this is the happy path
scenario: https://gist.github.com/ranjib/237c51b94cf8ae0a2462

you are likely to add more steps depending upon your installation. like
(/opt/chef/embedded/bin/gem install foo, if foo is required in config)

cheers
ranjib