Closed edmellum closed 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.
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.
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
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.
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
.