Skip to content

Commit

Permalink
Merge pull request puppetlabs#135 from CERIT-SC/master
Browse files Browse the repository at this point in the history
Support APT pinning by codename
  • Loading branch information
hunner committed Jul 1, 2013
2 parents 0665a5d + 3191f05 commit e17208a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/pin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$packages = '*',
$priority = 0,
$release = '',
$codename = '',
$origin = '',
$originator = '',
$version = ''
Expand All @@ -23,6 +24,8 @@

if $release != '' {
$pin = "release a=${release}"
} elsif $codename != '' {
$pin = "release n=${codename}"
} elsif $origin != '' {
$pin = "origin \"${origin}\""
} elsif $originator != '' {
Expand Down

0 comments on commit e17208a

Please sign in to comment.