c57d2dd5dd
A few of these fixes are absolutely horrendous but we have no choice as we need to stay current- and future-parser compatible for now. Once we can go Puppet 4 only we can use the `$facts` hash lookup instead which will return undef/nil for things that aren't set instead of them not being defined at all.
21 lines
719 B
Text
21 lines
719 B
Text
<%-
|
|
@pin = "release a=#{@name}" # default value
|
|
if @pin_release.length > 0
|
|
options = []
|
|
options.push("a=#{@release}") if @release.length > 0
|
|
options.push("n=#{@codename}") if @codename.length > 0
|
|
options.push("v=#{@release_version}") if @release_version.length > 0
|
|
options.push("c=#{@component}") if @component.length > 0
|
|
options.push("o=#{@originator}") if @originator.length > 0
|
|
options.push("l=#{@label}") if @label.length > 0
|
|
@pin = "release #{options.join(', ')}"
|
|
elsif @version.length > 0
|
|
@pin = "version #{@version}"
|
|
elsif @origin.length > 0
|
|
@pin = "origin #{@origin}"
|
|
end
|
|
-%>
|
|
Explanation: <%= @_explanation %>
|
|
Package: <%= @packages_string %>
|
|
Pin: <%= @pin %>
|
|
Pin-Priority: <%= @priority %>
|