X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Finit.pp;h=aa61986d21fdc992b3b3cecf85c898f6ea35a7f1;hb=4ea96b8d7ec3dd0d6acabb1d7718f96b8def614c;hp=319e0649cd74fc0695f13afc8119804f289db7fb;hpb=90f5fdbce44d5fe61a70fb2129e01785e95c3218;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/init.pp b/manifests/init.pp index 319e064..aa61986 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -78,6 +78,9 @@ class apt ( if $proxy['https']{ assert_type(Boolean, $proxy['https']) } + if $proxy['direct']{ + assert_type(Boolean, $proxy['direct']) + } $_proxy = merge($apt::proxy_defaults, $proxy) @@ -183,7 +186,7 @@ class apt ( # required for adding GPG keys on Debian 9 (and derivatives) case $facts['os']['name'] { 'Debian': { - if versioncmp($facts['os']['release']['full'], '9.0') >= 0 { + if versioncmp($facts['os']['release']['major'], '9') >= 0 { ensure_packages(['dirmngr']) } }