k3s-ansible/Vagrantfile

35 lines
1.2 KiB
Ruby
Raw Normal View History

2024-10-23 16:54:56 +02:00
Vagrant.configure("2") do |config|
2024-10-24 14:59:23 +02:00
config.vm.box = "debian/bookworm64"
2024-10-23 16:54:56 +02:00
config.vm.box_check_update = false
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "libvirt" do |v|
2024-10-25 03:25:58 +02:00
v.memory = 4096
v.cpus = 4
2024-10-23 16:54:56 +02:00
v.driver = "qemu"
end
2024-10-24 15:36:01 +02:00
config.vm.define "plano-control" do |pcontrol|
pcontrol.vm.hostname = "plano-control"
pcontrol.vm.network "private_network",
2024-10-23 16:54:56 +02:00
: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