Duplicate a VM template into another template.

This task clones an existing template into a new template on a vCenter-managed environment. It does not power on or convert to VM. This is useful for templating versioned base images.

yaml
type: "io.kestra.plugin.ee.vmware.vcenter.CloneTemplate"

Clone a template into another template

yaml
id: clone_template
namespace: company.team

tasks:
  - id: cloneTemplate
    type: io.kestra.plugin.ee.vmware.vcenter.CloneTemplate
    server: "vcenter.mycompany.com"
    username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
    password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
    templateName: "ubuntu-golden-template"
    targetTemplateName: "ubuntu-golden-template-v2"
    hostname: "esxi01.mycompany.com"
    datastoreName: "datastore1"
Properties

The datastore in which to store the new template.

The name of the host to use for placement.

The password for authentication.

The password used to authenticate with the VMware server.

The URL of the server.

The URL to connect to the VMwareserver. This is a FQDN or an IP address (eg: esxi.mycompany.com), so without any protocol nor port.

The name of the new template to create.

The name of the template to duplicate.

The username for authentication.

The username used to authenticate with the server. It could be something like '[email protected]' for vCenter or 'root' for ESXi.

Default 443

The port for the connection.

The port to connect to the server. Default is 443.

The path to the trust store file.

The path to the trust store file containing certificates for secure connections. If not provided, an empty keystore will be created and the connection will be insecure.