Create install_modules_unit.sh

Create install_modules_unit.sh that will install Puppet modules needed
to run unit tests.

Change-Id: Ia0f19b08d164442ca0fdb9d40fe3820c94e472d7
This commit is contained in:
Emilien Macchi 2015-10-05 16:44:59 -04:00
parent acb145de32
commit 151b40ba00

17
install_modules_unit.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#
# This script is used by Puppet OpenStack modules to prepare
# modules before running dependencies.
#
set -ex
if [ ! -z ${GEM_HOME} ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/
fi
export SCRIPT_DIR=$(readlink -f "$(dirname $0)")
export PUPPETFILE_DIR=${PUPPETFILE_DIR:-/etc/puppet/modules}
source $SCRIPT_DIR/functions
install_modules