[ansible-project] Re: VMware - convert template to virtual machines

2018-05-15 Thread Nick Rogers
It looks to me like "num_cpus" is number of sockets, and "num_cpu_cores_per_socket" can set the cores per socket. Is that what you're asking? or am I way off the mark... If you don't specify "num_cpu_cores_per_socket", it defaults to 1, if I'm reading the pyvmomi source correctly: https://git

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-05-15 Thread Edward Ahern
Thanks Sebastian On Tue 15 May 2018 at 14:27, Sebastien Desbois wrote: > Hello, > > I will try to put it in a github > > > Le vendredi 27 avril 2018 22:55:08 UTC+2, Ted a écrit : > >> Hi Sebastien, >> >> Thanks very much for the comprehensive reply. Would you be able to share >> any of those scr

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-05-15 Thread Sebastien Desbois
Hello, I will try to put it in a github Le vendredi 27 avril 2018 22:55:08 UTC+2, Ted a écrit : > > Hi Sebastien, > > Thanks very much for the comprehensive reply. Would you be able to share > any of those scripts / playbooks you mentioned. I’ve no familiarity with > powercli and have yet to d

[ansible-project] Re: VMware - convert template to virtual machines

2018-05-03 Thread talha jilal
Hello Folks, with ansible 2.5 we can control cpu cores but not cpu virutal number of sockets. Any idea ? Thanks On Friday, 27 April 2018 09:55:55 UTC-4, Ted wrote: > > Hi All, > > I'm looking for a way to convert a VMware template to a virtual machine > using Ansible. > The work flow is:

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-05-01 Thread Edward Ahern
Cheers Nick, Plenty there to get stuck into there, appreciate it Ted On Tue 1 May 2018 at 03:25, Nick Rogers wrote: > Ok, here you go, it's still in progress, but it's up. > > https://github.com/nickrnet/ansible-vmware > > > On Saturday, April 28, 2018 at 5:32:41 AM UTC-5, Ted wrote: > >> Hi N

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-04-30 Thread Nick Rogers
Ok, here you go, it's still in progress, but it's up. https://github.com/nickrnet/ansible-vmware On Saturday, April 28, 2018 at 5:32:41 AM UTC-5, Ted wrote: > > Hi Nick, > > Thanks for the reply. If you could put it up on Github that would be > brilliant. > > Thanks again, > > Ted > > On Fri 2

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-04-28 Thread Edward Ahern
Hi Nick, Thanks for the reply. If you could put it up on Github that would be brilliant. Thanks again, Ted On Fri 27 Apr 2018 at 23:00, Nick Rogers wrote: > I do all of this with playbooks and the Ansible vmware_guest module with > Ansible 2.4.4 against vCenter currently - though I am not sur

[ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread Nick Rogers
I do all of this with playbooks and the Ansible vmware_guest module with Ansible 2.4.4 against vCenter currently - though I am not sure the status of the vmware_guest module going forward (there are Github issues in 2.5 that discuss removing/depracating it). I have the following structure: proj

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread Edward Ahern
Hi Sebastien, Thanks very much for the comprehensive reply. Would you be able to share any of those scripts / playbooks you mentioned. I’ve no familiarity with powercli and have yet to dabble with VMware modules in ansible. Anything would be greatly appreciated just to get me started. Thanks aga

[ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread Sebastien Desbois
Hello, You can't do that with only ansible modules Here is the solution we have found to do this : - Convert template to VM : use ansible to execute a powercli script to do that. (even more easy now with Linux powercli) - Power on the VM with module vsphere_guest (yes, old module but working re

[ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread EspressoBeanies
I don't think you can technically do that from the current list of available modules: http://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html I popped an earlier question about how ESXi transfers IP address settings but no one got back to me. Some of the network settings appl