openstack-manuals/doc/training-guides/training-labs/singlenode.sh
Roger Luethi a14a288d18 training-labs scripts cleanup
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
2014-04-25 20:29:19 +02:00

59 lines
1.5 KiB
Bash
Executable File

#!/bin/sh
#
# About: Set up dependencies for VirtualBox sandbox meant for OpenStack Labs.
#
# Contact: pranav@aptira.com
# Copyright: Aptira @aptira,aptira.com
# License: Apache Software License (ASL) 2.0
###############################################################################
# #
# Carry out tasks for setting up single node environment for OpenStack #
# #
###############################################################################
echo "Single node"
uname=
pass=
vm_id=
# Download the VM from repo/storage space on the Internet
# Register the VM and start the VM
# Execute the single node script to configure the network and getting Ubuntu
# ready for OpenStack
vboxmanage guestcontrol $vm_id execute --image "/bin/ls" --username $uname --password $pass --wait-exit --wait-stdout
# Snapshot 1. Basic settings
# Execute the single node install scripts and take snapshots after each script
# 1. Download all the packages using apt-get --download-only but not installing
# them.
# 2. Snapshot 2. Offline ready
# 3. Keystone
# 4. Snapshot 3. Keystone ready
# 5. Glance
# 6. Snapshot 4. Glance ready
# 7. Quantum
# 8. Snapshot 5. Quantum ready
# 9. Nova
# 10. Snapshot 6. Nova ready
# 11. Cinder
# 12. Snapshot 7. Cinder ready
# 13. Horizon
# 14. Snapshot 8. Horizon ready
# 15. Configure and kickstart VM in OpenStack
# 16. Snapshot 9. OpenStack configured