From 9f14f75ec650a4563c95cbbe4ccf1aa65f2ba0c7 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Fri, 22 Dec 2017 15:29:24 +0100 Subject: [PATCH] Remove r10k env vars with proper args The PUPPETFILE and PUPPETFILE_DIR environment variables are deprecated since several releases and are superseeded by the --puppetfile and --moduledir arguments. [0] [1] This patch replaces all those occurences to future proof it when the env vars are removed. [0] http://logs.openstack.org/57/529657/2/check/puppet-openstack-integration-4-scenario004-tempest-ubuntu-xenial/ce6f987/job-output.txt.gz#_2017-12-21_22_52_53_499924 [1] https://github.com/puppetlabs/r10k/pull/479 Change-Id: I216fe01a13e46c90bbb1455df72b25daf899c9f0 --- functions | 16 +++++++++------- install_modules.sh | 4 ++-- install_modules_unit.sh | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/functions b/functions index 4343efae7..8aeb965f3 100644 --- a/functions +++ b/functions @@ -8,21 +8,22 @@ # # - ``SCRIPT_DIR`` must be set to script path # - ``GEM_BIN_DIR`` must be set to Gem bin directory +# - ``MODULES_DIR`` must be set to Puppet modules directory install_external() { - PUPPETFILE=${SCRIPT_DIR}/Puppetfile1 r10k -v DEBUG puppetfile install + r10k -v DEBUG puppetfile install --puppetfile ${SCRIPT_DIR}/Puppetfile1 --moduledir ${MODULES_DIR} } # Install Puppet OpenStack modules with zuul-cloner # Uses the following variables: # -# - ``PUPPETFILE_DIR`` must be set to Puppet modules directory +# - ``MODULES_DIR`` must be set to Puppet modules directory # - ``SCRIPT_DIR`` must be set to script path # - ``ZUUL_BRANCH`` must be set to Zuul branch. Fallback to 'master'. install_openstack() { cat > clonemap.yaml <