k3s-ansible/Vagrantfile
2024-10-23 16:54:56 +02:00

35 lines
1.1 KiB
Ruby

Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.box_check_update = false
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "libvirt" do |v|
v.memory = 2048
v.cpus = 3
v.driver = "qemu"
end
config.vm.define "master" do |master|
master.vm.hostname = "master"
master.vm.network "private_network",
:libvirt__network_name => "k3s-vagrant",
:ip => "10.10.10.10",
:libvirt__dhcp_enabled => false,
:libvirt__forward_mode => "veryisolated"
end
config.vm.define "nodo1" do |nodo1|
nodo1.vm.hostname = "nodo1"
nodo1.vm.network "private_network",
:libvirt__network_name => "k3s-vagrant",
:ip => "10.10.10.20",
:libvirt__dhcp_enabled => false,
:libvirt__forward_mode => "veryisolated"
end
config.vm.define "nodo2" do |nodo2|
nodo2.vm.hostname = "nodo2"
nodo2.vm.network "private_network",
:libvirt__network_name => "k3s-vagrant",
:ip => "10.10.10.30",
:libvirt__dhcp_enabled => false,
:libvirt__forward_mode => "veryisolated"
end
end