Vagrantfile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  4. VAGRANTFILE_API_VERSION = "2"
  5. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  6. config.vm.box = "ubuntu-12.04"
  7. config.vm.box_url = "http://files.vagrantup.com/precise64.box"
  8. config.vm.network :forwarded_port, guest: 3000, host: 3000
  9. config.vm.network :forwarded_port, guest: 80, host: 8080
  10. config.ssh.forward_agent = true
  11. config.vm.provider "virtualbox" do |v|
  12. v.memory = 1024
  13. end
  14. config.vm.provision :chef_solo do |chef|
  15. chef.cookbooks_path = "chef/cookbooks"
  16. chef.add_recipe 'apt'
  17. chef.add_recipe 'redis-server'
  18. chef.add_recipe 'mongodb'
  19. chef.add_recipe 'nodejs'
  20. chef.add_recipe 'texlive'
  21. chef.add_recipe 'packages'
  22. # You may also specify custom JSON attributes:
  23. chef.json = {}
  24. end
  25. # Enable provisioning with chef server, specifying the chef server URL,
  26. # and the path to the validation key (relative to this Vagrantfile).
  27. #
  28. # The Opscode Platform uses HTTPS. Substitute your organization for
  29. # ORGNAME in the URL and validation key.
  30. #
  31. # If you have your own Chef Server, use the appropriate URL, which may be
  32. # HTTP instead of HTTPS depending on your configuration. Also change the
  33. # validation key to validation.pem.
  34. #
  35. # config.vm.provision :chef_client do |chef|
  36. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  37. # chef.validation_key_path = "ORGNAME-validator.pem"
  38. # end
  39. #
  40. # If you're using the Opscode platform, your validator client is
  41. # ORGNAME-validator, replacing ORGNAME with your organization name.
  42. #
  43. # If you have your own Chef Server, the default validation client name is
  44. # chef-validator, unless you changed the configuration.
  45. #
  46. # chef.validation_client_name = "ORGNAME-validator"
  47. end