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
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 :(
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
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.
Activity
basepi commentedon Oct 30, 2013
Yes, we would definitely like to support proxies here. Thanks for the request.
cmrichards commentedon Mar 23, 2015
What's the recommended way to use an http proxy with file.managed? Has this been fixed yet?
The-Loeki commentedon Oct 8, 2015
It's semi-fixed;
If you specify
requests_lib: Truein 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 :(
porterjamesj commentedon Oct 8, 2015
@otrempe proxies were supported well in the 2014 series, so you could downgrade to 2014.7.
otrempe commentedon Oct 8, 2015
@porterjamesj
I reported this issue almost 2 years ago. 2014.7 was not released at that time.
porterjamesj commentedon Oct 8, 2015
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.
The-Loeki commentedon Oct 9, 2015
@porterjamesj well I made it that ;) I searched the issue list before posting my own, hence the interconnection between these issues
mrproper commentedon Dec 8, 2015
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
stale commentedon Feb 19, 2018
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.
joachimtingvold commentedon Sep 28, 2019
As with #23617, this is not really solved (i.e. it should be refined more).