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"]