25 lines
918 B
Ruby
25 lines
918 B
Ruby
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
|