Developing the vmware inventory script

Folks,

I was wondering if anybody has done any work on the vmware.py[1] dynamic inventory script? I’d like to push it on a bit, with a couple of things:

a) Get it using the Python pysphere module (to bring it inline with vsphere_guest - please leave “pysphere vs pyvmomi” for now, that’s a whole other discussion :))
b) Some sort of filtering like the AWS ec2.py inventory script

If you’ve already started work on anything like these couple of points would you get in touch please?

Many thanks!

–Mark

[1] https://github.com/ansible/ansible/blob/devel/plugins/inventory/vmware.py

I just merged changes from tower team into main ansible repo, i
believe it adds some more filtering

It's still using psphere, but adds some default groups and facts that could
be used with group_by to create additional groups. There's not (yet) any
filtering equivalent to instance_filters in ec2.py.

How fast things move :slight_smile: Brian and I were only discussing this yesterday…

Thanks Chris. Is this the default grouping stuff that’s already visible in Tower 2.1?

I’d really like to get some ‘choice’ filtering things too, like ec2.py. So my invitation still stands.