vagrant: some fixes + use br0 as bridged interface
This commit is contained in:
14
vagrant/Vagrantfile
vendored
14
vagrant/Vagrantfile
vendored
@@ -26,10 +26,10 @@ Vagrant.configure(2) do |config|
|
||||
|
||||
# node.vm.network "private_network", ip: "172.16.16.100"
|
||||
node.vm.network :public_network,
|
||||
#:dev => "wlp5s0",
|
||||
:dev => "br0",
|
||||
:mode => "bridge",
|
||||
:type => "bridge",
|
||||
:ip => 192.168.0.21
|
||||
:ip => "192.168.0.21"
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ Vagrant.configure(2) do |config|
|
||||
#end
|
||||
|
||||
node.vm.provider :libvirt do |libvirt|
|
||||
libvirt.name = "kmaster"
|
||||
libvirt.hostname = "kmaster"
|
||||
libvirt.memory = MEMORY_MASTER_NODE
|
||||
libvirt.nested = true
|
||||
libvirt.cpus = CPUS_MASTER_NODE
|
||||
@@ -63,12 +63,12 @@ Vagrant.configure(2) do |config|
|
||||
node.vm.box_version = VAGRANT_BOX_VERSION
|
||||
node.vm.hostname = "kworker#{i}.home.lab"
|
||||
|
||||
# node.vm.network "private_network", ip: "192.168.0." + (20+i}.to_s"
|
||||
# node.vm.network "private_network", ip: "192.168.0." + (20+i).to_s"
|
||||
node.vm.network :public_network,
|
||||
#:dev => "wlp5s0",
|
||||
:dev => "br0",
|
||||
:mode => "bridge",
|
||||
:type => "bridge",
|
||||
:ip => "192.168.0." + (20+i}.to_s
|
||||
:ip => "192.168.0." + (20+i).to_s
|
||||
|
||||
|
||||
#node.vm.provider :virtualbox do |v|
|
||||
@@ -78,7 +78,7 @@ Vagrant.configure(2) do |config|
|
||||
#end
|
||||
|
||||
node.vm.provider :libvirt do |libvirt|
|
||||
libvirt.name = "kworker#{i}"
|
||||
libvirt.hostname = "kworker#{i}"
|
||||
libvirt.memory = MEMORY_WORKER_NODE
|
||||
libvirt.nested = true
|
||||
libvirt.cpus = CPUS_WORKER_NODE
|
||||
|
||||
Reference in New Issue
Block a user