Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

  1. server_ip_trusty = "192.168.22.10"
  2. server_ip_xenial = "192.168.22.11"
  3. server_memory = "1024" # MB
  4. server_timezone = "UTC"
  5. public_folder = "/vagrant"
  6. Vagrant.configure(2) do |config|
  7. ######################################################################
  8. # Set server to Ubuntu 14.04
  9. config.vm.define "trusty" do |trusty|
  10. trusty.vm.box = "ubuntu/trusty64"
  11. # Disable automatic box update checking. If you disable this, then
  12. # boxes will only be checked for updates when the user runs
  13. # `vagrant box outdated`. This is not recommended.
  14. # config.vm.box_check_update = false
  15. # Create a hostname, don't forget to put it to the `hosts` file
  16. # This will point to the server's default virtual host
  17. # TO DO: Make this work with virtualhost along-side xip.io URL
  18. trusty.vm.hostname = "friendica-trusty.dev"
  19. # Create a static IP
  20. trusty.vm.network :private_network, ip: server_ip_trusty
  21. end
  22. ######################################################################
  23. # Set server to Ubuntu 16.04
  24. config.vm.define "xenial" do |xenial|
  25. xenial.vm.box = "boxcutter/ubuntu1604"
  26. # Disable automatic box update checking. If you disable this, then
  27. # boxes will only be checked for updates when the user runs
  28. # `vagrant box outdated`. This is not recommended.
  29. # config.vm.box_check_update = false
  30. # Create a hostname, don't forget to put it to the `hosts` file
  31. # This will point to the server's default virtual host
  32. # TO DO: Make this work with virtualhost along-side xip.io URL
  33. xenial.vm.hostname = "friendica-xenial.dev"
  34. # Create a static IP
  35. xenial.vm.network :private_network, ip: server_ip_xenial
  36. end
  37. ######################################################################
  38. # Share a folder between host and guest
  39. config.vm.synced_folder "./", "/vagrant/", owner: "www-data", group: "vagrant"
  40. # Provider-specific configuration so you can fine-tune various
  41. # backing providers for Vagrant. These expose provider-specific options.
  42. config.vm.provider "virtualbox" do |vb|
  43. # # Display the VirtualBox GUI when booting the machine
  44. # vb.gui = true
  45. #
  46. # # Customize the amount of memory on the VM:
  47. vb.memory = server_memory
  48. end
  49. # Enable provisioning with a shell script.
  50. config.vm.provision "shell", path: "./util/vagrant_provision.sh"
  51. # run: "always"
  52. # run: "once"
  53. end