Vagrantfile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.ssh.forward_agent = true
  10. config.vm.provider "virtualbox" do |v|
  11. v.memory = 1024
  12. end
  13. config.vm.provision :chef_solo do |chef|
  14. chef.cookbooks_path = "chef/cookbooks"
  15. chef.add_recipe 'redis-server'
  16. chef.add_recipe 'mongodb'
  17. chef.add_recipe 'nodejs'
  18. chef.add_recipe 'sharelatex'
  19. # You may also specify custom JSON attributes:
  20. chef.json = {}
  21. end
  22. # Enable provisioning with chef server, specifying the chef server URL,
  23. # and the path to the validation key (relative to this Vagrantfile).
  24. #
  25. # The Opscode Platform uses HTTPS. Substitute your organization for
  26. # ORGNAME in the URL and validation key.
  27. #
  28. # If you have your own Chef Server, use the appropriate URL, which may be
  29. # HTTP instead of HTTPS depending on your configuration. Also change the
  30. # validation key to validation.pem.
  31. #
  32. # config.vm.provision :chef_client do |chef|
  33. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  34. # chef.validation_key_path = "ORGNAME-validator.pem"
  35. # end
  36. #
  37. # If you're using the Opscode platform, your validator client is
  38. # ORGNAME-validator, replacing ORGNAME with your organization name.
  39. #
  40. # If you have your own Chef Server, the default validation client name is
  41. # chef-validator, unless you changed the configuration.
  42. #
  43. # chef.validation_client_name = "ORGNAME-validator"
  44. end