|
1 | 1 | # @summary Manages Apt pins. Does not trigger an apt-get update run. |
2 | 2 | # |
3 | | -# @see http://linux.die.net/man/5/apt_preferences for context on these parameters |
| 3 | +# @see https://manpages.debian.org/stable/apt/apt_preferences.5.en.html for context on these parameters |
4 | 4 | # |
5 | 5 | # @param ensure |
6 | | -# Specifies whether the pin should exist. Valid options: 'file', 'present', and 'absent'. |
| 6 | +# Specifies whether the pin should exist. |
7 | 7 | # |
8 | 8 | # @param explanation |
9 | 9 | # Supplies a comment to explain the pin. Default: "${caller_module_name}: ${name}". |
|
15 | 15 | # Specifies which package(s) to pin. |
16 | 16 | # |
17 | 17 | # @param priority |
18 | | -# Sets the priority of the package. If multiple versions of a given package are available, `apt-get` installs the one with the highest |
19 | | -# priority number (subject to dependency constraints). Valid options: an integer. |
| 18 | +# Sets the priority of the package. If multiple versions of a given package are available, `apt-get` installs the one with the highest |
| 19 | +# priority number (subject to dependency constraints). |
20 | 20 | # |
21 | 21 | # @param release |
22 | 22 | # Tells APT to prefer packages that support the specified release. Typical values include 'stable', 'testing', and 'unstable'. |
|
34 | 34 | # Names the label of the packages in the directory tree of the Release file. |
35 | 35 | # |
36 | 36 | # @param origin |
37 | | -# The package origin |
| 37 | +# The package origin (the hostname part of the package's sources.list entry) |
38 | 38 | # |
39 | 39 | # @param version |
40 | 40 | # The version of the package |
41 | 41 | # |
42 | 42 | # @param codename |
43 | | -# The codename of the package |
| 43 | +# The codename of the release |
44 | 44 | # |
45 | 45 | define apt::pin ( |
46 | 46 | Enum['file', 'present', 'absent'] $ensure = present, |
47 | | - Optional[String] $explanation = undef, |
48 | | - Variant[Integer] $order = 50, |
49 | | - Variant[String, Array] $packages = '*', |
50 | | - Variant[Numeric, String] $priority = 0, |
51 | | - Optional[String] $release = undef, # a= |
52 | | - Optional[String] $origin = undef, |
53 | | - Optional[String] $version = undef, |
54 | | - Optional[String] $codename = undef, # n= |
55 | | - Optional[String] $release_version = undef, # v= |
56 | | - Optional[String] $component = undef, # c= |
57 | | - Optional[String] $originator = undef, # o= |
58 | | - Optional[String] $label = undef, # l= |
| 47 | + Optional[String[1]] $explanation = undef, |
| 48 | + Variant[Integer[0]] $order = 50, |
| 49 | + Variant[String[1], Array[String[1]]] $packages = '*', |
| 50 | + Variant[Integer, String[1]] $priority = 0, |
| 51 | + Optional[String[1]] $release = undef, # a= |
| 52 | + Optional[String[1]] $origin = undef, |
| 53 | + Optional[String[1]] $version = undef, |
| 54 | + Optional[String[1]] $codename = undef, # n= |
| 55 | + Optional[String[1]] $release_version = undef, # v= |
| 56 | + Optional[String[1]] $component = undef, # c= |
| 57 | + Optional[String[1]] $originator = undef, # o= |
| 58 | + Optional[String[1]] $label = undef, # l= |
59 | 59 | ) { |
60 | 60 | if $explanation { |
61 | 61 | $_explanation = $explanation |
|
0 commit comments