9f14f75ec6
The PUPPETFILE and PUPPETFILE_DIR environment variables are deprecated since several releases and are superseeded by the --puppetfile and --moduledir arguments. [0] [1] This patch replaces all those occurences to future proof it when the env vars are removed. [0] http://logs.openstack.org/57/529657/2/check/puppet-openstack-integration-4-scenario004-tempest-ubuntu-xenial/ce6f987/job-output.txt.gz#_2017-12-21_22_52_53_499924 [1] https://github.com/puppetlabs/r10k/pull/479 Change-Id: I216fe01a13e46c90bbb1455df72b25daf899c9f0
33 lines
733 B
Bash
Executable File
33 lines
733 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 MODULES_DIR=${MODULES_DIR:-${PUPPET_BASE_PATH}/modules}
|
|
source $SCRIPT_DIR/functions
|
|
|
|
print_header 'Start (install_modules_unit.sh)'
|
|
|
|
print_header 'Install Modules'
|
|
install_modules
|
|
|
|
print_header 'Module List'
|
|
puppet module list --modulepath ./spec/fixtures/modules
|
|
|
|
print_header 'Done (install_modules_unit.sh)'
|