X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fproxy.epp;h=34e193076d00ece851c092d2c7c896c7123563ce;hb=refs%2Fheads%2Frelease-prep;hp=0cbccb847b46f9337f5214d56bccfd0e50c05f3d;hpb=bd3b3fbe990bfa824ebed3504c0c82175d7c7ec9;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/proxy.epp b/templates/proxy.epp index 0cbccb8..34e1930 100644 --- a/templates/proxy.epp +++ b/templates/proxy.epp @@ -1,5 +1,10 @@ <%- | Hash $proxies | -%> +<% $proxies['perhost'].each |$proxy| { -%> +Acquire::<%= $proxy['scheme'] %>::proxy::<%= $proxy['scope'] %> "<%= $proxy['target'] %>"; +<% } -%> Acquire::http::proxy "http://<%= $proxies['host'] %>:<%= $proxies['port'] %>/"; <%- if $proxies['https'] { %> Acquire::https::proxy "https://<%= $proxies['host'] %>:<%= $proxies['port'] %>/"; +<%- } elsif $proxies['direct'] { -%> +Acquire::https::proxy "DIRECT"; <%- } -%>