{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/33834","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/33834/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/33834/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/33834/events","html_url":"https://github.com/ansible/ansible/issues/33834","id":281523696,"node_id":"MDU6SXNzdWUyODE1MjM2OTY=","number":33834,"title":"Add os_stack_facts module for OpenStack","user":{"login":"ekultails","id":10150374,"node_id":"MDQ6VXNlcjEwMTUwMzc0","avatar_url":"https://avatars3.githubusercontent.com/u/10150374?v=4","gravatar_id":"","url":"https://api.github.com/users/ekultails","html_url":"https://github.com/ekultails","followers_url":"https://api.github.com/users/ekultails/followers","following_url":"https://api.github.com/users/ekultails/following{/other_user}","gists_url":"https://api.github.com/users/ekultails/gists{/gist_id}","starred_url":"https://api.github.com/users/ekultails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekultails/subscriptions","organizations_url":"https://api.github.com/users/ekultails/orgs","repos_url":"https://api.github.com/users/ekultails/repos","events_url":"https://api.github.com/users/ekultails/events{/privacy}","received_events_url":"https://api.github.com/users/ekultails/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"node_id":"MDU6TGFiZWw2ODYyMTQwMTE=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":379682897,"node_id":"MDU6TGFiZWwzNzk2ODI4OTc=","url":"https://api.github.com/repos/ansible/ansible/labels/openstack","name":"openstack","color":"c5def5","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":486238465,"node_id":"MDU6TGFiZWw0ODYyMzg0NjU=","url":"https://api.github.com/repos/ansible/ansible/labels/waiting_on_contributor","name":"waiting_on_contributor","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-12-12T20:19:01Z","updated_at":"2018-11-02T00:40:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\nos_stack_facts (OpenStack module)\r\n\r\n##### ANSIBLE VERSION\r\n2.5\r\n\r\n##### SUMMARY\r\nThere should be a os_stack_facts module to list details about a Heat stack deployed on a OpenStack cloud. Currently there is only a \"os_stack\" module for creating and deleting Heat stacks. There is no way to view existing resources using Ansible without using the \"shell\" module.\r\n\r\nOne real world use case is to view the Overcloud stack that is deployed and managed by TripleO / Red Hat OpenStack Director.\r\n\r\nhttp://docs.ansible.com/ansible/latest/list_of_cloud_modules.html\r\n\r\n##### STEPS TO REPRODUCE\r\nThe module should return output, similar to this command, with a given stack name (or, by default, looping through all stacks from `openstack stack list`).\r\n\r\n```\r\n$ openstack stack show <STACK_NAME> --format json\r\n```\r\n\r\nExample output for an Overcloud stack is provided as an attachment here: [openstack_stack_show_overcloud.txt](https://github.com/ansible/ansible/files/1553141/openstack_stack_show_overcloud.txt).\r\n\r\n##### EXPECTED RESULTS\r\nExample usage of this new module:\r\n```\r\n- name: Viewing Overcloud stack resources\r\n  os_stack_facts:\r\n    name: overcloud\r\n  register: overcloud_stack_facts\r\n\r\n- debug:\r\n    msg: \"There are {{ overcloud_stack_facts['ControllerCount'] }} controller nodes in this Overcloud deployment\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/435233736","html_url":"https://github.com/ansible/ansible/issues/33834#issuecomment-435233736","issue_url":"https://api.github.com/repos/ansible/ansible/issues/33834","id":435233736,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTIzMzczNg==","user":{"login":"ansibot","id":6585283,"node_id":"MDQ6VXNlcjY1ODUyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T00:40:29Z","updated_at":"2018-11-02T00:40:29Z","author_association":"CONTRIBUTOR","body":"cc @cloudnull @evrardjp @odyssey4me\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}