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.
20 # I just added puppet doc.
24 # Copyright 2011 Puppet Labs Inc, unless otherwise noted.
26 $release = $::lsbdistcodename,
27 $location = $apt::params::backports_location
28 ) inherits apt::params {
30 $release_real = downcase($release)
31 $key = $::lsbdistid ? {
32 'debian' => '55BE302B',
33 'ubuntu' => '437D05B5',
35 $repos = $::lsbdistid ? {
36 'debian' => 'main contrib non-free',
37 'ubuntu' => 'main universe multiverse restricted',
40 apt::source { 'backports':
41 location => $location,
42 release => "${release_real}-backports",
45 key_server => 'pgp.mit.edu',