module-puppetlabs-apt/manifests/pin.pp
2012-03-21 13:35:48 +00:00

19 lines
426 B
Puppet

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