Fix MANAGE_REPOS for Debian-based OS

Change-Id: Iab59f0e818f8c5be1beba200f6c475669ce6ba0b
This commit is contained in:
Mohammed Naser 2017-10-09 14:27:38 -04:00 committed by Tobias Urdin
parent 9a40b662bf
commit a45fae3c03
1 changed files with 6 additions and 4 deletions

View File

@ -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)'