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
16 if ENV['CHECKOUT'] != 'y' then
20 config.vm.provider "virtualbox" do |vb, override|
23 vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","0"]
24 if ENV['CHECKOUT'] != 'y' then
25 override.vm.synced_folder ".", "/home/vagrant/Nominatim"
29 config.vm.provider "libvirt" do |lv, override|
32 if ENV['CHECKOUT'] != 'y' then
33 override.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 "ubuntu-apache" do |sub|
47 sub.vm.box = "generic/ubuntu2004"
48 sub.vm.provision :shell do |s|
49 s.path = "vagrant/Install-on-Ubuntu-20.sh"
51 s.args = [checkout, "install-apache"]
55 config.vm.define "ubuntu-nginx" do |sub|
56 sub.vm.box = "generic/ubuntu2004"
57 sub.vm.provision :shell do |s|
58 s.path = "vagrant/Install-on-Ubuntu-20.sh"
60 s.args = [checkout, "install-nginx"]
64 config.vm.define "ubuntu18" do |sub|
65 sub.vm.box = "generic/ubuntu1804"
66 sub.vm.provision :shell do |s|
67 s.path = "vagrant/Install-on-Ubuntu-18.sh"
73 config.vm.define "ubuntu18-apache" do |sub|
74 sub.vm.box = "generic/ubuntu1804"
75 sub.vm.provision :shell do |s|
76 s.path = "vagrant/Install-on-Ubuntu-18.sh"
78 s.args = [checkout, "install-apache"]
82 config.vm.define "ubuntu18-nginx" do |sub|
83 sub.vm.box = "generic/ubuntu1804"
84 sub.vm.provision :shell do |s|
85 s.path = "vagrant/Install-on-Ubuntu-18.sh"
87 s.args = [checkout, "install-nginx"]
91 config.vm.define "centos7" do |sub|
92 sub.vm.box = "centos/7"
93 sub.vm.provision :shell do |s|
94 s.path = "vagrant/Install-on-Centos-7.sh"
100 config.vm.define "centos" do |sub|
101 sub.vm.box = "generic/centos8"
102 sub.vm.provision :shell do |s|
103 s.path = "vagrant/Install-on-Centos-8.sh"