Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update the chef-client version?

Tags:

I have a chef client that is running chef 11.4.0, that means, when I run chef on the machine it says Starting Chef Client, version 11.4.0. I know that the latest chef gem is 11.8.0 (locally knife --version gives me Chef: 11.8.0), and I wanted to have the latest version running in the client, but I couldn't find any standard way to do that.

Sorry if the question doesn't make much sense, it might be that my understanding of the whole chef thing is not accurate.

Edit: I tried getting to the client machine and running sudo apt-get update ; sudo apt-get install chef as mentioned in https://wiki.opscode.com/display/chef/Using+Chef+to+Upgrade+Chef but it says it's already the latest version.

like image 419
Marcelo Diniz Avatar asked Nov 25 '13 23:11

Marcelo Diniz


People also ask

How do I update chef workstation?

To upgrade from ChefDK to Chef Workstation all you need to do is install the Chef Workstation download package from the list. The Chef Workstation package will replace your existing ChefDK installation, and you'll be ready to enjoy all the new functionality provided in Chef Workstation.

How do I find my chef client version?

1 Answer. Show activity on this post. If you have Chef installed from the package version should be in node["chef_packages"]["chef"]["version"] . If this does not work, you should be able to read Chef::VERSION from recipe.

What is the latest version of chef?

The current version of Chef on Windows stacks is Chef 12.22.


1 Answers

The following works for me:

$ chef-client -version Chef: 11.4.0  $ curl -L https://www.opscode.com/chef/install.sh | sudo bash  $ chef-client -version Chef: 11.8.0 

The downloaded "install.sh" script will determine the correct OS and download the appropriate package for your platform. (These packages are all available from a S3 repository)

See also the install page from the Chef site..

Update

knife ssh 'name:[* TO *]' 'curl -L https://www.opscode.com/chef/install.sh | sudo bash' 

If you sit behind a corporate firewall you can pull down the package for your platform and install it into you package repository. You are not compelled to use the "install.sh" script that is purely for convenience.

like image 100
Mark O'Connor Avatar answered Oct 13 '22 00:10

Mark O'Connor