1 # This adds the necessary components to get backports for ubuntu and debian
6 # The ubuntu/debian release name. Defaults to $lsbdistcodename. Setting this
7 # manually can cause undefined behavior. (Read: universe exploding)
11 # include apt::backports
13 # class { 'apt::backports':
19 # Ben Hughes, I think. At least blame him if this goes wrong. I just added puppet doc.
23 # Copyright 2011 Puppet Labs Inc, unless otherwise noted.
25 $release = $::lsbdistcodename,
26 $location = $apt::params::backports_location
27 ) inherits apt::params {
29 $release_real = downcase($release)
31 apt::source { 'backports.list':
32 location => $location,
33 release => "${release_real}-backports",
34 repos => $::lsbdistid ? {
35 'debian' => 'main contrib non-free',
36 'ubuntu' => 'universe multiverse restricted',
38 key => $::lsbdistid ? {
39 'debian' => '55BE302B',
40 'ubuntu' => '437D05B5',
42 key_server => 'pgp.mit.edu',