2015-02-11 08:06:27 +00:00
|
|
|
# Ansible VMware external inventory script settings
|
|
|
|
|
2013-12-24 19:29:30 +00:00
|
|
|
[defaults]
|
2015-02-11 08:06:27 +00:00
|
|
|
|
|
|
|
# If true (the default), return only guest VMs. If false, also return host
|
|
|
|
# systems in the results.
|
2013-12-24 19:29:30 +00:00
|
|
|
guests_only = True
|
|
|
|
|
2015-02-11 08:06:27 +00:00
|
|
|
# Specify an alternate group name for guest VMs. If not defined, defaults to
|
|
|
|
# the basename of the inventory script + "_vm", e.g. "vmware_vm".
|
|
|
|
#vm_group = vm_group_name
|
|
|
|
|
|
|
|
# Specify an alternate group name for host systems when guests_only=false.
|
|
|
|
# If not defined, defaults to the basename of the inventory script + "_hw",
|
|
|
|
# e.g. "vmware_hw".
|
|
|
|
#hw_group = hw_group_name
|
|
|
|
|
|
|
|
# Specify the number of seconds to use the inventory cache before it is
|
|
|
|
# considered stale. If not defined, defaults to 0 seconds.
|
|
|
|
#cache_max_age = 3600
|
|
|
|
|
|
|
|
# Specify the directory used for storing the inventory cache. If not defined,
|
|
|
|
# caching will be disabled.
|
|
|
|
#cache_dir = ~/.cache/ansible
|
2013-12-24 19:29:30 +00:00
|
|
|
|
2015-06-17 17:41:54 +00:00
|
|
|
# Specify a prefix filter. Any VMs with names beginning with this string will
|
|
|
|
# not be returned.
|
|
|
|
# prefix_filter = test_
|
|
|
|
|
2013-12-24 19:29:30 +00:00
|
|
|
[auth]
|
2015-02-11 08:06:27 +00:00
|
|
|
|
|
|
|
# Specify hostname or IP address of vCenter/ESXi server. A port may be
|
|
|
|
# included with the hostname, e.g.: vcenter.example.com:8443. This setting
|
|
|
|
# may also be defined via the VMWARE_HOST environment variable.
|
2013-12-24 19:29:30 +00:00
|
|
|
host = vcenter.example.com
|
2015-02-11 08:06:27 +00:00
|
|
|
|
|
|
|
# Specify a username to access the vCenter host. This setting may also be
|
|
|
|
# defined with the VMWARE_USER environment variable.
|
2013-12-24 19:29:30 +00:00
|
|
|
user = ihasaccess
|
2015-02-11 08:06:27 +00:00
|
|
|
|
|
|
|
# Specify a password to access the vCenter host. This setting may also be
|
|
|
|
# defined with the VMWARE_PASSWORD environment variable.
|
2013-12-24 19:29:30 +00:00
|
|
|
password = ssshverysecret
|