Skip to content

Commit

Permalink
support for parallels
Browse files Browse the repository at this point in the history
  • Loading branch information
bassam committed Jan 1, 2017
1 parent 65a23dd commit 4ccef18
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion hack/multi-node/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require 'yaml'

Vagrant.require_version ">= 1.6.0"

$update_channel = "stable"
$update_channel = "alpha"
$controller_count = 1
$controller_vm_memory = 2048
$worker_count = 1
Expand Down Expand Up @@ -54,6 +54,10 @@ Vagrant.configure("2") do |config|
end
end

config.vm.provider :parallels do |v, override|
override.vm.box_url = "http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant_parallels.json" % $update_channel
end

config.vm.provider :virtualbox do |v|
# On VirtualBox, we don't have guest additions or a functional vboxsf
# in CoreOS, so tell Vagrant that so it can be smarter.
Expand Down Expand Up @@ -100,6 +104,10 @@ Vagrant.configure("2") do |config|
vb.memory = $etcd_vm_memory
end

etcd.vm.provider :parallels do |vb|
vb.memory = $etcd_vm_memory
end

etcd.vm.network :private_network, ip: etcdIP(i)

etcd.vm.provision :file, source: etcd_config_file.path, destination: "/tmp/vagrantfile-user-data"
Expand All @@ -122,6 +130,10 @@ Vagrant.configure("2") do |config|
vb.memory = $controller_vm_memory
end

controller.vm.provider :parallels do |vb|
vb.memory = $controller_vm_memory
end

controllerIP = controllerIP(i)
controller.vm.network :private_network, ip: controllerIP

Expand All @@ -144,6 +156,10 @@ Vagrant.configure("2") do |config|
vb.memory = $worker_vm_memory
end

worker.vm.provider :parallels do |vb|
vb.memory = $worker_vm_memory
end

workerIP = workerIP(i)
worker.vm.network :private_network, ip: workerIP

Expand Down

0 comments on commit 4ccef18

Please sign in to comment.