Sha256: 106d383a067ddb68a03716d598644f86a3a93ed3ed2d3d078ff5b1c36affd3c5

Contents?: true

Size: 1.98 KB

Versions: 15

Compression:

Stored size: 1.98 KB

Contents

#!/bin/bash
#-------------------------------------------------------------------------------
#
# bootstrap.sh
#
#-------------------------------------------------------------------------------
# Help

if [ -z "$HELP" ]
then
export HELP="
This script bootstraps a machine with all of the components (packages and 
configurations) it needs to run the CORL system.

Systems initialized:

* Git    - Git packages installed

* Ruby   - Ruby 1.9.x packages installed
         - Execution alternative configuration (if applicable)

* Puppet - PuppetLabs Apt source initialized (if applicable)
         - Puppet and dependencies installed
         - Hiera configured

* CORL  - CORL gem and dependencies installed

--------------------------------------------------------------------------------
Tested under Ubuntu 12.04 LTS
Licensed under GPLv3

See the project page at: http://github.com/coralnexus/coral-bootstrap
Report issues here:      http://github.com/coralnexus/coral-bootstrap/issues
"
fi

if [ -z "$USAGE" ]
then
export USAGE="
usage: bootstrap.sh [ -h | --help ]  | Show usage information
--------------------------------------------------------------------------------
"
fi

#-------------------------------------------------------------------------------
# Parameters

STATUS=0
SCRIPT_DIR="$(cd "$(dirname "$([ `readlink "$0"` ] && echo "`readlink "$0"`" || echo "$0")")"; pwd -P)"
SHELL_LIB_DIR="$SCRIPT_DIR/lib/shell"

source "$SHELL_LIB_DIR/load.sh" || exit 1

#---

PARAMS=`normalize_params "$@"`

parse_flag '-h|--help' HELP_WANTED

# Standard help message.
if [ "$HELP_WANTED" ]
then
    echo "$HELP"
    echo "$USAGE"
    exit 0
fi
if [ $STATUS -ne 0 ]
then
    echo "$USAGE"
    exit $STATUS    
fi

#-------------------------------------------------------------------------------
# Utilities

BOOTSTRAP_SCRIPTS="$SCRIPT_DIR/os/$OS/*.sh"

#---

for SCRIPT in $BOOTSTRAP_SCRIPTS
do
  echo "Processing: $SCRIPT"
  source "$SCRIPT"
  STATUS=$?
  
  if [ $STATUS -ne 0 ]
  then
  	exit $STATUS
  fi
done
exit $STATUS

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
corl-0.4.15 bootstrap/bootstrap.sh
corl-0.4.14 bootstrap/bootstrap.sh
corl-0.4.13 bootstrap/bootstrap.sh
corl-0.4.12 bootstrap/bootstrap.sh
corl-0.4.11 bootstrap/bootstrap.sh
corl-0.4.10 bootstrap/bootstrap.sh
corl-0.4.9 bootstrap/bootstrap.sh
corl-0.4.8 bootstrap/bootstrap.sh
corl-0.4.7 bootstrap/bootstrap.sh
corl-0.4.6 bootstrap/bootstrap.sh
corl-0.4.5 bootstrap/bootstrap.sh
corl-0.4.4 bootstrap/bootstrap.sh
corl-0.4.3 bootstrap/bootstrap.sh
corl-0.4.2 bootstrap/bootstrap.sh
corl-0.4.1 bootstrap/bootstrap.sh