X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=96c174c05e2539e25066198f3a931e36ac22e6af;hb=a8250aecfe56d56d1db99a81a71f18c8b28ae36e;hp=9b3405797a83b5734619ff300fca1f6006d99714;hpb=001e3a42b971b12305b50859f99d4bce3f422d46;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 9b34057..96c174c 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -6,21 +6,22 @@ define apt::source( $location = '', $release = $::apt::xfacts['lsbdistcodename'], $repos = 'main', - $include_src = false, - $include_deb = true, + $include = {}, $key = undef, $pin = false, $architecture = undef, - $trusted_source = false, + $allow_unsigned = false, ) { validate_string($architecture, $comment, $location, $repos) - validate_bool($trusted_source, $include_src, $include_deb) + validate_bool($allow_unsigned) + validate_hash($include) unless $release { fail('lsbdistcodename fact not available: release parameter required') } $_before = Apt::Setting["list-${title}"] + $_include = merge($::apt::include_defaults, $include) if $key { if is_hash($key) {