Fix service logs gathering when using RDO puppet package

This is follow-up of [1]. When using puppet package from RDO, default
location for modules is /etc/puppet/modules/.

[1] https://review.opendev.org/c/openstack/puppet-openstack-integration/+/832265

Change-Id: Ic476cb40c375d05d6897d016677fcebd623a4b97
This commit is contained in:
Alfredo Moralejo 2022-08-09 16:19:54 +02:00
parent ef9c0eaecf
commit f9711ee6b2
1 changed files with 4 additions and 1 deletions

View File

@ -37,9 +37,12 @@ LOG_DIR=$WORKSPACE/logs
if [ -d "${WORKSPACE}/spec/fixtures/modules" ]; then
# Litmus job
PUPPET_MODULES_PATH="${WORKSPACE}/spec/fixtures/modules"
else
elif [ -d "/etc/puppetlabs/code/modules" ]; then
# Integration job
PUPPET_MODULES_PATH='/etc/puppetlabs/code/modules'
else
# Integration tests with RDO puppet package
PUPPET_MODULES_PATH='/etc/puppet/modules'
fi
for project in $PUPPET_MODULES_PATH/*; do