Merge "Source modules.env from apply-test.sh"

This commit is contained in:
Jenkins 2014-11-25 20:27:46 +00:00 committed by Gerrit Code Review
commit 7defc1a55b
3 changed files with 37 additions and 7 deletions

View File

@ -34,6 +34,11 @@ declare -A MODULES
# key:value is source location, revision to checkout # key:value is source location, revision to checkout
declare -A SOURCE_MODULES declare -A SOURCE_MODULES
# Array of modues to be installed from source and without dependency resolution from openstack git
# key:value is source location, revision to checkout
declare -A INTEGRATION_MODULES
#NOTE: if we previously installed kickstandproject-ntp we nuke it here #NOTE: if we previously installed kickstandproject-ntp we nuke it here
# since puppetlabs-ntp and kickstandproject-ntp install to the same dir # since puppetlabs-ntp and kickstandproject-ntp install to the same dir
if grep kickstandproject-ntp /etc/puppet/modules/ntp/Modulefile &> /dev/null; then if grep kickstandproject-ntp /etc/puppet/modules/ntp/Modulefile &> /dev/null; then

View File

@ -54,10 +54,16 @@ MODULES["puppetlabs-rabbitmq"]="4.0.0"
# we do not update local branches in this script. # we do not update local branches in this script.
SOURCE_MODULES["https://github.com/puppet-community/puppet-module-puppetboard"]="2.4.0" SOURCE_MODULES["https://github.com/puppet-community/puppet-module-puppetboard"]="2.4.0"
# Add modules that should be part of the openstack-infra integration test here # Add modules that should be part of the openstack-infra integration test here
INTEGRATION_MODULES["https://git.openstack.org/openstack-infra/puppet-storyboard"]="origin/master"
INTEGRATION_MODULES["https://git.openstack.org/openstack-infra/puppet-kibana"]="origin/master"
INTEGRATION_MODULES["https://git.openstack.org/openstack-infra/puppet-jenkins"]="origin/master"
if [[ "$PUPPET_INTEGRATION_TEST" -ne "1" ]]; then if [[ "$PUPPET_INTEGRATION_TEST" -ne "1" ]]; then
SOURCE_MODULES["https://git.openstack.org/openstack-infra/puppet-storyboard"]="origin/master" # If puppet integration tests are not being run, merge SOURCE and INTEGRATION modules
SOURCE_MODULES["https://git.openstack.org/openstack-infra/puppet-kibana"]="origin/master" for MOD in ${!INTEGRATION_MODULES[*]}; do
SOURCE_MODULES["https://git.openstack.org/openstack-infra/puppet-jenkins"]="origin/master" SOURCE_MODULES[$MOD]=${INTEGRATION_MODULES[$MOD]}
done
fi fi

View File

@ -27,13 +27,32 @@ clonemap:
dest: '/etc/puppet/modules/\2' dest: '/etc/puppet/modules/\2'
EOF EOF
# Add puppet modules that should be installed to the end of this list # These arrays are initialized here and populated in modules.env
# Array of modules to be installed key:value is module:version.
declare -A MODULES
# Array of modues to be installed from source and without dependency resolution.
# key:value is source location, revision to checkout
declare -A SOURCE_MODULES
# Array of modues to be installed from source and without dependency resolution from openstack git
# key:value is source location, revision to checkout
declare -A INTEGRATION_MODULES
project_names=""
source modules.env
for MOD in ${!INTEGRATION_MODULES[*]}; do
project_scope=$(basename `dirname $MOD`)
repo_name=`basename $MOD`
project_names+=" $project_scope/$repo_name"
done
sudo -E /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ sudo -E /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
git://git.openstack.org \ git://git.openstack.org \
openstack-infra/puppet-storyboard \
openstack-infra/project-config \ openstack-infra/project-config \
openstack-infra/puppet-jenkins \ $project_names
openstack-infra/puppet-kibana
if [[ ! -d applytest ]] ; then if [[ ! -d applytest ]] ; then