You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behaviour
There is no way to create additional groups from the inventory plugin.
Expected behaviour
Add constructed functionality to the plugin, so it is possible to create additional vars and groups based on Jinja2.
For example
plugin: nutanix.ncp.ntnx_prism_vm_inventorygroups:
nutanix: truekeyed_groups:
# group for customer name
- prefix: ""separator: ''key: "inventory_hostname | regex_replace('([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)', '\\1')"# group for service name
- prefix: ""separator: ''key: "inventory_hostname | regex_replace('([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z]+)[0-9]*', '\\3')"# group for environemnt name
- prefix: ""separator: ''key: "inventory_hostname | regex_replace('([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)', '\\2')"# group for customer environemnt name
- prefix: ""separator: ''key: "inventory_hostname | regex_replace('([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)', '\\1_\\2')"
Here is a pull request to add the requested functionality: #232
The text was updated successfully, but these errors were encountered:
Describe the request
Enable Constructed Features for the inventory plugin
Current behaviour
There is no way to create additional groups from the inventory plugin.
Expected behaviour
Add constructed functionality to the plugin, so it is possible to create additional vars and groups based on Jinja2.
For example
Here is a pull request to add the requested functionality: #232
The text was updated successfully, but these errors were encountered: