53eb3a966d
Those small typos and non-idiom can lead to unexpected behavior, better fix them now. Change-Id: I218ba0f3bba832d0929fb52c21f7e66774da494e Closes-Bug: #1561539
24 lines
486 B
Bash
Executable File
24 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script is used by Puppet OpenStack modules to prepare
|
|
# modules before running dependencies.
|
|
#
|
|
|
|
set -ex
|
|
|
|
if [ -n "${GEM_HOME}" ]; then
|
|
GEM_BIN_DIR=${GEM_HOME}/bin/
|
|
fi
|
|
|
|
if [ "${PUPPET_VERSION}" = 4 ]; then
|
|
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
|
else
|
|
export PUPPET_BASE_PATH=/etc/puppet
|
|
fi
|
|
|
|
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
|
export PUPPETFILE_DIR=${PUPPETFILE_DIR:-${PUPPET_BASE_PATH}/modules}
|
|
source $SCRIPT_DIR/functions
|
|
|
|
install_modules
|