You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to bring up a Windows guest that sits behind a corporate proxy. Lucky me. At the moment the omnibus downloader for Windows doesn't allow http_proxy environment variables to be honoured (as far as I can tell).
By changing the powershell command that downloads the omnibus installer from...
...I am able to download files through the standard ...install.msi?v=... or through the Vagrantfile install_url config setting or OMNIBUS_INSTALL_URL if I have the http_proxy environment variable set to an appropriate proxy.
Would it be possible to add this to future versions of this plugin?
I've not raised a pull request as some of the proxy functionality appears to be hindered by #74 (which I've also edited as per @williambailey instructions within that issue).
The text was updated successfully, but these errors were encountered:
With some further testing today I noticed that the commands above did not honour the NO_PROXY settings in case you use the install_url settings to point to a local (non-proxied) location. Here is a revised command that adds the NO_PROXY locations to the download client to allow remote or local downloading...
I need to be able to bring up a Windows guest that sits behind a corporate proxy. Lucky me. At the moment the omnibus downloader for Windows doesn't allow
http_proxy
environment variables to be honoured (as far as I can tell).By changing the powershell command that downloads the omnibus installer from...
powershell -command "(New-Object System.Net.WebClient).DownloadFile('#{url}?v=%version%', '%dest%')"
...to...
powershell -command "$proxy = New-Object System.Net.WebProxy($env:http_proxy); $webclient = New-Object System.Net.WebClient; $webclient.proxy = $proxy; $webclient.DownloadFile('#{url}?v=%version%', '%dest%')"
...I am able to download files through the standard ...
install.msi?v=
... or through the Vagrantfileinstall_url
config setting orOMNIBUS_INSTALL_URL
if I have thehttp_proxy
environment variable set to an appropriate proxy.Would it be possible to add this to future versions of this plugin?
I've not raised a pull request as some of the proxy functionality appears to be hindered by #74 (which I've also edited as per @williambailey instructions within that issue).
The text was updated successfully, but these errors were encountered: