Vagrant is a nice way to setup your dev enviroments. For further information go to Vagrant site.
In this repo we keep our base Vagrantfile and it's respective cookboks to setup new development environments at Crowd Interactive.
- You need VirtualBox >4.1.2 installed. Download it from Virtualbox site. Please include the Extension Pack as well.
Download the cookbook with the recipes for all the servers and utilities:
curl -0 https://raw.github.com/crowdint/vagrant-setup/master/downloads/cookbooks.tar.gz | tar -xz
Install vagrant and the virtual machine:
gem install vagrant; vagrant up;
Note that you must suspend (or halt) your vagrant before turning off your computer. Otherwise it will be aborted (like manual power off).
Another vagrant commands:
vagrant help; # show commands help vagrant status; # current status vagrant suspend; # sleep mode vagrant ssh; # ssh session
This will start a new virtual machine from a ubuntu lucid 64bits system template. After that it will install all the services indicated, using chef recipes (Including postgres, mongo and redis...).
Disclaimer: This cookbooks should never be used on production environments as it's insecure on purpose.