Skip to content

Instantly share code, notes, and snippets.

@qnm
Created May 27, 2010 03:02
Show Gist options
  • Save qnm/415394 to your computer and use it in GitHub Desktop.
Save qnm/415394 to your computer and use it in GitHub Desktop.
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 = "centos-5.5"
config.vm.provisioner = :chef_solo
config.chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
config.chef.roles_path = "roles"
config.chef.add_role("ws")
#config.chef.log_level = :debug
config.vm.boot_mode = "gui"
# Forward ssh
config.vm.forward_port("ssh", 22, 2222)
# Forward apache
config.vm.forward_port("web", 80, 8080)
# fix ssh slowness
config.ssh.max_tries = 20
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment