Merge "Rename support to control in Vagrantfile"

This commit is contained in:
Jenkins 2015-08-28 18:06:27 +00:00 committed by Gerrit Code Review
commit 22fa0f9437

20
vagrant/Vagrantfile vendored
View File

@ -66,20 +66,20 @@ Vagrant.configure(2) do |config|
end
end
# Build support nodes
# Build control nodes
(1..3).each do |i|
config.vm.define "support0#{i}" do |support|
support.vm.hostname = "support0#{i}.local"
support.vm.provision :shell, path: "bootstrap.sh"
support.vm.synced_folder "storage/support/", "/data/host", create:"True"
support.vm.synced_folder "storage/shared/", "/data/shared", create:"True"
support.vm.synced_folder ".", "/vagrant", disabled: true
support.vm.provider "virtualbox" do |vb|
config.vm.define "control0#{i}" do |control|
control.vm.hostname = "control0#{i}.local"
control.vm.provision :shell, path: "bootstrap.sh"
control.vm.synced_folder "storage/control/", "/data/host", create:"True"
control.vm.synced_folder "storage/shared/", "/data/shared", create:"True"
control.vm.synced_folder ".", "/vagrant", disabled: true
control.vm.provider "virtualbox" do |vb|
vb.memory = 2048
end
support.hostmanager.aliases = "support0#{i}"
control.hostmanager.aliases = "control0#{i}"
# TODO: Here we bind local port 8080 to Horizon on support01 only.
# TODO: Here we bind local port 8080 to Horizon on control01 only.
# TODO: Once we implement Horizon behind a VIP, this obviously needs to
# be changed.
#if i < 2 then