hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.27k stars 4.43k forks source link

Install chef-solo 0.10.4 instead of 0.10.2 #519

Closed edmellum closed 13 years ago

edmellum commented 13 years ago

When I use lucid32 base image and use the chef-solo provisioner it uses chef 0.10.2 which is older than the current version that you get by doing gem install chef.

edmellum commented 13 years ago

postinstall.sh looks like it's supposed to install chef from gem but it doesn't seem like it's being run at all since when I run it a whole lot of new stuff is being installed.

werebus commented 13 years ago

postinstall.sh is a left-over from when the base box was created; it's not used in the process of bringing the box up or provisioning it.

If you need a box with Chef 10.4, you can upgrade Chef and then package it into a new box.

For more drastic overhauls, you can build your own base box, either from scratch or using veewee. You probably don't need to do this, though.

till commented 13 years ago

You can also use a little more Ruby to override the installed chef, an example is here: https://github.com/scalarium/cookbooks/blob/master/Vagrantfile

mitchellh commented 13 years ago

I plan on upgrading the base boxes soon.

However, for now, to get around this, you can use the shell provisioner to bootstrap Chef on your machine:

config.vm.provision :shell, :inline => "gem install chef --no-ri --no-rdoc"

I'm going to close this however since there is another issue which is asking me to upgrade the base boxes already.