a14a288d18
By request, I am posting a cosmetic changeset to clean up spelling, formatting, whitespace, and comments (some visible by script users) in training-labs. A few variables and function names have been changed (decapitalization, consistency). Scope: This changeset does not affect the workings of the code and therefore does not fix bugs. Bug fixes go into separate patches. Special notes: * Scripts/Neutron/Neutron.sh still installs quantum, but the naming within said script is now consistent. That can only be temporary, a switch to a more recent release should happen soonish. * I left the numbers for steps in some scripts (Glance.sh); maybe the manuals are meant to refer to these numbers!? Of course, they will change occasionally (this time, for instance, I changed them to match the actual order). * Scripts that use non-standard functionality should use bash, not sh; shebangs fixed * I didn't touch README.md, training-guides-cluster-scripts.tar: these, too, are for a separate changeset Related-Bug: #1312764 Change-Id: I01005f96b03ef3fbeeaa0b9d9d0e804aaed7af83
31 lines
929 B
Bash
31 lines
929 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-guides/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
|