From cf77be5c48db38a35db589357a6243f5b028b33b Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Thu, 9 Jan 2020 16:22:28 +0100 Subject: [PATCH] Make gem install options explicit The default behavior of `gem install` with regard to the location of the installed gems and binaries is different in CentOS7, CentOS8 and Ubuntu so let's make options explicit to get the desired behavior in all cases and configurations, what means getting gems installed under GEM_HOME to avoid depending on system wise PATH declarations and installed gems. Change-Id: I992a930491f65ba9871c3f94806afce54bef9c7b --- all-in-one.sh | 2 +- install_modules.sh | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/all-in-one.sh b/all-in-one.sh index f09c17c83..b76d48799 100755 --- a/all-in-one.sh +++ b/all-in-one.sh @@ -64,7 +64,7 @@ print_header 'Install Bundler' mkdir -p .bundled_gems export GEM_HOME=`pwd`/.bundled_gems ruby < 1.0 # which is not compatible with dependency of latest r10k on semantic_puppet ~> 0.1.0 -gem install puppet_forge -v '= 2.2.6' --verbose -gem install r10k -v 2.6.4 --no-ri --no-rdoc --verbose +$GEM_INSTALL_CMD puppet_forge -v '= 2.2.6' +$GEM_INSTALL_CMD r10k -v 2.6.4 # make sure there is no puppet module pre-installed rm -rf "${PUPPETFILE_DIR:?}/"*