X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=f4489cdcb5556e45008b62985f493308168126ed;hb=4fa28203b9ca3f12395d0d81df5a690063fc2b47;hp=42dd6b01290bae1783aadccaaae56eb84708f572;hpb=1c707c7d323f80502e09008351c5007b385a1c97;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index 42dd6b0..f4489cd 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,9 +1,5 @@ class apt::params { - if defined('$caller_module_name') and $caller_module_name and $caller_module_name != $module_name { - fail('apt::params is a private class and cannot be accessed directly') - } - if $::osfamily != 'Debian' { fail('This module only works on Debian or derivatives like Ubuntu') } @@ -87,6 +83,11 @@ class apt::params { 'source' => undef, } + $include_defaults = { + 'deb' => true, + 'src' => false, + } + case $xfacts['lsbdistid'] { 'ubuntu', 'debian': { $distid = $xfacts['lsbdistid']