Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.