vmworkflow

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2017 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandCustomizationSpec

func ExpandCustomizationSpec(d *schema.ResourceData, family string) types.CustomizationSpec

ExpandCustomizationSpec reads certain ResourceData keys and returns a CustomizationSpec.

func ExpandVirtualMachineCloneSpec

func ExpandVirtualMachineCloneSpec(d *schema.ResourceData, c *govmomi.Client) (types.VirtualMachineCloneSpec, *object.VirtualMachine, error)

ExpandVirtualMachineCloneSpec creates a clone spec for an existing virtual machine.

The clone spec built by this function for the clone contains the target datastore, the source snapshot in the event of linked clones, and a relocate spec that contains the new locations and configuration details of the new virtual disks.

func ValidateCustomizationSpec

func ValidateCustomizationSpec(d *schema.ResourceDiff, family string) error

ValidateCustomizationSpec checks the validity of the supplied customization spec. It should be called during diff customization to veto invalid configs.

func ValidateVirtualMachineClone

func ValidateVirtualMachineClone(d *schema.ResourceDiff, c *govmomi.Client) error

ValidateVirtualMachineClone does pre-creation validation of a virtual machine's configuration to make sure it's suitable for use in cloning. This includes, but is not limited to checking to make sure that the disks in the new VM configuration line up with the configuration in the existing template, and checking to make sure that the VM has a single snapshot we can use in the even that linked clones are enabled.

func VirtualMachineCloneSchema

func VirtualMachineCloneSchema() map[string]*schema.Schema

VirtualMachineCloneSchema represents the schema for the VM clone sub-resource.

This is a workflow for vsphere_virtual_machine that facilitates the creation of a virtual machine through cloning from an existing template. Customization is nested here, even though it exists in its own workflow.

func VirtualMachineCustomizeSchema

func VirtualMachineCustomizeSchema() map[string]*schema.Schema

VirtualMachineCustomizeSchema returns the schema for VM customization.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL