Updating Chef on a Vagrant Basebox

Hey Chefs,

what’s the best way to update the Chef version that is installed on a
Vagrant Basebox?

Right now I’m using an Ubuntu 12.04 basebox with Chef 10.12.0. Is
there a recipe or so to update the chef client to a specific version?
Or would it be better to do that with a :shell provisionier before the
:chef_solo provision so that the latest version will be readily
availabe upopn the first chef run?

I wouldn’t want to manage thousands of baseboxes for any comnbination
of OS + Chef (+ VBox Guestadditions btw) version.

Whats your appoach to this?

Cheers,
Torben

If you're using the Omnibus installer to install Chef initially, you
can add this to your run list:

https://github.com/cookbooks/hw-chef-omnibus_updater

--
Hector

On Fri, Sep 28, 2012 at 1:12 PM, Torben Knerr ukio@gmx.de wrote:

Hey Chefs,

what's the best way to update the Chef version that is installed on a
Vagrant Basebox?

Right now I'm using an Ubuntu 12.04 basebox with Chef 10.12.0. Is
there a recipe or so to update the chef client to a specific version?
Or would it be better to do that with a :shell provisionier before the
:chef_solo provision so that the latest version will be readily
availabe upopn the first chef run?

I wouldn't want to manage thousands of baseboxes for any comnbination
of OS + Chef (+ VBox Guestadditions btw) version.

Whats your appoach to this?

Cheers,
Torben

For opscodes bento built boxes, we rebuild the entire box. However for my own I have done this:

On Friday, September 28, 2012 at 11:12, Torben Knerr wrote:

Hey Chefs,

what’s the best way to update the Chef version that is installed on a
Vagrant Basebox?

Right now I’m using an Ubuntu 12.04 basebox with Chef 10.12.0. Is
there a recipe or so to update the chef client to a specific version?
Or would it be better to do that with a :shell provisionier before the
:chef_solo provision so that the latest version will be readily
availabe upopn the first chef run?

I wouldn’t want to manage thousands of baseboxes for any comnbination
of OS + Chef (+ VBox Guestadditions btw) version.

Whats your appoach to this?

Cheers,
Torben