|
55 | 55 | # @param allow_unsigned |
56 | 56 | # Specifies whether to authenticate packages from this release, even if the Release file is not signed or the signature can't be checked. |
57 | 57 | # |
| 58 | +# @param allow_insecure |
| 59 | +# Specifies whether to allow downloads from insecure repositories. |
| 60 | +# |
58 | 61 | # @param notify_update |
59 | 62 | # Specifies whether to trigger an `apt-get update` run. |
60 | 63 | # |
| 64 | +# @param check_valid_until |
| 65 | +# Specifies whether to check if the package release date is valid. Defaults to `True`. |
| 66 | +# |
61 | 67 | define apt::source ( |
62 | 68 | Optional[String] $location = undef, |
63 | 69 | String $comment = $name, |
|
72 | 78 | Boolean $allow_unsigned = false, |
73 | 79 | Boolean $allow_insecure = false, |
74 | 80 | Boolean $notify_update = true, |
| 81 | + Boolean $check_valid_until = true, |
75 | 82 | ) { |
76 | 83 | include ::apt |
77 | 84 |
|
|
136 | 143 | 'comment' => $comment, |
137 | 144 | 'includes' => $includes, |
138 | 145 | 'options' => delete_undef_values( { |
139 | | - 'arch' => $architecture, |
140 | | - 'trusted' => $allow_unsigned ? { true => 'yes', false => undef }, |
141 | | - 'allow-insecure' => $allow_insecure ? { true => 'yes', false => undef }, |
142 | | - 'signed-by' => $keyring, |
| 146 | + 'arch' => $architecture, |
| 147 | + 'trusted' => $allow_unsigned ? { true => 'yes', false => undef }, |
| 148 | + 'allow-insecure' => $allow_insecure ? { true => 'yes', false => undef }, |
| 149 | + 'signed-by' => $keyring, |
| 150 | + 'check-valid-until' => $check_valid_until? { true => undef, false => 'false' }, |
143 | 151 | }, |
144 | 152 | ), |
145 | 153 | 'location' => $_location, |
|
0 commit comments