Directly use the provided Vagrantbox on Atlas

Change-Id: Ib3cfb474c712c2a123cc6493f69141e85c4d16b6
This commit is contained in:
Christian Berendt
2014-12-11 21:46:46 +01:00
parent 1986abcc96
commit 5b8bffb103
2 changed files with 1 additions and 17 deletions

7
Vagrantfile vendored
View File

@@ -28,7 +28,7 @@ def add_block_device(node, port, size)
end
Vagrant.configure(2) do |config|
config.vm.box = 'packstack-template'
config.vm.box = CONFIG['box']
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", CONFIG['resources']['memory']]
@@ -45,11 +45,6 @@ Vagrant.configure(2) do |config|
config.cache.scope = :machine
end
config.vm.define 'template' do |node|
node.vm.box = CONFIG['box']
node.vm.hostname = 'template'
end
CONFIG['address']['compute'].each_with_index do |address, index|
name = "compute#{index + 1}"
config.vm.define name do |node|

View File

@@ -15,17 +15,6 @@ echo "$(date) cleaning up"
rm -f log/*
vagrant destroy
vagrant box list | grep packstack-template > /dev/null
if [[ $? -ne 0 ]]; then
echo "$(date) preparing template"
vagrant up template 2>&1 >> log/template.log
vagrant halt template 2>&1 >> log/template.log
vagrant package --output packstack-template.box template 2>&1 >> log/template.log
vagrant destroy --force template 2>&1 >> log/template.log
vagrant box add --force --name packstack-template --provider virtualbox packstack-template.box 2>&1 >> log/template.log
rm -f packstack-template.box
fi
echo "$(date) brining up all VMs"
run 2 up --no-provision