Created
April 30, 2012 13:17
-
-
Save juanje/2558286 to your computer and use it in GitHub Desktop.
Simple Vagrantfile for testign Django with Chef-solo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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