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 "parallels" do |prl, override|
38 prl.update_guest_tools = false
40 if ENV['CHECKOUT'] != 'y' then
41 override.vm.synced_folder ".", "/home/vagrant/Nominatim"
45 config.vm.provider "libvirt" do |lv, override|
48 if ENV['CHECKOUT'] != 'y' then
49 override.vm.synced_folder ".", "/home/vagrant/Nominatim", type: 'nfs', nfs_udp: false
53 config.vm.define "ubuntu22", primary: true do |sub|
54 sub.vm.box = "generic/ubuntu2204"
55 if RUBY_PLATFORM.include?('darwin') && RUBY_PLATFORM.include?('arm64')
57 sub.vm.box = 'luminositylabsllc/ubuntu-22.04-arm64'
59 sub.vm.provision :shell do |s|
60 s.path = "vagrant/Install-on-Ubuntu-22.sh"
66 config.vm.define "ubuntu22-apache" do |sub|
67 sub.vm.box = "generic/ubuntu2204"
68 sub.vm.provision :shell do |s|
69 s.path = "vagrant/Install-on-Ubuntu-22.sh"
71 s.args = [checkout, "install-apache"]
75 config.vm.define "ubuntu22-nginx" do |sub|
76 sub.vm.box = "generic/ubuntu2204"
77 sub.vm.provision :shell do |s|
78 s.path = "vagrant/Install-on-Ubuntu-22.sh"
80 s.args = [checkout, "install-nginx"]
84 config.vm.define "ubuntu24" do |sub|
85 sub.vm.box = "bento/ubuntu-24.04"
86 sub.vm.provision :shell do |s|
87 s.path = "vagrant/Install-on-Ubuntu-24.sh"
93 config.vm.define "ubuntu24-apache" do |sub|
94 sub.vm.box = "bento/ubuntu-24.04"
95 sub.vm.provision :shell do |s|
96 s.path = "vagrant/Install-on-Ubuntu-24.sh"
98 s.args = [checkout, "install-apache"]
102 config.vm.define "ubuntu24-nginx" do |sub|
103 sub.vm.box = "bento/ubuntu-24.04"
104 sub.vm.provision :shell do |s|
105 s.path = "vagrant/Install-on-Ubuntu-24.sh"
107 s.args = [checkout, "install-nginx"]