3c8f4ccd85
It broke all unit tests jobs: http://logs.openstack.org/98/535698/16/gate/puppet-openstack-unit-4.8-centos-7/bd7dedf/job-output.txt.gz#_2018-02-05_23_19_05_369251 This reverts commit 9f14f75ec650a4563c95cbbe4ccf1aa65f2ba0c7. Change-Id: Ibcb2bb60a668d232371e4d87febad6d67b3302d8
33 lines
739 B
Bash
Executable File
33 lines
739 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_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)'
|