Skip to content

Support http_proxy/https_proxy for sources #8177

Closed

Description

@otrempe

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.

Activity

  1. basepi commented on Oct 30, 2013

    @basepi
    Contributor

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

  2. cmrichards commented on Mar 23, 2015

    @cmrichards

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

  3. The-Loeki commented on Oct 8, 2015

    @The-Loeki
    Contributor

    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 :(

  4. porterjamesj commented on Oct 8, 2015

    @porterjamesj
    Contributor

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

  5. otrempe commented on Oct 8, 2015

    @otrempe
    ContributorAuthor

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

  6. porterjamesj commented on Oct 8, 2015

    @porterjamesj
    Contributor

    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.

  7. The-Loeki commented on Oct 9, 2015

    @The-Loeki
    Contributor

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

  8. mrproper commented on Dec 8, 2015

    @mrproper
    Contributor

    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

  9. stale commented on Feb 19, 2018

    @stale

    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.

  10. joachimtingvold commented on Sep 28, 2019

    @joachimtingvold

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featurestale

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions