Skip to content

Commit e62ba4d

Browse files
author
Dean Troyer
committed
Cleanup tools scripts
* whitespace and comment cleanups only Change-Id: I4e631e9a9b8151758dc8c96b3aef76b963d5ea7e
1 parent c4cd414 commit e62ba4d

14 files changed

+57
-20
lines changed

tools/build_bm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
2+
3+
# **build_bm.sh**
4+
25
# Build an OpenStack install on a bare metal machine.
36
set +x
47

tools/build_bm_multi.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
2+
3+
# **build_bm_multi.sh**
4+
25
# Build an OpenStack install on several bare metal machines.
36
SHELL_AFTER_RUN=no
47

tools/build_pxe_env.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -e
2-
# build_pxe_env.sh - Create a PXE boot environment
2+
3+
# **build_pxe_env.sh**
4+
5+
# Create a PXE boot environment
36
#
47
# build_pxe_env.sh destdir
58
#

tools/build_ramdisk.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash
2-
# build_ramdisk.sh - Build RAM disk images
32

4-
# exit on error to stop unexpected errors
3+
# **build_ramdisk.sh**
4+
5+
# Build RAM disk images
6+
7+
# Exit on error to stop unexpected errors
58
set -o errexit
69

710
if [ ! "$#" -eq "1" ]; then
@@ -84,7 +87,7 @@ fi
8487
# Finds the next available NBD device
8588
# Exits script if error connecting or none free
8689
# map_nbd image
87-
# returns full nbd device path
90+
# Returns full nbd device path
8891
function map_nbd {
8992
for i in `seq 0 15`; do
9093
if [ ! -e /sys/block/nbd$i/pid ]; then
@@ -105,7 +108,7 @@ function map_nbd {
105108
echo $NBD
106109
}
107110

108-
# prime image with as many apt/pips as we can
111+
# Prime image with as many apt/pips as we can
109112
DEV_FILE=$CACHEDIR/$DIST_NAME-dev.img
110113
DEV_FILE_TMP=`mktemp $DEV_FILE.XXXXXX`
111114
if [ ! -r $DEV_FILE ]; then
@@ -127,11 +130,11 @@ if [ ! -r $DEV_FILE ]; then
127130
mkdir -p $MNTDIR/$DEST
128131
chroot $MNTDIR chown stack $DEST
129132

130-
# a simple password - pass
133+
# A simple password - pass
131134
echo stack:pass | chroot $MNTDIR chpasswd
132135
echo root:$ROOT_PASSWORD | chroot $MNTDIR chpasswd
133136

134-
# and has sudo ability (in the future this should be limited to only what
137+
# And has sudo ability (in the future this should be limited to only what
135138
# stack requires)
136139
echo "stack ALL=(ALL) NOPASSWD: ALL" >> $MNTDIR/etc/sudoers
137140

@@ -143,7 +146,8 @@ if [ ! -r $DEV_FILE ]; then
143146
fi
144147
rm -f $DEV_FILE_TMP
145148

146-
# clone git repositories onto the system
149+
150+
# Clone git repositories onto the system
147151
# ======================================
148152

149153
IMG_FILE_TMP=`mktemp $IMG_FILE.XXXXXX`

tools/build_tempest.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
#
3-
# build_tempest.sh - Checkout and prepare a Tempest repo
4-
# (https://github.com/openstack/tempest.git)
3+
# **build_tempest.sh**
4+
5+
# Checkout and prepare a Tempest repo: https://github.com/openstack/tempest.git
56

67
function usage {
78
echo "$0 - Check out and prepare a Tempest repo"

tools/build_uec.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# **build_uec.sh**
4+
35
# Make sure that we have the proper version of ubuntu (only works on oneiric)
46
if ! egrep -q "oneiric" /etc/lsb-release; then
57
echo "This script only works with ubuntu oneiric."

tools/build_uec_ramdisk.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
2-
# build_uec_ramdisk.sh - Build RAM disk images based on UEC image
32

4-
# exit on error to stop unexpected errors
3+
# **build_uec_ramdisk.sh**
4+
5+
# Build RAM disk images based on UEC image
6+
7+
# Exit on error to stop unexpected errors
58
set -o errexit
69

710
if [ ! "$#" -eq "1" ]; then
@@ -58,7 +61,7 @@ DIST_NAME=${DIST_NAME:-oneiric}
5861
# Configure how large the VM should be
5962
GUEST_SIZE=${GUEST_SIZE:-2G}
6063

61-
# exit on error to stop unexpected errors
64+
# Exit on error to stop unexpected errors
6265
set -o errexit
6366
set -o xtrace
6467

tools/build_usb_boot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -e
2-
# build_usb_boot.sh - Create a syslinux boot environment
2+
3+
# **build_usb_boot.sh**
4+
5+
# Create a syslinux boot environment
36
#
47
# build_usb_boot.sh destdev
58
#

tools/configure_tempest.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
#
3-
# configure_tempest.sh - Build a tempest configuration file from devstack
3+
# **configure_tempest.sh**
4+
5+
# Build a tempest configuration file from devstack
46

57
echo "**************************************************"
68
echo "Configuring Tempest"

tools/copy_dev_environment_to_uec.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# **copy_dev_environment_to_uec.sh**
4+
35
# Echo commands
46
set -o xtrace
57

0 commit comments

Comments
 (0)