From 4cc08edcd3ea6391bfddf23f16a4b29fbfc2ff63 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Tue, 25 Nov 2014 14:45:41 -0800 Subject: [PATCH] Set modulepath to the first element of puppet's modulepath. This duplicates the behavior of puppet module install for the git clone operations. Puppet module install will use the first element of the modulepath. This makes the git clone operations go into the same directory as the modules installed via the puppet module tool. This helps us downstream because we are moving the directory that holds these modules out of /etc/ and into /opt/. Change-Id: I0c7833a6d9a79fa613efc9daebee916f3192306a --- install_modules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_modules.sh b/install_modules.sh index 3cb086219d..219c7c9231 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -MODULE_PATH=/etc/puppet/modules +MODULE_PATH=`puppet config print modulepath | cut -d ':' -f 1` SCRIPT_NAME=$(basename $0) SCRIPT_DIR=$(readlink -f "$(dirname $0)")