Re: Updating Chef on a Vagrant Basebox


#1

Actual repository:

Hector Castro writes:

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


#2

Thanks, just tried it out and it works like a charm! :slight_smile:

For keeping the VBox Guestadditions in sync I found the
vagrant-vbguest vagrant plugin, which just worked as flawlessly:

Cheers,
Torben

On Fri, Sep 28, 2012 at 8:47 PM, Chris Roberts
chrisroberts.code@gmail.com wrote:

Actual repository:

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

Hector Castro writes:

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