File: pin.pref.epp

package info (click to toggle)
puppet-module-puppetlabs-apt 9.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 572 kB
  • sloc: ruby: 438; sh: 31; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%>
<%-
$pin =
if $pin_release != '' {
  $options = [
    unless $release =~ Undef         { "a=${release}" },
    unless $codename =~ Undef        { "n=${codename}" },
    unless $release_version =~ Undef { "v=${release_version}"},
    unless $component =~ Undef       { "c=${component}" },
    unless $originator =~ Undef      { "o=${originator}" },
    unless $label =~ Undef           { "l=${label}" },
    ].filter |$x| { $x != undef }
   "release ${options.join(', ')}" }

elsif $version and "${version}".length > 0 {
   "version ${version}" }
elsif $origin and $origin.length > 0 {
   "origin ${origin}" }
else {
  "release a=${name}" #Default value
}
-%>
Explanation: <%= $explanation %>
Package: <%= $packages_string %>
Pin: <%= $pin %>
Pin-Priority: <%= $priority %>