k3s-ansible/Vagrantfile

25 lines
751 B
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 "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
2024-10-23 16:54:56 +02:00
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",
ip: "192.168.56.10"
2024-10-23 16:54:56 +02:00
end
config.vm.define "nodo1" do |nodo1|
nodo1.vm.hostname = "nodo1"
nodo1.vm.network "private_network",
ip: "192.168.56.20"
2024-10-23 16:54:56 +02:00
end
config.vm.define "nodo2" do |nodo2|
nodo2.vm.hostname = "nodo2"
nodo2.vm.network "private_network",
ip: "192.168.56.30"
2024-10-23 16:54:56 +02:00
end
end