#
# Copyright 2011 Puppet Labs Inc, unless otherwise noted.
class apt::backports(
- $release = $lsbdistcodename,
- $location = $apt::params::backports_locations
+ $release = $::lsbdistcodename,
+ $location = $apt::params::backports_location
) inherits apt::params {
+ $release_real = downcase($release)
+
apt::source { 'backports.list':
location => $location,
- release => "${release}-backports",
- repos => $lsbdistid ? {
+ release => "${release_real}-backports",
+ repos => $::lsbdistid ? {
'debian' => 'main contrib non-free',
'ubuntu' => 'universe multiverse restricted',
},
- key => $lsbdistid ? {
+ key => $::lsbdistid ? {
'debian' => '55BE302B',
'ubuntu' => '437D05B5',
},
key_server => 'pgp.mit.edu',
pin => '200',
- notify => Exec["apt-get update"],
+ notify => Exec['apt_update'],
}
}
-