Let's say we have a list of packages you want to install from backports like this:
$backports = [ 'pkg1', 'pkg2' ]
There are a couple of things you have to do:
Add the backports repository to sources.list(.d)
apt::source { 'debian-backports':
location => "ftp://$SERVER/debian",
repos => 'main contrib non-free',
release => 'jessie-backports'
}
pin the packages to a priority of 500 or higher
apt::pin { 'backports_packages':
packages => $backports,
priority => 600,
release => 'jessie-backports'
}
set "ensure => latest", not installed/present
package { $backports: ensure => latest }
No comments:
Post a Comment