4 Vagrant.configure("2") do |config|
6 config.vm.network "forwarded_port", guest: 80, host: 8089
7 config.vm.network "forwarded_port", guest: 8088, host: 8088
9 # If true, then any SSH connections made will enable agent forwarding.
10 config.ssh.forward_agent = true
12 # Never sync the current directory to /vagrant.
13 config.vm.synced_folder ".", "/vagrant", disabled: true
18 config.vm.provider "virtualbox" do |vb|
21 vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","0"]
22 if ENV['CHECKOUT'] != 'y' then
23 config.vm.synced_folder ".", "/home/vagrant/Nominatim"
28 config.vm.provider "libvirt" do |lv|
31 if ENV['CHECKOUT'] != 'y' then
32 config.vm.synced_folder ".", "/home/vagrant/Nominatim", type: 'nfs'
37 config.vm.define "ubuntu", primary: true do |sub|
38 sub.vm.box = "generic/ubuntu2004"
39 sub.vm.provision :shell do |s|
40 s.path = "vagrant/Install-on-Ubuntu-20.sh"
46 config.vm.define "ubuntu18" do |sub|
47 sub.vm.box = "generic/ubuntu1804"
48 sub.vm.provision :shell do |s|
49 s.path = "vagrant/Install-on-Ubuntu-18.sh"
55 config.vm.define "ubuntu18-apache" do |sub|
56 sub.vm.box = "generic/ubuntu1804"
57 sub.vm.provision :shell do |s|
58 s.path = "vagrant/Install-on-Ubuntu-18.sh"
60 s.args = [checkout, "install-apache"]
64 config.vm.define "ubuntu18-nginx" do |sub|
65 sub.vm.box = "generic/ubuntu1804"
66 sub.vm.provision :shell do |s|
67 s.path = "vagrant/Install-on-Ubuntu-18.sh"
69 s.args = [checkout, "install-nginx"]
73 config.vm.define "centos" do |sub|
74 sub.vm.box = "centos/7"
75 sub.vm.provision :shell do |s|
76 s.path = "vagrant/Install-on-Centos-7.sh"
80 sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true
83 config.vm.define "centos8" do |sub|
84 sub.vm.box = "generic/centos8"
85 sub.vm.provision :shell do |s|
86 s.path = "vagrant/Install-on-Centos-8.sh"
90 sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true