* if http proxy is set without an https proxy apt will still attempt to
proxy those https sources, resulting in errors. This fix will allow
direct connect to the https urls, bypassing the http proxy. This is the
most simple fix for this problem, a more complex fix would be to have an
https_direct setting.
fix test for https proxy bypass
is_expected.to contain_apt__setting('conf-proxy').with(priority: '01').with_content(
/Acquire::http::proxy "http:\/\/localhost:8080\/";/,
).without_content(
- %r{Acquire::https::proxy},
+ %r{Acquire::https::proxy "DIRECT"},
)
}
end
is_expected.to contain_apt__setting('conf-proxy').with(priority: '01').with_content(
/Acquire::http::proxy "http:\/\/localhost:8180\/";/,
).without_content(
- %r{Acquire::https::proxy},
+ %r{Acquire::https::proxy "DIRECT"},
)
}
end
Acquire::http::proxy "http://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
<%- if $proxies['https'] { %>
Acquire::https::proxy "https://<%= $proxies['host'] %>:<%= $proxies['port'] %>/";
+<%- } else { -%>
+ Acquire::https::proxy "DIRECT";
<%- } -%>