From: Tomas Barton Date: Mon, 11 Sep 2017 16:44:00 +0000 (+0200) Subject: support ubuntu X-Git-Tag: 4.2.0~10^2~2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1c4abcdbc971f15577cdb65ddb156fca1933b3ef;p=puppet-modules%2Fpuppetlabs-apt.git support ubuntu --- diff --git a/manifests/setting.pp b/manifests/setting.pp index cee854c..333f553 100644 --- a/manifests/setting.pp +++ b/manifests/setting.pp @@ -50,13 +50,19 @@ define apt::setting ( notify => $_notify, } - case $::operatingsystem { + # required for adding apt GPG keys + case $facts['os']['name'] { 'Debian': { if versioncmp($facts['os']['release']['full'], '9.0') >= 0 { - # require for adding apt GPG keys ensure_packages(['dirmngr']) } } + 'Ubuntu': { + if versioncmp($facts['os']['release']['full'], '17.04') >= 0 { + ensure_packages(['dirmngr']) + } + } + default: { } } }