aboutsummaryrefslogtreecommitdiff
path: root/vagrant
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2015-09-07 13:13:41 +0100
committerPaul Bourke <paul.bourke@oracle.com>2015-09-07 13:14:29 +0100
commite2b92c94d77caefec56a241fa485171541495dc4 (patch)
tree7c52de5d0945f48f9b4505dea81c700cafca3931 /vagrant
parent34cbe82e6efed5222a2ab2b29368505ea8f41f00 (diff)
downloadkolla-e2b92c94d77caefec56a241fa485171541495dc4.tar.gz
kolla-e2b92c94d77caefec56a241fa485171541495dc4.zip
Add missing node types to Vagrantfile
Out of the box testing will be easier if the supplied ansible multinode inventory matches the Vagrantfile Change-Id: I2e1233502cc5671f6a49381bcb9bdedfdd27ecac Closes-Bug: #1493011
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/Vagrantfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 6cffc58c1..fb5994dc9 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -66,6 +66,36 @@ Vagrant.configure(2) do |config|
end
end
+ # Build storage nodes
+ (1..1).each do |i|
+ config.vm.define "storage0#{i}" do |storage|
+ storage.vm.hostname = "storage0#{i}.local"
+ storage.vm.provision :shell, path: "bootstrap.sh"
+ storage.vm.synced_folder "storage/storage/", "/data/host", create:"True"
+ storage.vm.synced_folder "storage/shared/", "/data/shared", create:"True"
+ storage.vm.synced_folder ".", "/vagrant", disabled: true
+ storage.vm.provider "virtualbox" do |vb|
+ vb.memory = 1024
+ end
+ storage.hostmanager.aliases = "storage0#{i}"
+ end
+ end
+
+ # Build network nodes
+ (1..1).each do |i|
+ config.vm.define "network0#{i}" do |network|
+ network.vm.hostname = "network0#{i}.local"
+ network.vm.provision :shell, path: "bootstrap.sh"
+ network.vm.synced_folder "storage/network/", "/data/host", create:"True"
+ network.vm.synced_folder "storage/shared/", "/data/shared", create:"True"
+ network.vm.synced_folder ".", "/vagrant", disabled: true
+ network.vm.provider "virtualbox" do |vb|
+ vb.memory = 1024
+ end
+ network.hostmanager.aliases = "network0#{i}"
+ end
+ end
+
# Build control nodes
(1..3).each do |i|
config.vm.define "control0#{i}" do |control|