{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/45290","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/45290/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/45290/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/45290/events","html_url":"https://github.com/saltstack/salt/issues/45290","id":286230000,"number":45290,"title":"External cloud pillar","user":{"login":"sumeetisp","id":7880211,"avatar_url":"https://avatars0.githubusercontent.com/u/7880211?v=4","gravatar_id":"","url":"https://api.github.com/users/sumeetisp","html_url":"https://github.com/sumeetisp","followers_url":"https://api.github.com/users/sumeetisp/followers","following_url":"https://api.github.com/users/sumeetisp/following{/other_user}","gists_url":"https://api.github.com/users/sumeetisp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetisp/subscriptions","organizations_url":"https://api.github.com/users/sumeetisp/orgs","repos_url":"https://api.github.com/users/sumeetisp/repos","events_url":"https://api.github.com/users/sumeetisp/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetisp/received_events","type":"User","site_admin":false},"labels":[{"id":48088732,"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"942192","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestone/37","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars2.githubusercontent.com/u/702318?v=4","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":1028,"closed_issues":1974,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2018-02-13T06:48:02Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-01-05T09:05:31Z","updated_at":"2018-02-13T12:08:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description of Issue/Question\r\nFor writing custom external pillar i see that there is following def structure to be used,\r\n\r\ndef ext_pillar(minion_id,\r\n               pillar,  # pylint: disable=W0613\r\n               url=None):\r\n\r\nWhat is the use of pillar variable here?\r\n\r\n\r\n2) At the documentation mentioned [here](https://docs.saltstack.com/en/latest/topics/development/external_pillars.html)\r\nFollowing is the external pillar definition mention,\r\n```\r\ndef ext_pillar( minion_id, pillar, *args, **kwargs ):\r\n\r\n    my_pillar = {'external_pillar': {}}\r\n\r\n    my_pillar['external_pillar'] = get_external_pillar_dictionary()\r\n\r\n    return my_pillar\r\n```\r\nWhat is the use of pillar, args and kwargs here?\r\n\r\nI am trying to pass a value to my external pillar depending on which i will be pulling corresponding profile from my external db. That value can be an external id (for example) using which i will be fetching that particular pillar instead of all the pillar values.\r\n\r\nHere in my pillar are number of cloud profiles and providers.\r\n\r\n\r\n### Setup\r\n(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)\r\n\r\n### Steps to Reproduce Issue\r\n(Include debug logs if possible and relevant.)\r\n\r\n### Versions Report\r\n(Provided by running `salt --versions-report`. Please also mention any differences in master/minion versions.)\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/365248406","html_url":"https://github.com/saltstack/salt/issues/45290#issuecomment-365248406","issue_url":"https://api.github.com/repos/saltstack/salt/issues/45290","id":365248406,"user":{"login":"sumeetisp","id":7880211,"avatar_url":"https://avatars0.githubusercontent.com/u/7880211?v=4","gravatar_id":"","url":"https://api.github.com/users/sumeetisp","html_url":"https://github.com/sumeetisp","followers_url":"https://api.github.com/users/sumeetisp/followers","following_url":"https://api.github.com/users/sumeetisp/following{/other_user}","gists_url":"https://api.github.com/users/sumeetisp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetisp/subscriptions","organizations_url":"https://api.github.com/users/sumeetisp/orgs","repos_url":"https://api.github.com/users/sumeetisp/repos","events_url":"https://api.github.com/users/sumeetisp/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetisp/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T12:08:46Z","updated_at":"2018-02-13T12:08:46Z","author_association":"CONTRIBUTOR","body":"Can this be achieved?"}}
{"actor":{"display_login":"sumeetisp"}}