X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fproxy.erb;h=670e3a7e870fe24f7fa21e1e4a6147a29163a50b;hb=5e0128cc86bf89c870607c3abbeee8eeb48dc2c5;hp=accb0ccee8dad67ede066a86745a2373935ab75b;hpb=443db5a7c24fc7186ed10d9dc5af5b8eaef88ede;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/proxy.erb b/templates/proxy.erb index accb0cc..670e3a7 100644 --- a/templates/proxy.erb +++ b/templates/proxy.erb @@ -1 +1,4 @@ -Acquire::http::Proxy "http://<%= @proxy_host %>:<%= @proxy_port %>"; +Acquire::http::proxy "http://<%= @_proxy['host'] %>:<%= @_proxy['port'] %>/"; +<%- if @_proxy['https'] %> +Acquire::https::proxy "https://<%= @_proxy['host'] %>:<%= @_proxy['port'] %>/"; +<%- end -%>