Update apt cookbook

This commit is contained in:
Greg Karékinian
2018-04-17 13:43:22 +02:00
parent 6a86fc64fa
commit b92cc6e5d7
21 changed files with 833 additions and 441 deletions

View File

@@ -0,0 +1,11 @@
Acquire::http::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>";
<% if @server['proxy_ssl'] %>
Acquire::https::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>";
<% else %>
Acquire::https::Proxy "DIRECT";
<% end %>
<% unless @server['cache_bypass'].nil? %>
<% @server['cache_bypass'].each do |bypass, type| %>
Acquire::<%= type %>::Proxy::<%= bypass %> "DIRECT";
<% end %>
<% end %>