Skip to content

Instantly share code, notes, and snippets.

@paulschwarz
Created May 24, 2012 06:58
Show Gist options
  • Save paulschwarz/2779922 to your computer and use it in GitHub Desktop.
Save paulschwarz/2779922 to your computer and use it in GitHub Desktop.
Project's Vagrantfile
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe("vagrant_main")
chef.json.merge!({
:mysql => {
:server_root_password => "root"
}
})
end
config.vm.forward_port(80, 8080)
config.vm.forward_port(3306, 3306)
# Lucid32 seems to setup 2 cpus which won't work on a 32 bit Windows.
config.vm.customize ["modifyvm", :id, "--cpus", 1]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment