{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23617","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23617/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23617/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23617/events","html_url":"https://github.com/saltstack/salt/issues/23617","id":75732322,"number":23617,"title":"file.managed with proxy broken in 2015.5","user":{"login":"porterjamesj","id":2532521,"avatar_url":"https://avatars.githubusercontent.com/u/2532521?v=3","gravatar_id":"","url":"https://api.github.com/users/porterjamesj","html_url":"https://github.com/porterjamesj","followers_url":"https://api.github.com/users/porterjamesj/followers","following_url":"https://api.github.com/users/porterjamesj/following{/other_user}","gists_url":"https://api.github.com/users/porterjamesj/gists{/gist_id}","starred_url":"https://api.github.com/users/porterjamesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porterjamesj/subscriptions","organizations_url":"https://api.github.com/users/porterjamesj/orgs","repos_url":"https://api.github.com/users/porterjamesj/repos","events_url":"https://api.github.com/users/porterjamesj/events{/privacy}","received_events_url":"https://api.github.com/users/porterjamesj/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":41388135,"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766164,"url":"https://api.github.com/repos/saltstack/salt/labels/P1","name":"P1","color":"2181ee","default":false},{"id":194768064,"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0","default":false},{"id":43087608,"url":"https://api.github.com/repos/saltstack/salt/labels/Regression","name":"Regression","color":"e11d21","default":false},{"id":41387450,"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3228,"closed_issues":4124,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-11-04T04:12:33Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-05-12T20:42:48Z","updated_at":"2016-11-04T05:09:57Z","closed_at":null,"body":"Hey all, I have a state that looks something like this:\n\n``` yaml\nunzip:\n  pkg.installed\n\nhttp_proxy:\n  environ.setenv:\n    - value: 'http://proxy-url'\n\nhttps_proxy:\n  environ.setenv:\n    - value: 'https://proxy-url'\n\n/usr/local/bin/consul_dir:\n  archive.extracted:\n    - source: https://dl.bintray.com/mitchellh/consul/0.5.0_linux_amd64.zip\n    - archive_format: zip\n    - source_hash: sha256=161f2a8803e31550bd92a00e95a3a517aa949714c19d3124c46e56cfdc97b088\n    - require:\n        - environ: http_proxy\n        - environ: https_proxy\n        - pkg: unzip\n```\n\nwhere `proxy-url` is a standin for the actual url of my http proxy. With a 2014.7 minion the archive extracted fine, with a  2015.5 minion, I get:\n\n``` yaml\n----------\n          ID: /usr/local/bin/consul_dir\n    Function: archive.extracted\n      Result: False\n     Comment: Unable to manage file: [Errno 111] Connection refused\n     Started: 17:58:15.121916\n    Duration: 420.282 ms\n     Changes:\n----------\n```\n\nDebugging with salt-call, this appears to be happening [here](https://github.com/saltstack/salt/blob/2015.5/salt/utils/http.py#L286), it looks like the new utils.http doesn't use the `http_proxy` and `https_proxy` environment variables, whereas whatever was responsible for the http calls in 2014.7 did.\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/258346276","html_url":"https://github.com/saltstack/salt/issues/23617#issuecomment-258346276","issue_url":"https://api.github.com/repos/saltstack/salt/issues/23617","id":258346276,"user":{"login":"quasiben","id":1403768,"avatar_url":"https://avatars.githubusercontent.com/u/1403768?v=3","gravatar_id":"","url":"https://api.github.com/users/quasiben","html_url":"https://github.com/quasiben","followers_url":"https://api.github.com/users/quasiben/followers","following_url":"https://api.github.com/users/quasiben/following{/other_user}","gists_url":"https://api.github.com/users/quasiben/gists{/gist_id}","starred_url":"https://api.github.com/users/quasiben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quasiben/subscriptions","organizations_url":"https://api.github.com/users/quasiben/orgs","repos_url":"https://api.github.com/users/quasiben/repos","events_url":"https://api.github.com/users/quasiben/events{/privacy}","received_events_url":"https://api.github.com/users/quasiben/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T05:09:57Z","updated_at":"2016-11-04T05:09:57Z","body":"@The-Loeki looking through that I noticed that the minion doesn't support https proxying.  Is that correct?"}}
{"actor":{"display_login":"quasiben"}}