install_modules: cleanup /etc/puppet/modules
Make sure there is no puppet modules pre-installed in the image where we run integration testing by cleaning up the /etc/puppet/modules/* directory. Change-Id: I489717356b75b95c1a881b6f3e554cfec66ee6f1
This commit is contained in:
parent
ddf2a559cf
commit
799715ce28
@ -33,6 +33,9 @@ install_all() {
|
||||
|
||||
gem install r10k --no-ri --no-rdoc
|
||||
|
||||
# make sure there is no puppet module pre-installed
|
||||
rm -rf "${PUPPETFILE_DIR:?}/"*
|
||||
|
||||
# If zuul-cloner is there, have it install modules using zuul refs
|
||||
if [ -e /usr/zuul-env/bin/zuul-cloner ] ; then
|
||||
csplit ${SCRIPT_DIR}/Puppetfile /'External modules'/ \
|
||||
|
Loading…
Reference in New Issue
Block a user