openstack-manuals/doc/training-guide/training-labs/allinone.sh
Pranav Salunke 17a71372dd Added New Files for Vagrant Install Mode
Vagrant uses eth0 of the Virtual Machine for communicating with the
VM, manually changing the network port is not possible as Vagrant
overrides it. So change in the network interfaces is done as a work
around till we get a fix for this issue.

b/p training-manuals

Change-Id: I618058c0c5395c00fd21168ee973aca7ec68f19f
2013-10-18 10:08:08 +05:30

30 lines
920 B
Bash

# allinone.sh
#
# Author: Trevor Roberts Jr (VMTrooper@gmail.com)
# This script is called by the Vagrant Shell Provisioner to build the student's lab machine.
#
# Vagrant's Shell Provisioner receives deployment instructions from this file.
# Removing this file without removing the Shell Provisioner command in the Vagrantfile
# will cause deployment errors
#
# See the remaining OpenStack Training Labs code for more details at GitHub:
# https://github.com/openstack/openstack-manuals/tree/master/doc/training-guide/training-labs
#Change to the root user
sudo su -
cd ~
#Get latest catalogs from Ubuntu
apt-get update
apt-get install -y vim
#Copy the deployment scripts to /root
cp -avr /vagrant/Scripts .
cd Scripts
mkdir Logs
#Execute the deployment scripts
#./auto_scripts.sh
echo "Execute PreInstall Script to Build Student Environment"
bash PreInstall/Vagrant-PreInstall.sh "single-node" > Logs/PreInstall.log