Skip to content

Commit

Permalink
vmware_inventory: fix the --host and add 'properties' feature to ini (a…
Browse files Browse the repository at this point in the history
…nsible#18072)

* vmware_inventory: fix the --host option
* Fix skip_key evaluation
* Short circuit deep dives in datastores and resourcegroups
* Put timestamps in the debug output and add a few more
* Implement a user defined proplist to increase performance
* Make all props into dicts
* Update ini with example
* Fix tests
  • Loading branch information
jctanner authored Oct 18, 2016
1 parent 5037dc4 commit 05aed6e
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 22 deletions.
23 changes: 23 additions & 0 deletions contrib/inventory/vmware_inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,26 @@ password=vmware
# because those values will become the literal group name. The patterns can be
# comma delimited to create as many groups as necessary
#groupby_patterns={{ guest.guestid }},{{ 'templates' if config.template else 'guests'}}

# The script attempts to recurse into virtualmachine objects and serialize
# all available data. The serialization is comprehensive but slow. If the
# vcenter environment is large and the desired properties are known, create
# a 'properties' section in this config and make an arbitrary list of
# key=value settings where the value is a path to a specific property. If
# If this feature is enabled, be sure to fetch every property that is used
# in the jinja expressions defined above. For performance tuning, reduce
# the number of properties to the smallest amount possible and limit the
# use of properties that are not direct attributes of vim.VirtualMachine
#[properties]
#prop01=name
#prop02=config.cpuHotAddEnabled
#prop03=config.cpuHotRemoveEnabled
#prop04=config.instanceUuid
#prop05=config.hardware.numCPU
#prop06=config.template
#prop07=config.name
#prop08=guest.hostName
#prop09=guest.ipAddress
#prop10=guest.guestId
#prop11=guest.guestState
#prop12=runtime.maxMemoryUsage
Loading

0 comments on commit 05aed6e

Please sign in to comment.