A few days ago Opscode released a security fix for chef server 0.10.0 and 0.9.16 and this post will show how upgrade to chef-server 0.10.2. First start by backing up your data. Seriously. In the past I’ve had serious problems when performing similar upgrades (even a minor one like this that looks harmless), and even if now opscode are much better with this process it never hurts to be precautions. Since I use a rubygem install the next steps will focus on this type of installation; if you are using distribution or opscode packages this will not be very helpful as probably packages are not yet available for this upgrade; once they will replace the gem upgrade part with the deb/rpm upgrade and you should be set.
1. Stop all the chef related services
Here is a handy command that will stop all the possible chef server related services:
1 2 3 4
2. Upgrade the chef-server gems
and this should upgrade all the other gems it needs to. A sample output will look like this:
1 2 3 4 5 6 7 8 9 10 11 12
Optional: if you want you can cleanup the system from old, unused gems with:
3. Start back the chef server services
Again in a single command, now to start them:
1 2 3 4
That’s it, now you should be running the latest and greatest chef server version 0.10.2.