nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
67 stars 36 forks source link

[Imprv] Make changes to include vm name and categories mapping in resources #274

Closed Gevorg-Khachatryan-97 closed 4 weeks ago

Gevorg-Khachatryan-97 commented 2 years ago

Make changes in ntnx_prism_vm_inventory.py to include vm name and categories mapping from "metadata" in vm information and set variable to have ability use those values to create groups.

https://github.com/nutanix/nutanix.ansible/blob/b82b58d0a767e821f64107c2f363cebfaa892822/plugins/inventory/ntnx_prism_vm_inventory.py#L174

bhati-pradeep commented 2 years ago

Usecase: Can create custom groups based on category and vm name (expressions) using constructed inventory feature : #235

bhati-pradeep commented 2 years ago

As v1.7 is approaching, moving this out of it and will consider it in next release

bhati-pradeep commented 1 year ago

https://github.com/nutanix/nutanix.ansible/pull/405 This will add categories mapping in inventory

george-ghawali commented 4 weeks ago

This issue is resolved and closed. The fix has been merged via the PR linked in this issue. VM names and categories are now handled correctly, and groups can be created as expected. Thank you for reporting!