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 "hyperv" do |hv, override|
22 hv.linked_clone = true
23 if ENV['CHECKOUT'] != 'y' then
24 override.vm.synced_folder ".", "/home/vagrant/Nominatim", type: "smb", smb_host: ENV['SMB_HOST'] || ENV['COMPUTERNAME']
28 config.vm.provider "virtualbox" do |vb, override|
31 vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","0"]
32 if ENV['CHECKOUT'] != 'y' then
33 override.vm.synced_folder ".", "/home/vagrant/Nominatim"
37 config.vm.provider "libvirt" do |lv, override|
40 if ENV['CHECKOUT'] != 'y' then
41 override.vm.synced_folder ".", "/home/vagrant/Nominatim", type: 'nfs'
45 config.vm.define "ubuntu22", primary: true do |sub|
46 sub.vm.box = "generic/ubuntu2204"
47 sub.vm.provision :shell do |s|
48 s.path = "vagrant/Install-on-Ubuntu-22.sh"
54 config.vm.define "ubuntu22-apache" do |sub|
55 sub.vm.box = "generic/ubuntu2204"
56 sub.vm.provision :shell do |s|
57 s.path = "vagrant/Install-on-Ubuntu-22.sh"
59 s.args = [checkout, "install-apache"]
63 config.vm.define "ubuntu22-nginx" do |sub|
64 sub.vm.box = "generic/ubuntu2204"
65 sub.vm.provision :shell do |s|
66 s.path = "vagrant/Install-on-Ubuntu-22.sh"
68 s.args = [checkout, "install-nginx"]
72 config.vm.define "ubuntu20" do |sub|
73 sub.vm.box = "generic/ubuntu2004"
74 sub.vm.provision :shell do |s|
75 s.path = "vagrant/Install-on-Ubuntu-20.sh"
81 config.vm.define "ubuntu20-apache" do |sub|
82 sub.vm.box = "generic/ubuntu2004"
83 sub.vm.provision :shell do |s|
84 s.path = "vagrant/Install-on-Ubuntu-20.sh"
86 s.args = [checkout, "install-apache"]
90 config.vm.define "ubuntu20-nginx" do |sub|
91 sub.vm.box = "generic/ubuntu2004"
92 sub.vm.provision :shell do |s|
93 s.path = "vagrant/Install-on-Ubuntu-20.sh"
95 s.args = [checkout, "install-nginx"]
99 config.vm.define "ubuntu18" do |sub|
100 sub.vm.box = "generic/ubuntu1804"
101 sub.vm.provision :shell do |s|
102 s.path = "vagrant/Install-on-Ubuntu-18.sh"
108 config.vm.define "ubuntu18-apache" do |sub|
109 sub.vm.box = "generic/ubuntu1804"
110 sub.vm.provision :shell do |s|
111 s.path = "vagrant/Install-on-Ubuntu-18.sh"
113 s.args = [checkout, "install-apache"]
117 config.vm.define "ubuntu18-nginx" do |sub|
118 sub.vm.box = "generic/ubuntu1804"
119 sub.vm.provision :shell do |s|
120 s.path = "vagrant/Install-on-Ubuntu-18.sh"
122 s.args = [checkout, "install-nginx"]