From 1b07921c0c59dcf77987ac29c21d9909dfdb38f5 Mon Sep 17 00:00:00 2001 From: Scott Barber Date: Thu, 1 Nov 2012 14:08:28 -0600 Subject: [PATCH] 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. --- manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index b8e356c..21f36bd 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -105,6 +105,12 @@ class apt( content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";", 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. -- 2.45.2