047ea125dd
In puppet 6 they have moved out a lot of builtin resources to their owns modules since they didn't belong in the Puppet core however in deb/rpm packaging they are still bundled in but not when installing from gem. So we must add them in here so that they are available in our unit tests. Change-Id: I7060191395eff9c1e3146cb10594a38bef113117
28 lines
654 B
Bash
Executable File
28 lines
654 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
|
|
|
|
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
|
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_unit
|
|
|
|
print_header 'Module List'
|
|
puppet module list --modulepath ./spec/fixtures/modules
|
|
|
|
print_header 'Done (install_modules_unit.sh)'
|