2015-10-05 16:44:59 -04:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script is used by Puppet OpenStack modules to prepare
|
|
|
|
# modules before running dependencies.
|
|
|
|
#
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-03-24 14:39:05 +01:00
|
|
|
if [ -n "${GEM_HOME}" ]; then
|
2015-10-05 16:44:59 -04:00
|
|
|
GEM_BIN_DIR=${GEM_HOME}/bin/
|
2016-06-13 14:11:46 -04:00
|
|
|
export PATH=${PATH}:${GEM_BIN_DIR}
|
2015-10-05 16:44:59 -04:00
|
|
|
fi
|
|
|
|
|
2018-02-06 15:51:26 +01:00
|
|
|
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
2015-10-15 09:59:57 -05:00
|
|
|
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
2018-02-06 03:34:34 +00:00
|
|
|
export PUPPETFILE_DIR=${PUPPETFILE_DIR:-${PUPPET_BASE_PATH}/modules}
|
2015-10-05 16:44:59 -04:00
|
|
|
source $SCRIPT_DIR/functions
|
|
|
|
|
2017-11-20 09:17:52 -08:00
|
|
|
print_header 'Start (install_modules_unit.sh)'
|
2016-04-14 14:04:57 -06:00
|
|
|
|
|
|
|
print_header 'Install Modules'
|
2018-11-20 01:23:37 +01:00
|
|
|
install_modules_unit
|
2016-04-14 14:04:57 -06:00
|
|
|
|
2017-11-20 09:17:52 -08:00
|
|
|
print_header 'Module List'
|
|
|
|
puppet module list --modulepath ./spec/fixtures/modules
|
|
|
|
|
|
|
|
print_header 'Done (install_modules_unit.sh)'
|