Developing the vmware inventory script

69 views
Skip to first unread message

Mark Phillips

unread,
Feb 11, 2015, 10:24:42 AM2/11/15
to ansibl...@googlegroups.com, ansible...@googlegroups.com
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

Brian Coca

unread,
Feb 11, 2015, 10:25:46 AM2/11/15
to Mark Phillips, ansibl...@googlegroups.com, ansible...@googlegroups.com
I just merged changes from tower team into main ansible repo, i
believe it adds some more filtering




--
Brian Coca

Chris Church

unread,
Feb 11, 2015, 10:30:05 AM2/11/15
to Brian Coca, Mark Phillips, ansibl...@googlegroups.com, ansible...@googlegroups.com
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.


--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Phillips

unread,
Feb 11, 2015, 10:32:27 AM2/11/15
to Chris Church, Brian Coca, ansibl...@googlegroups.com, ansible...@googlegroups.com
How fast things move :) 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.

--
  Mark Phillips
  Ansible, Inc.
  +44 (0) 797 007 0865

Reply all
Reply to author
Forward
0 new messages