Thursday, October 13, 2011

Easy vagrant setup on windows with chocolatey

Setting up vagrant on windows is well-documented and, overall, pretty easy. However, it is a little more complicated than just:
gem install vagrant
Luckily, us Windows developers recently got chocolatey. I just put together a few packages that makes vagrant setup on Windows a snap. To try it out just follow the chocolatey installation instructions. Then open a command prompt and run:
cinst vagrant
This command will download and install JRuby, VirtualBox, PuTTY, and the vagrant gem. It will also automatically set the registry keys for putty so that once you set up a box with vagrant you can SSH into it with:
putty -load vagrant
At this point the package comes with the old "works on my machine" stamp.


Check out the code on github or report an issue.

Update 11/10/2011:
More recent versions of the package will not modify the putty registry with the vagrant profile. Instead I recommend installing vagrant-putty.

2 comments:

  1. The vagrant package is broken for some reason.
    I recommend to use
    cinst Vagrant.install
    instead.

    ReplyDelete
    Replies
    1. Yes, I'm sure the package is out of date at this point... I don't develop on windows anymore.

      Delete