Fix MANAGE_REPOS for Debian-based OS
Change-Id: Iab59f0e818f8c5be1beba200f6c475669ce6ba0b
This commit is contained in:
parent
9a40b662bf
commit
a45fae3c03
10
functions
10
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)'
|
||||
|
Loading…
x
Reference in New Issue
Block a user