Skip to content

Instantly share code, notes, and snippets.

@snewman
Created October 21, 2010 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snewman/638235 to your computer and use it in GitHub Desktop.
Save snewman/638235 to your computer and use it in GitHub Desktop.
Used for getting rough timings of vagrant up on new boxes
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.provisioner = :chef_solo
config.chef.cookbooks_path = "cookbooks"
config.chef.add_recipe("vagrant_main")
config.vm.define :web1 do |web_config|
web_config.vm.forward_port("http", 80, 8080)
end
config.vm.define :web2 do |web_config|
web_config.vm.forward_port("http", 81, 8081)
end
config.vm.define :web3 do |web_config|
web_config.vm.forward_port("http", 82, 8082)
end
config.vm.define :db do |db_config|
db_config.vm.forward_port("db", 3306, 3306)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment