Skip to content

Instantly share code, notes, and snippets.

@juanje
Created April 30, 2012 13:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanje/2558286 to your computer and use it in GitHub Desktop.
Save juanje/2558286 to your computer and use it in GitHub Desktop.
Simple Vagrantfile for testign Django with Chef-solo
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "base"
# Assing IP to the VM
config.vm.network :hostonly, "10.0.33.10"
# Share directory between the host and the VM
config.vm.share_folder "git","/opt/git","/home/anarey/git/djandoapps"
# Enable provisioning with chef solo, specifying a cookbooks path (relative
# to this Vagrantfile), and adding some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "python"
chef.add_recipe "django"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment