better way to dl puppet releases
This commit is contained in:
parent
c012212cad
commit
5b22641cd4
1 changed files with 5 additions and 10 deletions
|
@ -8,16 +8,11 @@ set -e
|
||||||
stamp="$COSMOS_BASE/stamps/puppet-tools-v01.stamp"
|
stamp="$COSMOS_BASE/stamps/puppet-tools-v01.stamp"
|
||||||
|
|
||||||
if ! test -f $stamp -a -f /usr/bin/puppet; then
|
if ! test -f $stamp -a -f /usr/bin/puppet; then
|
||||||
#codename=`lsb_release -c| awk '{print $2}'`
|
codename=`lsb_release -c| awk '{print $2}'`
|
||||||
#puppetdeb="$COSMOS_REPO/apt/puppetlabs-release-${codename}.deb"
|
for fn in puppetlabs-release-${codename}.deb puppet-release-${codename}.deb; do
|
||||||
#if [ ! -f $puppetdeb ]; then
|
wget -c http://apt.puppetlabs.com/$fn && dpkg -i $fn
|
||||||
# echo "$0: Puppet deb for release $codename not found in $COSMOS_REPO/apt/"
|
rm -f $fn
|
||||||
# echo " Get it from https://apt.puppetlabs.com/ and put it in the Cosmos repo."
|
done
|
||||||
# exit 1
|
|
||||||
#fi
|
|
||||||
## The key currently in use does not appear to actually be installed with $puppetdeb
|
|
||||||
#test -f apt-key add $COSMOS_REPO/apt/keys/puppetlabs-EF8D349F.pub && apt-key add $COSMOS_REPO/apt/keys/puppetlabs-EF8D349F.pub
|
|
||||||
#dpkg -i $puppetdeb
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install puppet-common
|
apt-get -y install puppet-common
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue