# OpenStack heat ansible modules

**URL:** <https://forum.ansible.com/t/openstack-heat-ansible-modules/21571>\
**Category:** Ansible Developer\
**Created:** [May 26, 2016, 2:48am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571 "2016-05-26T02:48:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sridhar\_L](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sridhar\_L](https://forum.ansible.com/u/Sridhar_L)\
**Post date:** [May 26, 2016, 2:48am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/1 "2016-05-26T02:48:57Z")

</div>

I searched for heat ansible module for deploying the VMs in OpenStack cloud but could not find any. Are there any modules available for heat to deploy the stacks using ansible?

---

<div class="post-metadata">

**Author:** ![Bryce\_Walter](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Bryce\_Walter](https://forum.ansible.com/u/Bryce_Walter)\
**Post date:** [May 26, 2016, 4:00am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/2 "2016-05-26T04:00:46Z")

</div>

You could check the official OpenStack Ansible project.  
[https://github.com/OpenStack/openstack-ansible](https://github.com/OpenStack/openstack-ansible)

Also documentation on extending the Ansible core-modules into the openstack-ansible project.  
[http://docs.openstack.org/developer/openstack-ansible/developer-docs/extending.html](http://docs.openstack.org/developer/openstack-ansible/developer-docs/extending.html)

Bryce Walter

---

<div class="post-metadata">

**Author:** ![Sridhar\_L](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sridhar\_L](https://forum.ansible.com/u/Sridhar_L)\
**Post date:** [May 26, 2016, 7:06am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/3 "2016-05-26T07:06:44Z")

</div>

Thanks for the response. OpenStack-ansible provides a way to deploy OpenStack itself. I want to deploy heat-stack using ansible. Is there any module available for heat? Because I see there are modules available for nova, neutron and for other openstack @ [http://docs.ansible.com/ansible/list\_of\_cloud\_modules.html#openstack](http://docs.ansible.com/ansible/list_of_cloud_modules.html#openstack) but none for heat.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Carrillo\_Cru](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Ricardo\_Carrillo\_Cru](https://forum.ansible.com/u/Ricardo_Carrillo_Cru)\
**Post date:** [May 26, 2016, 10:47am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/4 "2016-05-26T10:47:11Z")

</div>

There is a PR for adding os\_stack:

[https://github.com/ansible/ansible-modules-extras/pull/2002](https://github.com/ansible/ansible-modules-extras/pull/2002)

You may want to double-check with the author for status.

---

<div class="post-metadata">

**Author:** ![Sridhar\_L](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sridhar\_L](https://forum.ansible.com/u/Sridhar_L)\
**Post date:** [May 28, 2016, 5:19am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/5 "2016-05-28T05:19:55Z")

</div>

That is the info I am looking for. Thank you Ricardo…

---

<div class="post-metadata">

**Author:** ![spamulap](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@spamulap](https://forum.ansible.com/u/spamulap)\
**Post date:** [August 3, 2016, 1:27am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571/6 "2016-08-03T01:27:45Z")

</div>

Hi Sridhar,

I recently tried the os\_stack.py and I am facing an issue as mentioned below. Have you seen this error before?

"Traceback(mostrecentcalllast): File"/tmp/ansible\_BmN5ZR/ansible\_module\_os\_stack.py",  
line261,  
inmain()\r\nFile"/tmp/ansible\_BmN5ZR/ansible\_module\_os\_stack.py",  
line240,  
in main stack=\_create\_stack(module,  
stack,cloud) File"/tmp/ansible\_BmN5ZR/ansible\_module\_os\_stack.py",  
line163,  
in\_create\_stack\*\*module.params[  
‘parameters’  
]) File"/usr/lib/python2.7/site-packages/shade/openstackcloud.py",  
line933,  
in create\_stack event\_utils.poll\_for\_events(self.heat\_client,  
stack\_name=name,  
AttributeError: ‘module’objecthasnoattribute’poll\_for\_events’
