diff --git a/functions b/functions index d5294f475..56bda86b9 100644 --- a/functions +++ b/functions @@ -126,10 +126,12 @@ install_puppet() { print_header 'Setup (Debian based)' # Puppetlabs packaging: # - xenial: puppet4 only - echo "deb ${NODEPOOL_PUPPETLABS_MIRROR} `lsb_release -s -c` PC1" | $SUDO tee /etc/apt/sources.list.d/puppetlabs.list - $SUDO apt-key add files/GPG-KEY-puppetlabs - $SUDO apt-key add files/GPG-KEY-ceph - $SUDO apt-get update + if [ "${MANAGE_REPOS}" == "true" ] ; then + echo "deb ${NODEPOOL_PUPPETLABS_MIRROR} `lsb_release -s -c` PC1" | $SUDO tee /etc/apt/sources.list.d/puppetlabs.list + $SUDO apt-key add files/GPG-KEY-puppetlabs + $SUDO apt-key add files/GPG-KEY-ceph + $SUDO apt-get update + fi $SUDO apt-get install -y ${PUPPET_PKG} elif is_fedora; then print_header 'Setup (RedHat based)'