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_locations
27 ) inherits apt::params {
29 apt::source { 'backports.list':
30 location => $location,
31 release => "${release}-backports",
32 repos => $lsbdistid ? {
33 'debian' => 'main contrib non-free',
34 'ubuntu' => 'universe multiverse restricted',
37 'debian' => '55BE302B',
38 'ubuntu' => '437D05B5',
40 key_server => 'pgp.mit.edu',
42 notify => Exec["apt-get update"],