We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee807bc commit 066e020Copy full SHA for 066e020
ubuntu.sh
@@ -50,10 +50,12 @@ DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -
50
51
echo "Puppet installed!"
52
53
-# Install RubyGems for the provider
54
-echo "Installing RubyGems..."
+# Install RubyGems for the provider, unless using puppet collections
55
if [ "$DISTRIB_CODENAME" != "trusty" ]; then
+ echo "Installing RubyGems..."
56
apt-get --yes install rubygems >/dev/null
57
fi
58
-gem install --no-ri --no-rdoc rubygems-update
59
-update_rubygems >/dev/null
+if [[ "${PUPPET_COLLECTION}" == "" ]]; then
+ gem install --no-ri --no-rdoc rubygems-update
60
+ update_rubygems >/dev/null
61
+fi
0 commit comments