Update default nodes specs for vagrant lab
This commit is contained in:
parent
d066f0c9e9
commit
6a287973d9
1 changed files with 11 additions and 4 deletions
15
Vagrantfile
vendored
15
Vagrantfile
vendored
|
@ -6,9 +6,11 @@ pool = ENV["VAGRANT_POOL"] || "10.250.0.0/16"
|
||||||
ENV["VAGRANT_DEFAULT_PROVIDER"] = "libvirt"
|
ENV["VAGRANT_DEFAULT_PROVIDER"] = "libvirt"
|
||||||
prefix = pool.gsub(/\.\d+\.\d+\/16$/, "")
|
prefix = pool.gsub(/\.\d+\.\d+\/16$/, "")
|
||||||
|
|
||||||
$num_instances = 7
|
$num_instances = 4
|
||||||
$vm_memory = 2048
|
$vm_memory = 6144
|
||||||
$vm_cpus = 2
|
$vm_cpus = 2
|
||||||
|
$master_memory = 1024
|
||||||
|
$master_cpus = 1
|
||||||
|
|
||||||
$user = ENV["USER"]
|
$user = ENV["USER"]
|
||||||
$public_subnet = prefix.to_s + ".0"
|
$public_subnet = prefix.to_s + ".0"
|
||||||
|
@ -55,8 +57,13 @@ Vagrant.configure("2") do |config|
|
||||||
# Libvirt provider settings
|
# Libvirt provider settings
|
||||||
test_vm.vm.provider :libvirt do |domain|
|
test_vm.vm.provider :libvirt do |domain|
|
||||||
domain.uri = "qemu+unix:///system"
|
domain.uri = "qemu+unix:///system"
|
||||||
domain.memory = $vm_memory
|
if master
|
||||||
domain.cpus = $vm_cpus
|
domain.memory = $master_memory
|
||||||
|
domain.cpus = $master_cpus
|
||||||
|
else
|
||||||
|
domain.memory = $vm_memory
|
||||||
|
domain.cpus = $vm_cpus
|
||||||
|
end
|
||||||
domain.driver = "kvm"
|
domain.driver = "kvm"
|
||||||
domain.host = "localhost"
|
domain.host = "localhost"
|
||||||
domain.connect_via_ssh = false
|
domain.connect_via_ssh = false
|
||||||
|
|
Loading…
Reference in a new issue