22c29c79ac
This makes gem binary usage consistent (i.e, r10k) and prevents encoutering a command not found error. Change-Id: I3ef01274417cd88403d71af0e6216850d77cc81c Closes-Bug: #1592113
30 lines
645 B
Bash
Executable File
30 lines
645 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/
|
|
export PATH=${PATH}:${GEM_BIN_DIR}
|
|
fi
|
|
|
|
if [ "${PUPPET_MAJ_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
|
|
|
|
print_header 'Start (install_modules.sh)'
|
|
|
|
print_header 'Install Modules'
|
|
install_modules
|
|
|
|
print_header 'Done (install_modules.sh)'
|