Parameter |
Choices/Defaults |
Comments |
allow_partial_import
(added in 2.4) |
|
Boolean indication whether to allow partial registration of a template when state is registered.
|
auth
required |
|
Dictionary with values needed to create HTTP/HTTPS connection to oVirt:
username [required] - The name of the user, something like admin@internal. Default value is set by OVIRT_USERNAME environment variable.
password [required] - The password of the user. Default value is set by OVIRT_PASSWORD environment variable.
url - A string containing the API URL of the server, usually something like `https://server.example.com/ovirt-engine/api`. Default value is set by OVIRT_URL environment variable. Either url or hostname is required.
hostname - A string containing the hostname of the server, usually something like `server.example.com`. Default value is set by OVIRT_HOSTNAME environment variable. Either url or hostname is required.
token - Token to be used instead of login with username/password. Default value is set by OVIRT_TOKEN environment variable.
insecure - A boolean flag that indicates if the server TLS certificate and host name should be checked.
ca_file - A PEM file containing the trusted CA certificates. The certificate presented by the server will be verified using these CA certificates. If `ca_file ` parameter is not set, system wide CA certificate store is used. Default value is set by OVIRT_CAFILE environment variable.
kerberos - A boolean flag indicating if Kerberos authentication should be used instead of the default basic authentication.
headers - Dictionary of HTTP headers to be added to each API call.
|
clone_permissions
|
Default:
"no"
|
If True then the permissions of the VM (only the direct ones, not the inherited ones) will be copied to the created template.
This parameter is used only when state present.
|
cluster
|
|
Name of the cluster, where template should be created/imported.
|
cluster_mappings
(added in 2.5) |
|
Mapper which maps cluster name between Template's OVF and the destination cluster this Template should be registered to, relevant when state is registered. Cluster mapping is described by the following dictionary:
source_name : The name of the source cluster.
dest_name : The name of the destination cluster.
|
cpu_profile
|
|
CPU profile to be set to template.
|
description
|
|
Description of the template.
|
domain_mappings
(added in 2.5) |
|
Mapper which maps aaa domain name between Template's OVF and the destination aaa domain this Template should be registered to, relevant when state is registered. The aaa domain mapping is described by the following dictionary:
source_name : The name of the source aaa domain.
dest_name : The name of the destination aaa domain.
|
exclusive
|
|
When state is exported this parameter indicates if the existing templates with the same name should be overwritten.
|
export_domain
|
|
When state is exported or imported this parameter specifies the name of the export storage domain.
|
fetch_nested
(added in 2.3) |
|
If True the module will fetch additional data from the API.
It will fetch IDs of the VMs disks, snapshots, etc. User can configure to fetch other attributes of the nested entities by specifying nested_attributes .
|
id
(added in 2.4) |
|
ID of the template to be registered.
|
image_disk
|
|
When state is imported and image_provider is used this parameter specifies the name of disk to be imported as template.
aliases: glance_image_disk_name
|
image_provider
|
|
When state is imported this parameter specifies the name of the image provider to be used.
|
memory
(added in 2.6) |
|
Amount of memory of the template. Prefix uses IEC 60027-2 standard (for example 1GiB, 1024MiB).
|
memory_guaranteed
(added in 2.6) |
|
Amount of minimal guaranteed memory of the template. Prefix uses IEC 60027-2 standard (for example 1GiB, 1024MiB).
memory_guaranteed parameter can't be lower than memory parameter.
|
memory_max
(added in 2.6) |
|
Upper bound of template memory up to which memory hot-plug can be performed. Prefix uses IEC 60027-2 standard (for example 1GiB, 1024MiB).
|
name
|
|
Name of the template to manage.
|
nested_attributes
(added in 2.3) |
|
Specifies list of the attributes which should be fetched from the API.
This parameter apply only when fetch_nested is true.
|
operating_system
(added in 2.6) |
|
Operating system of the template.
Default value is set by oVirt/RHV engine.
Possible values are: debian_7, freebsd, freebsdx64, other, other_linux, other_linux_ppc64, other_ppc64, rhel_3, rhel_4, rhel_4x64, rhel_5, rhel_5x64, rhel_6, rhel_6x64, rhel_6_ppc64, rhel_7x64, rhel_7_ppc64, sles_11, sles_11_ppc64, ubuntu_12_04, ubuntu_12_10, ubuntu_13_04, ubuntu_13_10, ubuntu_14_04, ubuntu_14_04_ppc64, windows_10, windows_10x64, windows_2003, windows_2003x64, windows_2008, windows_2008x64, windows_2008r2x64, windows_2008R2x64, windows_2012x64, windows_2012R2x64, windows_7, windows_7x64, windows_8, windows_8x64, windows_xp
|
poll_interval
|
Default:
3
|
Number of the seconds the module waits until another poll request on entity status is sent.
|
role_mappings
(added in 2.5) |
|
Mapper which maps role name between Template's OVF and the destination role this Template should be registered to, relevant when state is registered. Role mapping is described by the following dictionary:
source_name : The name of the source role.
dest_name : The name of the destination role.
|
seal
(added in 2.5) |
Default:
"no"
|
'Sealing' is an operation that erases all machine-specific configurations from a filesystem: This includes SSH keys, UDEV rules, MAC addresses, system ID, hostname, etc. If true subsequent virtual machines made from this template will avoid configuration inheritance.
This parameter is used only when state present.
|
state
|
Choices:
present ←
- absent
- exported
- imported
- registered
|
Should the template be present/absent/exported/imported/registered. When state is registered and the unregistered template's name belongs to an already registered in engine template in the same DC then we fail to register the unregistered template.
|
storage_domain
|
|
When state is imported this parameter specifies the name of the destination data storage domain. When state is registered this parameter specifies the name of the data storage domain of the unregistered template.
|
template_image_disk_name
(added in 2.4) |
|
When state is imported and image_provider is used this parameter specifies the new name for imported disk, if omitted then image_disk name is used by default. This parameter is used only in case of importing disk image from Glance domain.
|
timeout
|
Default:
180
|
The amount of time in seconds the module should wait for the instance to get into desired state.
|
vm
|
|
Name of the VM, which will be used to create template.
|
vnic_profile_mappings
(added in 2.5) |
|
Mapper which maps an external virtual NIC profile to one that exists in the engine when state is registered. vnic_profile is described by the following dictionary:
source_network_name : The network name of the source network.
source_profile_name : The prfile name related to the source network.
target_profile_id : The id of the target profile id to be mapped to in the engine.
|
wait
|
|
True if the module should wait for the entity to get into desired state.
|