{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28153","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28153/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28153/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28153/events","html_url":"https://github.com/saltstack/salt/issues/28153","id":112446635,"number":28153,"title":"OSX - Module - Brew (pkg)","user":{"login":"lesphinks","id":4617227,"avatar_url":"https://avatars.githubusercontent.com/u/4617227?v=3","gravatar_id":"","url":"https://api.github.com/users/lesphinks","html_url":"https://github.com/lesphinks","followers_url":"https://api.github.com/users/lesphinks/followers","following_url":"https://api.github.com/users/lesphinks/following{/other_user}","gists_url":"https://api.github.com/users/lesphinks/gists{/gist_id}","starred_url":"https://api.github.com/users/lesphinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesphinks/subscriptions","organizations_url":"https://api.github.com/users/lesphinks/orgs","repos_url":"https://api.github.com/users/lesphinks/repos","events_url":"https://api.github.com/users/lesphinks/events{/privacy}","received_events_url":"https://api.github.com/users/lesphinks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T19:51:17Z","updated_at":"2015-10-20T19:51:17Z","closed_at":null,"body":"Salt - 2015.8.1\r\nOSX - any version\r\nBrew - any version\r\n\r\nSalt pkg module is broken in OSX.\r\nie:  \"salt 'hostname' pkg.list_pkgs\"\r\nDoes nothing, like it can't find the \"brew\" executable (by default in \"/usr/local/bin\")\r\n\r\nAfter creating a symlink of \"/usr/local/bin/brew\" in \"/bin/brew\".\r\nNow I get an output in the salt minion log saying that brew cannot run from \"/usr/bin\" (this is a security feature of Brew)\r\nNow at least I know it's calling brew but it can't run from that location.\r\n\r\nHow do we change the way pkg looks for brew ?\r\n\r\nI see these lines here but I'm not sure what to change where...\r\nhttps://github.com/saltstack/salt/blob/develop/salt/modules/brew.py#L55-L73\r\n\r\n\r\n\r\n\r\n"}}