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 sub.vm.provision :shell do |s|
56 s.path = "vagrant/Install-on-Ubuntu-22.sh"
62 config.vm.define "ubuntu22-apache" do |sub|
63 sub.vm.box = "generic/ubuntu2204"
64 sub.vm.provision :shell do |s|
65 s.path = "vagrant/Install-on-Ubuntu-22.sh"
67 s.args = [checkout, "install-apache"]
71 config.vm.define "ubuntu22-nginx" do |sub|
72 sub.vm.box = "generic/ubuntu2204"
73 sub.vm.provision :shell do |s|
74 s.path = "vagrant/Install-on-Ubuntu-22.sh"
76 s.args = [checkout, "install-nginx"]
80 config.vm.define "ubuntu24" do |sub|
81 sub.vm.box = "bento/ubuntu-24.04"
82 if RUBY_PLATFORM.include?('darwin') && RUBY_PLATFORM.include?('arm64')
84 sub.vm.box = 'gutehall/ubuntu24-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"]