These are the steps I took to create this box:
-
Found a great resource on vagrant, chef & librarian: http://blog.base2.io/2012/05/01/vagrants-and-chefs-and-librarians-oh-my/#.UQlD6Uq6BYg
-
Installed a Vagrant base box (and tested upping it):
$ vagrant box add precise32 http://files.vagrantup.com/precise32.box $ vagrant init precise32 $ vagrant up
-
Prepared librarian:
$ librarian-chef init
-
Updated the Cheffile to install apt, build-essentials, rvm, git and postgres
-
Updated the Vagrantfile to use Chef (chef_solo) and listed the cookbooks I wanted to use.
-
Installed cookbooks
$ librarian-chef install
-
Turned off the VM and launched it again:
$ vagrant halt $ vagrant up
-
Chef processed the recipes and installed the packages.