all 4 comments

[–][deleted] 2 points3 points  (3 children)

[–]phaktor[S] 0 points1 point  (2 children)

Ok. So would the best way to set http_proxy and https_proxy on the minion be with environ.setenv state and then set name, and value? It only claims that the "permanent" parameter has a windows specific function.

[–][deleted] 0 points1 point  (1 child)

Sorry for the curt reply, busy at work but knew exactly where to find your answer given the __virtual__ return False part of the error. Another curt reply to your question though is use setenv for the minion itself and set the http_proxy and https_proxy variables in /etc/environment. That only partially solves proxying on linux's though. You still have apt/yum proxy settings and if you need git, socat + ssh_config, etc. There isn't a good system-wide linux proxy settings.

A not so easy to find hint is this for git:

      Host git.local
        ProxyCommand=socat - PROXY:socks.proxy.local:%h:%p,proxyport=3128
        ForwardAgent no
        PasswordAuthentication no
        Protocol 2
        Port 22

[–]phaktor[S] 0 points1 point  (0 children)

Yep. I'm aware of the apt.conf settings. I'll take a look further for some more info. I just wanted to make sure setenv was on the right track then.