
PUPPET_VERSION is already used by puppetlabs/beaker and we don't want to overlap with this variable. So let's rename it to PUPPET_MAJ_VERSION to avoid strange behaviors when running Beaker jobs. Change-Id: I74be2eec2be53f59af196f37ee348ff6856af8bc
29 lines
606 B
Bash
Executable File
29 lines
606 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_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)'
|