OpenStack heat ansible modules

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?

You could check the official OpenStack Ansible project.
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

Bryce Walter

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 but none for heat.

There is a PR for adding os_stack:

https://github.com/ansible/ansible-modules-extras/pull/2002

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

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

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’