2 server_ip = "192.168.22.10"
3 server_memory = "2048" # MB
4 server_timezone = "UTC"
6 public_folder = "/vagrant"
8 Vagrant.configure(2) do |config|
9 # Set server to Ubuntu 16.04
10 config.vm.box = "ubuntu/xenial64"
12 # Disable automatic box update checking. If you disable this, then
13 # boxes will only be checked for updates when the user runs
14 # `vagrant box outdated`. This is not recommended.
15 config.vm.box_check_update = true
17 # Create a hostname, don't forget to put it to the `hosts` file
18 # This will point to the server's default virtual host
19 # TO DO: Make this work with virtualhost along-side xip.io URL
20 config.vm.hostname = "friendica-xenial.dev"
23 config.vm.network :private_network, ip: server_ip
25 # Share a folder between host and guest
26 # config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "www-data", group: "vagrant"
27 config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "www-data", group: "www-data"
29 # Provider-specific configuration so you can fine-tune various
30 # backing providers for Vagrant. These expose provider-specific options.
31 config.vm.provider "virtualbox" do |vb|
32 # # Display the VirtualBox GUI when booting the machine
35 # # Customize the amount of memory on the VM:
36 vb.memory = server_memory
39 # Enable provisioning with a shell script.
40 config.vm.provision "shell", path: "./util/vagrant_provision.sh"