X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fproxy.epp;h=34e193076d00ece851c092d2c7c896c7123563ce;hb=refs%2Fheads%2Frelease-prep;hp=94e41af55d438404e0841871856694fa381abfef;hpb=59d1f996fa72a6f1f0e24f51468eab14a19e6e41;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/proxy.epp b/templates/proxy.epp index 94e41af..34e1930 100644 --- a/templates/proxy.epp +++ b/templates/proxy.epp @@ -1,7 +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'] %>/"; -<%- } else { -%> - Acquire::https::proxy "DIRECT"; +<%- } elsif $proxies['direct'] { -%> +Acquire::https::proxy "DIRECT"; <%- } -%>