From 799715ce28faaf9d6d4c6e9128c3884a87698dfd Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sat, 22 Aug 2015 11:33:29 -0400 Subject: [PATCH] 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 --- install_modules.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_modules.sh b/install_modules.sh index 47c57748b..2bc95357f 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -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'/ \