update pre-task for puppet

This commit is contained in:
Erik Bergström 2023-07-05 12:54:50 +02:00
parent 3e218ac8b7
commit ebb2865ff4
No known key found for this signature in database
GPG key ID: 49A4251C96E0A9D4

View file

@ -8,13 +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}'`
for fn in puppetlabs-release-${codename}.deb puppet-release-${codename}.deb; do
wget -c http://apt.puppetlabs.com/$fn && dpkg -i $fn
rm -f $fn
done
apt-get update
apt-get -y install puppet-common
apt-get -y install puppet-common || apt-get -y install puppet
mkdir -p `dirname $stamp`
touch $stamp