From d65451fa7bb7c6efc37434473f37d6748c6975fb Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 15 Jun 2018 20:28:53 +0530 Subject: [PATCH] VMware: Add documentation for customValue (#41399) * VMware: Add documentation for customValue In order to populate custom values (custom attributes of virtual machine) inside hostvars, customValue needs to be uncommented under the section properties in vmware_inventory.ini * Remove unwanted single quotes from custom_field_group_prefix Fixes: #41395 Signed-off-by: Abhijeet Kasurde --- contrib/inventory/vmware_inventory.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/inventory/vmware_inventory.ini b/contrib/inventory/vmware_inventory.ini index 153c7ac4898..859f42ca304 100644 --- a/contrib/inventory/vmware_inventory.ini +++ b/contrib/inventory/vmware_inventory.ini @@ -91,7 +91,7 @@ password=vmware # You can customize prefix used by custom field hostgroups generation here. # vmware_tag_ prefix is the default and consistent with ec2_tag_ -#custom_field_group_prefix = 'vmware_tag_' +#custom_field_group_prefix = vmware_tag_ # The script attempts to recurse into virtualmachine objects and serialize # all available data. The serialization is comprehensive but slow. If the @@ -115,3 +115,6 @@ password=vmware #prop10=guest.guestId #prop11=guest.guestState #prop12=runtime.maxMemoryUsage +# In order to populate `customValue` (virtual machine's custom attributes) inside hostvars, +# uncomment following property. Please see - https://github.com/ansible/ansible/issues/41395 +#prop13=customValue