X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsetting.pp;h=333f5534ad6c49a108a2eda7e570206a79833299;hb=1c4abcdbc971f15577cdb65ddb156fca1933b3ef;hp=cee854c9e8aecef48872035cf915e6e8dcaa215d;hpb=c1473996642fdbd45482045c2c331f306c33d2f9;p=puppet-modules%2Fpuppetlabs-apt.git 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: { } } }