scale_computing.hypercore.template2vm role – Clone a template VM to a regular VM
Note
This role is part of the scale_computing.hypercore collection (version 1.6.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install scale_computing.hypercore
.
To use it in a playbook, specify: scale_computing.hypercore.template2vm
.
Entry point main
– Clone a template VM to a regular VM
Synopsis
Role url2template is used to clone a template VM to a regular VM.
Most parameters have 1-to-1 mapping to scale_computing.hypercore.vm parameters.
Parameters
Parameter |
Comments |
---|---|
Description for new VM. |
|
Disk size for VM OS disk, in bytes unit. Needs to be bigger or equal to source template VM OS disk. |
|
Memory for new VM. |
|
Cloud-init meta-data. Default: |
|
List of network interfaces. See also scale_computing.hypercore.vm_nic parameter items. Default: |
|
Is network interface connected or not. Choices:
|
|
NIC MAC address. Default: |
|
Defines type of the network interface. Choices:
|
|
NIC VLAN. Default: |
|
Power state for new VM. |
|
The source template VM used to create a new VM. |
|
Cloud-init user-data. Default: |
|
vCPU count for new VM. |
|
The VM to be created. |
|
VM tags for new VM. |
Entry point wait_vm_boot_tasks
– Wait until VM is booted
Synopsis
Wait until VM is booted - e.g. ssh connection can be made.
As new VM(s) were just created on HyperCore, an inventory refresh is made before check if VMs are reachable via ssh.
Inventory refresh is needed before each check, to ensure we get DHCP assigned VM IP address.
Parameters
Parameter |
Comments |
---|---|
Ignore this. ansible-lint does not like role with empty options; so we have a dummy param. Default: |