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