puppetlabs / puppetlabs-apt

Puppet module to help manage Apt
https://forge.puppetlabs.com/puppetlabs/apt
Apache License 2.0
216 stars 462 forks source link

apt-key is deprecated for key usage on debian and ubuntu #1106

Open aqueos opened 1 year ago

aqueos commented 1 year ago

## Describe the Bug

apt::key use tha apt-key command which is deprecated

https://manpages.debian.org/bullseye/apt/apt-key.8.fr.html

NAME apt-key - Deprecated APT key management utility

## Expected Behavior

The module should put keys in

/etc/apt/trusted.gpg.d/${name}.gpg

## Steps to Reproduce

Use apt::key in any modern debian and you will got the error: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

each time you use apt.

## Environment

Additional Context

as apt-key is deprecated the module should add the keys in /etc/apt/trusted.gpg.d and not anymore use the debian deprecated utility apt-key.

best regards, Ghislain.

kenyon commented 1 year ago

Duplicates #1034.