This commit is contained in:
Christine Dodrill 2015-08-21 12:49:26 -07:00
parent f81057963c
commit a0f84fd8fe
1 changed files with 4 additions and 2 deletions

6
Vagrantfile vendored
View File

@ -5,7 +5,7 @@ require_relative 'vagrant_rancheros_guest_plugin.rb'
# To enable rsync folder share change to false # To enable rsync folder share change to false
$rsync_folder_disabled = true $rsync_folder_disabled = true
$number_of_nodes = 1 $number_of_nodes = 4
$vm_mem = "1024" $vm_mem = "1024"
$vb_gui = false $vb_gui = false
@ -19,11 +19,13 @@ Vagrant.configure(2) do |config|
config.vm.box_version = ">=0.3.3" config.vm.box_version = ">=0.3.3"
(1..$number_of_nodes).each do |i| (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| config.vm.define hostname do |node|
node.vm.provider "virtualbox" do |vb| node.vm.provider "virtualbox" do |vb|
vb.memory = $vm_mem vb.memory = $vm_mem
vb.memory = "512" if i == 4
vb.gui = $vb_gui vb.gui = $vb_gui
end end