4 nodes
This commit is contained in:
parent
f81057963c
commit
a0f84fd8fe
|
@ -5,7 +5,7 @@ require_relative 'vagrant_rancheros_guest_plugin.rb'
|
|||
|
||||
# To enable rsync folder share change to false
|
||||
$rsync_folder_disabled = true
|
||||
$number_of_nodes = 1
|
||||
$number_of_nodes = 4
|
||||
$vm_mem = "1024"
|
||||
$vb_gui = false
|
||||
|
||||
|
@ -19,11 +19,13 @@ Vagrant.configure(2) do |config|
|
|||
config.vm.box_version = ">=0.3.3"
|
||||
|
||||
(1..$number_of_nodes).each do |i|
|
||||
hostname = "rancher-%02d" % i
|
||||
hostname = "runner-%02d" % i
|
||||
hostname = "manager" if i == 4
|
||||
|
||||
config.vm.define hostname do |node|
|
||||
node.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = $vm_mem
|
||||
vb.memory = "512" if i == 4
|
||||
vb.gui = $vb_gui
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue