Cleanup apt-module puppet-lint related issues.
#
# Copyright 2011 Puppet Labs Inc, unless otherwise noted.
class apt::backports(
- $release = $lsbdistcodename,
+ $release = $::lsbdistcodename,
$location = $apt::params::backports_location
) inherits apt::params {
apt::source { 'backports.list':
location => $location,
release => "${release_real}-backports",
- repos => $lsbdistid ? {
+ 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_update"],
+ notify => Exec['apt_update'],
}
}
}
exec { "apt-builddep-${name}":
- command => "/usr/bin/apt-get -y --force-yes build-dep $name",
- notify => Exec["apt-update-${name}"],
+ command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
+ notify => Exec["apt-update-${name}"],
}
}
define apt::conf (
$priority = '50',
$content
- ) {
+) {
include apt::params
}
$sources_list_content = $purge_sources_list ? {
- false => undef,
+ false => undef,
true => "# Repos managed by puppet.\n",
}
$apt_conf_d = "${root}/apt.conf.d"
$preferences_d = "${root}/preferences.d"
- case $lsbdistid {
+ case $::lsbdistid {
'debian': {
$backports_location = 'http://backports.debian.org/debian-backports'
}
'ubuntu': {
- case $lsbdistcodename {
+ case $::lsbdistcodename {
'hardy','lucid','maverick','natty','oneiric','precise': {
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
}
# ppa.pp
define apt::ppa(
- $release = $lsbdistcodename
+ $release = $::lsbdistcodename
) {
Class['apt'] -> Apt::Ppa[$title]