Re: [ansible-project] vmware/esx/vsphere module - planning

2014-12-17 Thread John-Paul Herold
Hey guys, I've recently been looking to control vsphere via Ansible which lead me to this thread. Noticed a couple pull requests that were before the September 26th git core-module/extra-module split by the Ansible team. Just wanted to revive this thread for those that had PRs that were closed

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-23 Thread Dann Bohn
Hi all, I've added quite a bit to the vsphere_guest module to fit our needs, but haven't submitted PR due to lack of time to generalize / create documentation. I'm also the author of PR 7609 referenced above. Things that I've added are the ability to change dvs switch as part of reconfigure,

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-21 Thread kesten broughton
Snapshots let you store the state of a vm to roll back to later. It's different from cloning. I searched the module for clone and template and neither is there. The examples don't cover all the config options, nor do the docs. vm_hardware: memory_mb: 2048 num_cpus: 2 osid: centos64Guest scsi:

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Tony Kinsley
I actually recently got approval to release a module I wrote to manage vsphere. You can find it at https://github.com/ViaSat/ansible-vsphere We currently use this to manage our datacenter of test and development vms. It uses pyvmomi which is VMWares python library for interacting with the

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Tony Kinsley
After using both, I definitely like using pyvmomi better. Since the API is almost identical to the Vsphere API I was able to use not only the API docs from vmware, but docs for rbvmomi, rvc, and even the java vmware sdk and apply it towards getting the module to do what I want. As for adding a

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Michael DeHaan
I'm open to anything that keeps the same compatible Ansible module signature. On Wed, Aug 20, 2014 at 10:54 PM, Tony Kinsley tkinsle...@gmail.com wrote: After using both, I definitely like using pyvmomi better. Since the API is almost identical to the Vsphere API I was able to use not only

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-05 Thread Jamal B
Hi, I'm new to ansible and vmware and came across this post which is exactly what I need to do. Forgive me if this is answered elsewhere, but is there a way to configure the vsphere_guest module to clone a virtual machine or start a virtual machine from a template? On Thursday, July 10,

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-05 Thread Jamal B
Hi, is there a chance that cloning will be added to the vsphere_guest module in an upcoming release? On Thursday, July 10, 2014 9:08:23 AM UTC-4, kesten broughton wrote: I would agree, cloning functionality belongs in vsphere_guest module if possible. On Wednesday, July 9, 2014 4:30:32 PM

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-10 Thread kesten broughton
I would agree, cloning functionality belongs in vsphere_guest module if possible. On Wednesday, July 9, 2014 4:30:32 PM UTC-5, Michael DeHaan wrote: It seems in this case we should try to work the features into the existing module, since they are both about creating guests? On Wed, Jul

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-09 Thread Michael DeHaan
This is actually already in core. On Wed, Jul 9, 2014 at 8:11 AM, kesten broughton kesten.brough...@gmail.com wrote: If you've got a public git branch, i can help with testing and documentation. I've worked with pysphere a bit. kesten On Tuesday, July 8, 2014 6:23:06 PM UTC-5, Corey

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-09 Thread kesten broughton
I was referring to the vsphere_clone mentioned, not vsphere_guest which is in trunk https://github.com/ansible/ansible/tree/devel/library/cloud As far as i can tell, vsphere_guest currently only supports creating a vm from .iso What i really need is creating clones from a template. k On Wed,

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-09 Thread Michael DeHaan
It seems in this case we should try to work the features into the existing module, since they are both about creating guests? On Wed, Jul 9, 2014 at 3:54 PM, kesten broughton kesten.brough...@gmail.com wrote: I was referring to the vsphere_clone mentioned, not vsphere_guest which is in

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-08 Thread Michael DeHaan
Sounds like we'd be interested in taking a look at least, and a PR is a good way to get that in the queue. I will admit now the queue is quite longish as we're powering through things the best we can. I imagine if async is not used, it's a blocking operation, and the async operation in ansible

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-08 Thread Corey
In looking at my original proposal, I think combining two unique implementations of Async functionality is going to be a bad idea, if not for being difficult to troubleshoot and impossible to test, for being a bad design. Instead, I would like to suggest not using PySphere Async support and have