CloneTemplate
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.
type: "io.kestra.plugin.ee.vmware.vcenter.CloneTemplate"
Examples
Clone a template into another template
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
datastoreName *Requiredstring
The datastore in which to store the new template.
hostname *Requiredstring
The name of the host to use for placement.
password *Requiredstring
The password for authentication.
The password used to authenticate with the VMware server.
server *Requiredstring
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.
targetTemplateName *Requiredstring
The name of the new template to create.
templateName *Requiredstring
The name of the template to duplicate.
username *Requiredstring
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.
port integerstring
443
The port for the connection.
The port to connect to the server. Default is 443.
trustStorePath string
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.