module-puppetlabs-apt/manifests/pin.pp
2011-03-11 17:02:50 +00:00

20 lines
380 B
Puppet

# pin.pp
# pin a release in apt, useful for unstable repositories
define apt::pin(
$packages = '*',
$priority = 0
) {
include apt
file { "${name}.pref":
name => "${apt::root}/preferences.d/${name}",
ensure => file,
owner => root,
group => root,
mode => 644,
content => "# ${name}\nPackage: ${packages}\nPin: release a=${name}\nPin-Priority: ${priority}",
}
}