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",
- content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
- notify => Exec['apt_update'],
- mode => '0644',
- owner => root,
- group => root,
+ ensure => absent,
+ path => "${apt_conf_d}/01proxy",
+ notify => Exec['apt_update'],
}
}
default: {
file { '01proxy':
ensure => present,
path => "${apt_conf_d}/01proxy",
+ content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
notify => Exec['apt_update'],
+ mode => '0644',
+ owner => root,
+ group => root,
}
}
}
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.