d8a1e4ee9d
- Removes coupling between global data and resources from apt class. - Makes it easier to organize things into stages.
19 lines
398 B
Puppet
19 lines
398 B
Puppet
# pin.pp
|
|
# pin a release in apt, useful for unstable repositories
|
|
|
|
define apt::pin(
|
|
$packages = '*',
|
|
$priority = 0
|
|
) {
|
|
|
|
file { "${name}.pref":
|
|
ensure => file,
|
|
owner => root,
|
|
group => root,
|
|
mode => 644,
|
|
content => "# ${name}\nPackage: ${packages}\nPin: release a=${name}\nPin-Priority: ${priority}",
|
|
}
|
|
include apt::params
|
|
|
|
name => "${apt::params::root}/preferences.d/${name}",
|
|
}
|