Browse Source

Removed bullseye-specific hack as package is now available

pull/9/head
Julien Escario 3 years ago
parent
commit
9cc92c11f9
  1. 11
      foreman/altinea_puppet_install.sh

11
foreman/altinea_puppet_install.sh

@ -1,18 +1,7 @@
#!/bin/sh #!/bin/sh
apt -qqq install lsb-release curl apt -qqq install lsb-release curl
if [ `lsb_release -sc` = 'bullseye' ]; then
echo "Bullseye detected, installing repository directly"
echo "# Puppet 7 buster Repository
Types: deb
URIs: http://apt.puppetlabs.com
Suites: bullseye
Components: puppet7
Signed-By: /usr/share/keyrings/puppet-keyring.gpg" > /etc/apt/sources.list.d/puppet7.sources
curl -o /usr/share/keyrings/puppet-keyring.gpg https://apt.puppet.com/keyring.gpg
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 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 apt -qq update && apt -qqq install puppet-agent && apt clean
echo "[agent] echo "[agent]
server = foreman.altinea.fr server = foreman.altinea.fr

Loading…
Cancel
Save