creado Vagrantfile
This commit is contained in:
parent
8882bdc877
commit
50826dacce
34
Vagrantfile
vendored
Normal file
34
Vagrantfile
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user