Update manifests/init.pp

If a proxy is set and then later unset we need to remove the proxy file. As it currently sits it'll just sit there hanging out.
This commit is contained in:
Scott Barber 2012-11-01 14:08:28 -06:00 committed by Ken Barber
parent 4f83e75083
commit 1b07921c0c

View file

@ -105,6 +105,12 @@ class apt(
content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";", content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";",
notify => Exec['apt_update'], notify => Exec['apt_update'],
} }
} else {
file { 'configure-apt-proxy':
path => "${apt_conf_d}/proxy",
ensure => absent
notify => Exec['apt_update'],
}
} }
# Need anchor to provide containment for dependencies. # Need anchor to provide containment for dependencies.