I'm attempting to make heads & tails of the docs, and it's.. not easy as a newer person to Ruby.
I'm attempting to clone a template into a VM in Vsphere as a first step, and retrieve it's mac address.
I've found a few pointers to such actions online, from different source & era's, and they conflict.
The best I can see is that something like this should clone the machine, and then I can get it's data without issue.
I'm not sure how to define which cluster/ host / datastore will receive the new VM, which I'm guessing is part of the problem.
----
f=Fog::Compute.new(:provider => "Vsphere" )
instance_list = f.servers.all
instance_list.table([:name, :uuid]) #optional
new_vm=f.vm_clone( 'name' => 'NEWVM_NAME', 'datacenter' => 'DCName', 'template_path => '/Datacenter/Name/dir name')
----
Trying to read the rdoc's are leading me in circles. It might be the collections which I haven't yet wrapped my head around, but I just don't see a list of functions that each object would have anywhere :(
(I'm hoping to add these to the Fog documentation for how to do specific activities in different providers, once I get it working :)
Thanks!
Matthew Barr
AIM: matthewbarr1