Ansible 2.0.1 OpenStack network module issue with static IP's

171 views
Skip to first unread message

spankt...@gmail.com

unread,
Feb 27, 2016, 11:25:18 AM2/27/16
to Ansible Project
Apparently the latest 2.0.1 modules for OpenStack doesn't have a way to set static IP's (that arent floating IP's) during VM creation - this is critical functionality for OpenStack installations that do not provide automatic DNS service and have to provide indepedent, non automatic DNS service. The static IP's are using to be able to provide DNS names reliably. If there's a way to achieve that, please let me know, otherwise, are there any plans to provide this vey basic yet missing functionality?

David Shrewsbury

unread,
Feb 29, 2016, 10:49:56 AM2/29/16
to Ansible Project
You should be able to use the os_port.py module to first create a port with your static IP.
Then use the port ID returned by setting 'port-id' in the 'nics' parameter of the os_server.py
module.

This method assumes you have a neutron service running. Supporting nova networking only
would require some work on the module and maybe within the shade library, as well.

-David
Reply all
Reply to author
Forward
0 new messages