salt icon indicating copy to clipboard operation
salt copied to clipboard

Support http_proxy/https_proxy for sources

Open otrempe opened this issue 13 years ago • 10 comments

For example, a file.managed with source pointing to a file on a HTTP location will not work if you are behind a proxy.

Same thing with a "Windows software repository" package for which the source points to an HTTP location.

Having the ability to specify http_proxy to be able to download the source would be a nice improvement.

otrempe avatar Oct 30 '13 17:10 otrempe

Yes, we would definitely like to support proxies here. Thanks for the request.

basepi avatar Oct 30 '13 18:10 basepi

What's the recommended way to use an http proxy with file.managed? Has this been fixed yet?

cmrichards avatar Mar 23 '15 15:03 cmrichards

It's semi-fixed; If you specify requests_lib: True in you minion conf (and have Python requests lib naturally), requests lib listens to the environment.

So running a minion with the environment variables http_proxy, https_proxy, ftp_proxy etc. set, requests will automagically use that. OR if you want to override it; you can specify a environ.setenv before running the requesting state, that works too.

For now however, I came here because in 2015.8 using requests seems broken, and the Tornado client that's now the default doesn't do this :(

The-Loeki avatar Oct 08 '15 12:10 The-Loeki

@otrempe proxies were supported well in the 2014 series, so you could downgrade to 2014.7.

porterjamesj avatar Oct 08 '15 16:10 porterjamesj

@porterjamesj I reported this issue almost 2 years ago. 2014.7 was not released at that time.

otrempe avatar Oct 08 '15 18:10 otrempe

oh wow sorry, I missed that, I thought this was part of the recent wave of proxy-support-is-broken-in-the-2015-release issues.

porterjamesj avatar Oct 08 '15 20:10 porterjamesj

@porterjamesj well I made it that ;) I searched the issue list before posting my own, hence the interconnection between these issues

The-Loeki avatar Oct 09 '15 07:10 The-Loeki

I've done a PR which has been merged which addresses some of these issues, basically you can define: proxy_host/proxy_port/proxy_username/proxy_password in the /etc/salt/minion config and the file.managed resources will use the proxy supplied

#29322

mrproper avatar Dec 08 '15 07:12 mrproper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Feb 19 '18 00:02 stale[bot]

As with #23617, this is not really solved (i.e. it should be refined more).

joachimtingvold avatar Sep 28 '19 22:09 joachimtingvold