Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Abs paths for all commands
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
pin.pp
1
# pin.pp
2
# pin a release in apt, useful for unstable repositories
3
4
define apt::pin(
5
$packages = '*',
6
$priority = 0
7
) {
8
9
include apt
10
11
file { "${name}.pref":
12
name => "${apt::root}/preferences.d/${name}",
13
ensure => file,
14
owner => root,
15
group => root,
16
mode => 644,
17
content => "# ${name}\nPackage: ${packages}\nPin: release a=${name}\nPin-Priority: ${priority}",
18
}
19
20
}