// Configuration du proxy pour apt

%if %%getVar('activer_apt_cacher', 'non') == 'oui'
  %if %%getVar('mode_conteneur_actif', 'non') == 'oui' and %%current_container['name'] != 'root'
Acquire::http::Proxy "http://%%adresse_ip_br0:%%apt_cacher_port";
  %else
Acquire::http::Proxy "http://localhost:%%apt_cacher_port";
  %end if
%elif %%activer_proxy_client == 'oui'
Acquire::http::Proxy "http://%%proxy_client_adresse:%%proxy_client_port";
//HTTPProxyUsername myusername
//HTTPProxyPassword mypass
%else
//Pas de proxy
%end if
