(MODULES-11301) Don't install gnupg if not needed
authorSimon Deziel <simon@sdeziel.info>
Thu, 17 Mar 2022 03:15:12 +0000 (23:15 -0400)
committerSimon Deziel <simon@sdeziel.info>
Thu, 17 Mar 2022 03:33:36 +0000 (23:33 -0400)
apt::key has the needed ensure_packages() to bring gnupg only
when needed.

Signed-off-by: Simon Deziel <simon@sdeziel.info>
manifests/init.pp

index 2f82b7d8fdb40f374552f1a15b57006f9f8cb49f..7e4b4c981cc97d9f8db4631af8f005c309cc93bd 100644 (file)
@@ -361,7 +361,4 @@ class apt (
   if $pins {
     create_resources('apt::pin', $pins)
   }
-
-  # required for adding GPG keys on Debian 9 (and derivatives)
-  ensure_packages(['gnupg'])
 }