- # provider.token = ''
- # # provider.token = 'YOUR TOKEN'
- # provider.image = 'ubuntu-14-04-x64'
- # provider.region = 'nyc2'
- # provider.size = '512mb'
- # end
+ config.vm.define "ubuntu22-nginx" do |sub|
+ sub.vm.box = "generic/ubuntu2204"
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Ubuntu-22.sh"
+ s.privileged = false
+ s.args = [checkout, "install-nginx"]
+ end
+ end
+
+ config.vm.define "ubuntu24" do |sub|
+ sub.vm.box = "bento/ubuntu-24.04"
+ if RUBY_PLATFORM.include?('darwin') && RUBY_PLATFORM.include?('arm64')
+ # Apple M processor
+ sub.vm.box = 'gutehall/ubuntu24-04'
+ end
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Ubuntu-24.sh"
+ s.privileged = false
+ s.args = [checkout]
+ end
+ end