evolved-npcs-infra/control-plane/vagrant/Vagrantfile
2025-10-01 15:12:28 -07:00

29 lines
No EOL
1.2 KiB
Ruby

Vagrant.configure("2") do |config|
# You need to specify a base box for VirtualBox
# Using a minimal dummy box - we'll override most settings
config.vm.box = "generic/alpine316"
config.vm.define "control-plane-node-1" do |vm|
vm.vm.provider :virtualbox do |vb|
vb.cpus = 2
vb.memory = 2048
# Remove the default storage that comes with the base box
vb.customize ["modifyvm", :id, "--boot1", "dvd"]
vb.customize ["modifyvm", :id, "--boot2", "none"]
# Attach the Talos ISO
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "/tmp/vagrant/metal-amd64.iso"]
end
end
config.vm.define "worker-node-1" do |vm|
vm.vm.provider :virtualbox do |vb|
vb.cpus = 2
vb.memory = 2048
# Remove the default storage that comes with the base box
vb.customize ["modifyvm", :id, "--boot1", "dvd"]
vb.customize ["modifyvm", :id, "--boot2", "none"]
# Attach the Talos ISO
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "/tmp/vagrant/metal-amd64.iso"]
end
end
end