Browse Source

Added support for bullseye

(very)quiet apt
pull/1/head
Julien Escario 3 years ago
parent
commit
b5649fe666
  1. 10
      foreman/altinea_puppet_install.sh

10
foreman/altinea_puppet_install.sh

@ -1,6 +1,14 @@
#!/bin/sh
apt install -y lsb-release curl && curl -sL -o /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb https://apt.puppet.com/puppet7-release-`lsb_release -c -s`.deb && dpkg -i /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb && apt update && apt install -y puppet-agent && apt clean
apt -qqq install lsb-release curl
if [ `lsb_release -sc` = 'bullseye' ]; then
echo "Bullseye detected, installing repository directly"
echo "# Puppet 7 buster Repository
deb http://apt.puppetlabs.com bullseye puppet7" > /etc/apt/sources.list.d/puppet7.list
else
curl -sL -o /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb https://apt.puppet.com/puppet7-release-`lsb_release -c -s`.deb && dpkg -i /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb
fi
apt -qq update && apt -qqq install puppet-agent && apt clean
echo "[agent]
server = foreman.altinea.fr
runinterval = 600

Loading…
Cancel
Save