From 5481e4a51a5a33381f792e207e57f34466b3b4e6 Mon Sep 17 00:00:00 2001 From: Adam Henry Lewenberg <adamhl@stanford.edu> Date: Fri, 3 Sep 2021 17:12:56 -0700 Subject: [PATCH] only install ubuntu-archive-keyring in buster or sid --- manifests/init.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index dcf73a0..0a6fa04 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -96,7 +96,15 @@ class su_debuild ( ## Install ubuntu-archive-keyring # We add the Ubuntu keyring in case we want to build Ubuntu packages. - package {'ubuntu-archive-keyring': ensure => installed } + # This package is not (yet) in bullseye, so we only install it for + # buster, stretch, or sid. + case $::lsbdistcodename { + 'buster', 'stretch', 'sid': { + package { + 'ubuntu-archive-keyring': ensure => installed; + } + } + } # Additional packages to build kernel modules. case $::lsbdistcodename { -- GitLab