X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;fp=manifests%2Fsource.pp;h=5fde580c07b875b58c3ed19ad1b86f5c275db71f;hb=3d3620ccd767ca8c4055f1c84a658c79de31fcb3;hp=fcdc4542143c8641e6f75668d9dce16fc35b6208;hpb=2109a42f564ae01bf60acfe4cdacbc685bac24dc;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index fcdc454..5fde580 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -55,9 +55,15 @@ # @param allow_unsigned # Specifies whether to authenticate packages from this release, even if the Release file is not signed or the signature can't be checked. # +# @param allow_insecure +# Specifies whether to allow downloads from insecure repositories. +# # @param notify_update # Specifies whether to trigger an `apt-get update` run. # +# @param check_valid_until +# Specifies whether to check if the package release date is valid. Defaults to `True`. +# define apt::source ( Optional[String] $location = undef, String $comment = $name, @@ -72,6 +78,7 @@ define apt::source ( Boolean $allow_unsigned = false, Boolean $allow_insecure = false, Boolean $notify_update = true, + Boolean $check_valid_until = true, ) { include ::apt @@ -136,10 +143,11 @@ define apt::source ( 'comment' => $comment, 'includes' => $includes, 'options' => delete_undef_values( { - 'arch' => $architecture, - 'trusted' => $allow_unsigned ? { true => 'yes', false => undef }, - 'allow-insecure' => $allow_insecure ? { true => 'yes', false => undef }, - 'signed-by' => $keyring, + 'arch' => $architecture, + 'trusted' => $allow_unsigned ? { true => 'yes', false => undef }, + 'allow-insecure' => $allow_insecure ? { true => 'yes', false => undef }, + 'signed-by' => $keyring, + 'check-valid-until' => $check_valid_until? { true => undef, false => 'false' }, }, ), 'location' => $_location,