mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit adds the following functions: - `add_disk`: the wrapper function to add a new disk to a VM Usage is: ```` add_disk(vmname, disksize, datastore) ```` `vmname` is the name of the VM to add the disk to, `disksize` is the disk size in MB, and `datastore` is the datastore on which to provision the new disk. `add_disk` required the addition of the following helper functions: - `find_device`: locate a device object in vSphere - `find_disk_controller`: find the disk controller used by a VM - `find_disk_devices`: find the disk devices used by a VM - `find_disk_unit_number`: find a free SCSI ID to assign to a new disk - `find_vmdks`: find names of VMDK disks attached to a VM |
||
|---|---|---|
| .. | ||
| vmpooler | ||
| vmpooler.rb | ||