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