Its been a while since i've done any updates on my vagarant installations.
Seems like the project has improved alot for the past six months specially in supporting multiple providers easily, i decided to upgrade my vagarant installation to the latest. here are the steps i followed.
1. download the latest package from vagrant
http://downloads.vagrantup.com/tags/v1.2.2
2. install the package using the osx package manager
3. update the vagrantfile to reflect the changes they made to config
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_precise64"
config.vm.provider :virtualbox do |vb|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
config.vm.network :forwarded_port, guest: 1337, host: 5001
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe("nodejs")
end
end
4. it seems like with the latest update they require medata file within the box, so i decided to add my base box once again
vagrant box add ubuntu_precise64 {{path to .box file}}
5. Success.
vagrant up
This should work seamlessly. I'm planning to try out #puppet instead of #chef in my setup. i will write down my notes on it on a future article.
No comments:
Post a Comment