if $purge_preferences {
file { 'apt-preferences':
- ensure => absent,
- path => "${root}/preferences",
+ ensure => absent,
+ path => "${root}/preferences",
}
}
}
false: {
file { '99progressbar':
- ensure => absent,
- path => "${apt_conf_d}/99progressbar",
+ ensure => absent,
+ path => "${apt_conf_d}/99progressbar",
}
}
undef: {} # do nothing
case $proxy_host {
false, '', undef: {
file { '01proxy':
- ensure => absent,
- path => "${apt_conf_d}/01proxy",
- notify => Exec['apt_update'],
+ ensure => absent,
+ path => "${apt_conf_d}/01proxy",
+ notify => Exec['apt_update'],
}
}
default: {
}
file { 'old-proxy-file':
- ensure => absent,
- path => "${apt_conf_d}/proxy",
- notify => Exec['apt_update'],
+ ensure => absent,
+ path => "${apt_conf_d}/proxy",
+ notify => Exec['apt_update'],
}
# Need anchor to provide containment for dependencies.
'squeeze': {
$backports_location = 'http://backports.debian.org/debian-backports'
$legacy_origin = true
- $origins = ['${distro_id} oldstable',
- '${distro_id} ${distro_codename}-security',
- '${distro_id} ${distro_codename}-lts']
+ $origins = ['${distro_id} oldstable', #lint:ignore:single_quote_string_with_variables
+ '${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
+ '${distro_id} ${distro_codename}-lts'] #lint:ignore:single_quote_string_with_variables
}
'wheezy': {
$backports_location = 'http://ftp.debian.org/debian/'
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
$ppa_options = undef
$legacy_origin = true
- $origins = ['${distro_id} ${distro_codename}-security']
+ $origins = ['${distro_id} ${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
}
'precise', 'trusty': {
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
$ppa_options = '-y'
$legacy_origin = true
- $origins = ['${distro_id}:${distro_codename}-security']
+ $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
}
default: {
$backports_location = 'http://old-releases.ubuntu.com/ubuntu'
$ppa_options = '-y'
$legacy_origin = true
- $origins = ['${distro_id}:${distro_codename}-security']
+ $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
}
}
}
$proxy_env = []
}
exec { "add-apt-repository-${name}":
- environment => $proxy_env,
- command => "/usr/bin/add-apt-repository ${options} ${name}",
- unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}",
- user => 'root',
- logoutput => 'on_failure',
- notify => Exec['apt_update'],
- require => [
+ environment => $proxy_env,
+ command => "/usr/bin/add-apt-repository ${options} ${name}",
+ unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}",
+ user => 'root',
+ logoutput => 'on_failure',
+ notify => Exec['apt_update'],
+ require => [
File['sources.list.d'],
Package[$package],
],