diff --git a/control-plane/vagrant/Vagrantfile b/control-plane/vagrant/Vagrantfile index e69de29..b4bbad2 100644 --- a/control-plane/vagrant/Vagrantfile +++ b/control-plane/vagrant/Vagrantfile @@ -0,0 +1,25 @@ +Vagrant.configure("2") do |config| + config.vm.define "control-plane-node-1" do |vm| + vm.vm.provider :libvirt do |domain| + domain.cpus = 2 + domain.memory = 2048 + domain.serial :type => "file", :source => {:path => "/tmp/vagrant/control-plane-node-1.log"} + domain.storage :file, :device => :cdrom, :path => "/tmp/vagrant/metal-amd64.iso" + domain.storage :file, :size => '4G', :type => 'raw' + domain.boot 'hd' + domain.boot 'cdrom' + end + end + + config.vm.define "worker-node-1" do |vm| + vm.vm.provider :libvirt do |domain| + domain.cpus = 2 + domain.memory = 2048 + domain.serial :type => "file", :source => {:path => "/tmp/vagrant/worker-node-1.log"} + domain.storage :file, :device => :cdrom, :path => "/tmp/vagrant/metal-amd64.iso" + domain.storage :file, :size => '4G', :type => 'raw' + domain.boot 'hd' + domain.boot 'cdrom' + end + end +end diff --git a/control-plane/vagrant/setup.sh b/control-plane/vagrant/setup.sh index b3902d4..bd2086a 100755 --- a/control-plane/vagrant/setup.sh +++ b/control-plane/vagrant/setup.sh @@ -1 +1,2 @@ -curl https://factory.talos.dev/image/4a0d65c669d46663f377e7161e50cfd570c401f26fd9e7bda34a0216b6f1922b/v1.11.1/metal-arm64.iso -L -o /tmp/metal-amd64.iso +mkdir -p /tmp/vagrant +curl https://factory.talos.dev/image/4a0d65c669d46663f377e7161e50cfd570c401f26fd9e7bda34a0216b6f1922b/v1.11.1/metal-arm64.iso -L -o /tmp/vagrant/metal-arm64.iso