Add support for openSUSE Leap

openSUSE Leap ships puppet 3.x by default, so no need for a
clumsy unmaintained 3rd party repo.

Change-Id: I9b8fe7a229ad48fc86c1f299d81d3094c378ef41
This commit is contained in:
Dirk Mueller 2017-02-22 22:37:07 +01:00
parent 47d5314b47
commit 9635e7b7cb
1 changed files with 1 additions and 4 deletions

View File

@ -214,10 +214,7 @@ EOF
}
function setup_puppet_opensuse {
local version=`grep -e "VERSION_ID" /etc/os-release | tr -d "\"" | cut -d "=" -f2`
zypper ar http://download.opensuse.org/repositories/systemsmanagement:/puppet/openSUSE_${version}/systemsmanagement:puppet.repo
zypper -v --gpg-auto-import-keys --no-gpg-checks -n ref
zypper --non-interactive in --force-resolution puppet
zypper -n in --force-resolution puppet
# Wipe out templatedir so we don't get warnings about it
sed -i '/templatedir/d' /etc/puppet/puppet.conf
}