From cb49670f5795a0a5bebb5e9f19b9bb8205f67cf6 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Fri, 13 Aug 2021 17:22:28 +0200 Subject: [PATCH] Secured package signature handle --- foreman/altinea_puppet_install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/foreman/altinea_puppet_install.sh b/foreman/altinea_puppet_install.sh index 35d7357..a72f4c6 100644 --- a/foreman/altinea_puppet_install.sh +++ b/foreman/altinea_puppet_install.sh @@ -4,7 +4,12 @@ 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 + 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.list + 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 fi