summaryrefslogtreecommitdiff
path: root/code/environments/production/modules/apt/templates/pin.pref.epp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:59:26 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:59:26 +0200
commit3f1bbf87bbcc3daa15cd7391b2949b5bf742781b (patch)
treee7c058c84b2d8aebb84db73bb00429cdf284fc13 /code/environments/production/modules/apt/templates/pin.pref.epp
parent852be73c92e8a950dd0c3514cadd67058717b212 (diff)
downloadpuppet.FWSECK-3f1bbf87bbcc3daa15cd7391b2949b5bf742781b.tar.gz
puppet.FWSECK-3f1bbf87bbcc3daa15cd7391b2949b5bf742781b.tar.bz2
puppet.FWSECK-3f1bbf87bbcc3daa15cd7391b2949b5bf742781b.zip
modules/apt: Ship puppetlabs-apt module v4.5.1.
Diffstat (limited to 'code/environments/production/modules/apt/templates/pin.pref.epp')
-rw-r--r--code/environments/production/modules/apt/templates/pin.pref.epp26
1 files changed, 26 insertions, 0 deletions
diff --git a/code/environments/production/modules/apt/templates/pin.pref.epp b/code/environments/production/modules/apt/templates/pin.pref.epp
new file mode 100644
index 0000000..7991332
--- /dev/null
+++ b/code/environments/production/modules/apt/templates/pin.pref.epp
@@ -0,0 +1,26 @@
+<%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%>
+<%-
+$pin =
+if $pin_release.length > 0 {
+ $options = [
+ if $release { "a=${release}" },
+ if $codename { "n=${codename}" },
+ if $release_version { "v=${release_version}"},
+ if $component { "c=${component}" },
+ if $originator { "o=${originator}" },
+ if $label { "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 %>