{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/st2/issues/1034","labels_url":"https://api.github.com/repos/StackStorm/st2/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/1034/comments","events_url":"https://api.github.com/repos/StackStorm/st2/issues/1034/events","html_url":"https://github.com/StackStorm/st2/issues/1034","id":56138026,"number":1034,"title":"Use environment variables in actions","user":{"login":"dzimine","id":1294734,"avatar_url":"https://avatars.githubusercontent.com/u/1294734?v=3","gravatar_id":"","url":"https://api.github.com/users/dzimine","html_url":"https://github.com/dzimine","followers_url":"https://api.github.com/users/dzimine/followers","following_url":"https://api.github.com/users/dzimine/following{/other_user}","gists_url":"https://api.github.com/users/dzimine/gists{/gist_id}","starred_url":"https://api.github.com/users/dzimine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzimine/subscriptions","organizations_url":"https://api.github.com/users/dzimine/orgs","repos_url":"https://api.github.com/users/dzimine/repos","events_url":"https://api.github.com/users/dzimine/events{/privacy}","received_events_url":"https://api.github.com/users/dzimine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-31T20:26:18Z","updated_at":"2015-02-04T16:47:15Z","closed_at":null,"body":"Initially posted by @jtopjian in [google groups](https://groups.google.com/forum/#!topic/stackstorm/o0il_oBRSkQ): \r\n\r\n>\r\nIs it possible for actions to inherit the environment of the user that issued the action?\r\n>\r\nI think this would be useful in many scenarios, but the one scenario that made me think of it was playing with the OpenStack pack. That pack comes with a config.yml file that asks for the OpenStack cloud information. The problem here is that it requires me to have a credentials file in a different format than the openrc file we normally deploy (which is a bit of a hassle when we have that config file under config management). Secondly it is limited to only one cloud/region. On some of our \"control\" servers, we have several rc files for different clouds and regions of those clouds. If we want to run a command against a certain cloud, we just source the specific rc file.\r\n>\r\nBy being able to inherit the environment, we could then gain the flexibility of being able to run actions against several clouds without creating a complex config.yml as well as prefix the environment in cron and such (though StackStorm can do cron on its own ;)\r\n>\r\nOf course this would also require modifying the OpenStack pack (for this specific scenario) but that's rather easy.\r\n>\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/StackStorm/st2/issues/comments/72890293","html_url":"https://github.com/StackStorm/st2/issues/1034#issuecomment-72890293","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/1034","id":72890293,"user":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T16:47:15Z","updated_at":"2015-02-04T16:47:15Z","body":"That looks awesome."}}