Merge pull request #19 from theseal/master

Use puppet that comes with OS
This commit is contained in:
Gijutsu 2023-01-17 14:09:21 +01:00 committed by GitHub
commit aa115ce052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1 additions and 15 deletions

View file

@ -1,6 +0,0 @@
c8c591fc7bcc54c4a7cf35759ee35ef11936b9a8 puppetlabs-release_1.0-12_all.deb
d69b9a005a604a6739dbcf2524de53fdd93f135f puppetlabs-release_1.1-1_all.deb
761a213324fd1bfa7bc76dc46d6a58b29f17b1a3 puppetlabs-release-pc1_1.1.0-4xenial_all.deb
cfead6a6242a5407ea45ca9dd148c0e694df9ff8 puppetlabs-release-pc1_1.1.0-5yakkety_all.deb
f0c104d210956b4a934076b49fb124107237a4ca puppetlabs-release-pc1_1.1.0-5stretch_all.deb

View file

@ -8,16 +8,8 @@ set -e
stamp="$COSMOS_BASE/stamps/puppet-tools-v01.stamp"
if ! test -f $stamp -a -f /usr/bin/puppet; then
codename=`lsb_release -c| awk '{print $2}'`
puppetdeb="$COSMOS_REPO/apt/puppetlabs-release-${codename}.deb"
if [ ! -f $puppetdeb ]; then
echo "$0: Puppet deb for release $codename not found in $COSMOS_REPO/apt/"
echo " Get it from https://apt.puppetlabs.com/ and put it in the Cosmos repo."
exit 1
fi
dpkg -i $puppetdeb
apt-get update
apt-get -y install puppet-common
apt-get -y install puppet
mkdir -p `dirname $stamp`
touch $stamp