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:
parent
4f83e75083
commit
1b07921c0c
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue