Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
46613667ebc0eabe9ad7a299dd0008748d99cba6
[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::params
10
11
file { "${name}.pref":
12
ensure => file,
13
path => "${apt::params::root}/preferences.d/${name}",
14
owner => root,
15
group => root,
16
mode => '0644',
17
content => "# ${name}\nPackage: ${packages}\nPin: release a=${name}\nPin-Priority: ${priority}",
18
}
19
}