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 ######################################################################
11 # Set server to Ubuntu 14.04
12 config.vm.define "trusty" do |trusty|
13 trusty.vm.box = "ubuntu/trusty64"
15 # Disable automatic box update checking. If you disable this, then
16 # boxes will only be checked for updates when the user runs
17 # `vagrant box outdated`. This is not recommended.
18 # config.vm.box_check_update = false
20 # Create a hostname, don't forget to put it to the `hosts` file
21 # This will point to the server's default virtual host
22 # TO DO: Make this work with virtualhost along-side xip.io URL
23 trusty.vm.hostname = "friendica-trusty.dev"
26 trusty.vm.network :private_network, ip: server_ip_trusty
29 ######################################################################
30 # Set server to Ubuntu 16.04
31 config.vm.define "xenial" do |xenial|
32 xenial.vm.box = "boxcutter/ubuntu1604"
34 # Disable automatic box update checking. If you disable this, then
35 # boxes will only be checked for updates when the user runs
36 # `vagrant box outdated`. This is not recommended.
37 # config.vm.box_check_update = false
39 # Create a hostname, don't forget to put it to the `hosts` file
40 # This will point to the server's default virtual host
41 # TO DO: Make this work with virtualhost along-side xip.io URL
42 xenial.vm.hostname = "friendica-xenial.dev"
45 xenial.vm.network :private_network, ip: server_ip_xenial
48 ######################################################################
49 # Share a folder between host and guest
50 config.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"