Closed fitzy101 closed 2 years ago
@fitzy101 A potential solve for this issue has been pushed up. If you have time could you review it and check whether it works as you wished? https://github.com/puppetlabs/puppetlabs-apt/pull/1042
Closing this issue as a feature PR has been merged. Release will follow
Use Case
I would like to manage configuration for the Debian snapshot repositories using
apt::source
, however there is currently no way to add thecheck-valid-until
option at a per-repository granularity. This is required when using the Debian security snapshots, because the Release files specify a Valid-Until date only a short time in the future. For more information about snapshot repositories, see https://snapshot.debian.org/.From the snapshot documentation (link above):
Describe the Solution You Would Like
An additional configuration option for the
apt::source
module,check_valid_until: Boolean
, e.g.Which resolves in an on-disk representation including the
[check-valid-until=no]
option in theapt.lists.d
file.Describe Alternatives You've Considered
As above, it is possible to set this globally for
apt
to ignore all Valid-Until dates.