diff --git a/manifests/init.pp b/manifests/init.pp index 4aa4a68ccd..704311061b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -358,4 +358,20 @@ if $pins { create_resources('apt::pin', $pins) } + + case $facts['os']['name'] { + 'Debian': { + if versioncmp($facts['os']['release']['major'], '9') >= 0 { + ensure_packages(['gnupg']) + } + } + 'Ubuntu': { + if versioncmp($facts['os']['release']['full'], '17.04') >= 0 { + ensure_packages(['gnupg']) + } + } + default: { + # Nothing in here + } + } }