Ovirt docs add suboption (#54586)

* ovirt_vm first section of suboption

* ovirt_vm sec section of suboption

* dont use suboption with lists
pull/54594/head
Martin Nečas 6 years ago committed by ansibot
parent 8051bef12e
commit 88a1efb774

@ -53,33 +53,55 @@ options:
description: description:
- "Mapper which maps an external virtual NIC profile to one that exists in the engine when C(state) is registered. - "Mapper which maps an external virtual NIC profile to one that exists in the engine when C(state) is registered.
vnic_profile is described by the following dictionary:" vnic_profile is described by the following dictionary:"
- "C(source_network_name): The network name of the source network." suboptions:
- "C(source_profile_name): The profile name related to the source network." source_network_name:
- "C(target_profile_id): The id of the target profile id to be mapped to in the engine." description:
- The network name of the source network.
source_profile_name:
description:
- The profile name related to the source network.
target_profile_id:
description:
- The id of the target profile id to be mapped to in the engine.
version_added: "2.5" version_added: "2.5"
cluster_mappings: cluster_mappings:
description: description:
- "Mapper which maps cluster name between VM's OVF and the destination cluster this VM should be registered to, - "Mapper which maps cluster name between VM's OVF and the destination cluster this VM should be registered to,
relevant when C(state) is registered. relevant when C(state) is registered.
Cluster mapping is described by the following dictionary:" Cluster mapping is described by the following dictionary:"
- "C(source_name): The name of the source cluster." suboptions:
- "C(dest_name): The name of the destination cluster." source_name:
description:
- The name of the source cluster.
dest_name:
description:
- The name of the destination cluster.
version_added: "2.5" version_added: "2.5"
role_mappings: role_mappings:
description: description:
- "Mapper which maps role name between VM's OVF and the destination role this VM should be registered to, - "Mapper which maps role name between VM's OVF and the destination role this VM should be registered to,
relevant when C(state) is registered. relevant when C(state) is registered.
Role mapping is described by the following dictionary:" Role mapping is described by the following dictionary:"
- "C(source_name): The name of the source role." suboptions:
- "C(dest_name): The name of the destination role." source_name:
description:
- The name of the source role.
dest_name:
description:
- The name of the destination role.
version_added: "2.5" version_added: "2.5"
domain_mappings: domain_mappings:
description: description:
- "Mapper which maps aaa domain name between VM's OVF and the destination aaa domain this VM should be registered to, - "Mapper which maps aaa domain name between VM's OVF and the destination aaa domain this VM should be registered to,
relevant when C(state) is registered. relevant when C(state) is registered.
The aaa domain mapping is described by the following dictionary:" The aaa domain mapping is described by the following dictionary:"
- "C(source_name): The name of the source aaa domain." suboptions:
- "C(dest_name): The name of the destination aaa domain." source_name:
description:
- The name of the source aaa domain.
dest_name:
description:
- The name of the destination aaa domain.
version_added: "2.5" version_added: "2.5"
affinity_group_mappings: affinity_group_mappings:
description: description:
@ -294,68 +316,164 @@ options:
nics: nics:
description: description:
- List of NICs, which should be attached to Virtual Machine. NIC is described by following dictionary. - List of NICs, which should be attached to Virtual Machine. NIC is described by following dictionary.
- C(name) - Name of the NIC. suboptions:
- C(profile_name) - Profile name where NIC should be attached. name:
- C(interface) - Type of the network interface. One of following I(virtio), I(e1000), I(rtl8139), default is I(virtio). description:
- C(mac_address) - Custom MAC address of the network interface, by default it's obtained from MAC pool. - Name of the NIC.
- NOTE - This parameter is used only when C(state) is I(running) or I(present) and is able to only create NICs. profile_name:
To manage NICs of the VM in more depth please use M(ovirt_nics) module instead. description:
- Profile name where NIC should be attached.
interface:
description:
- Type of the network interface.
choices: ['virtio', 'e1000', 'rtl8139']
default: 'virtio'
mac_address:
description:
- Custom MAC address of the network interface, by default it's obtained from MAC pool.
- "NOTE - This parameter is used only when C(state) is I(running) or I(present) and is able to only create NICs.
To manage NICs of the VM in more depth please use M(ovirt_nics) module instead."
disks: disks:
description: description:
- List of disks, which should be attached to Virtual Machine. Disk is described by following dictionary. - List of disks, which should be attached to Virtual Machine. Disk is described by following dictionary.
- C(name) - Name of the disk. Either C(name) or C(id) is required. suboptions:
- C(id) - ID of the disk. Either C(name) or C(id) is required. name:
- C(interface) - Interface of the disk, either I(virtio) or I(IDE), default is I(virtio). description:
- C(bootable) - I(True) if the disk should be bootable, default is non bootable. - Name of the disk. Either C(name) or C(id) is required.
- C(activate) - I(True) if the disk should be activated, default is activated. id:
- NOTE - This parameter is used only when C(state) is I(running) or I(present) and is able to only attach disks. description:
To manage disks of the VM in more depth please use M(ovirt_disks) module instead. - ID of the disk. Either C(name) or C(id) is required.
interface:
description:
- Interface of the disk.
choices: ['virtio', 'IDE']
default: 'virtio'
bootable:
description:
- I(True) if the disk should be bootable, default is non bootable.
type: bool
activate:
description:
- I(True) if the disk should be activated, default is activated.
- "NOTE - This parameter is used only when C(state) is I(running) or I(present) and is able to only attach disks.
To manage disks of the VM in more depth please use M(ovirt_disks) module instead."
type: bool
sysprep: sysprep:
description: description:
- Dictionary with values for Windows Virtual Machine initialization using sysprep. - Dictionary with values for Windows Virtual Machine initialization using sysprep.
- C(host_name) - Hostname to be set to Virtual Machine when deployed. suboptions:
- C(active_directory_ou) - Active Directory Organizational Unit, to be used for login of user. host_name:
- C(org_name) - Organization name to be set to Windows Virtual Machine. description:
- C(domain) - Domain to be set to Windows Virtual Machine. - Hostname to be set to Virtual Machine when deployed.
- C(timezone) - Timezone to be set to Windows Virtual Machine. active_directory_ou:
- C(ui_language) - UI language of the Windows Virtual Machine. description:
- C(system_locale) - System localization of the Windows Virtual Machine. - Active Directory Organizational Unit, to be used for login of user.
- C(input_locale) - Input localization of the Windows Virtual Machine. org_name:
- C(windows_license_key) - License key to be set to Windows Virtual Machine. description:
- C(user_name) - Username to be used for set password to Windows Virtual Machine. - Organization name to be set to Windows Virtual Machine.
- C(root_password) - Password to be set for username to Windows Virtual Machine. domain:
description:
- Domain to be set to Windows Virtual Machine.
timezone:
description:
- Timezone to be set to Windows Virtual Machine.
ui_language:
description:
- UI language of the Windows Virtual Machine.
system_locale:
description:
- System localization of the Windows Virtual Machine.
input_locale:
description:
- Input localization of the Windows Virtual Machine.
windows_license_key:
description:
- License key to be set to Windows Virtual Machine.
user_name:
description:
- Username to be used for set password to Windows Virtual Machine.
root_password:
description:
- Password to be set for username to Windows Virtual Machine.
cloud_init: cloud_init:
description: description:
- Dictionary with values for Unix-like Virtual Machine initialization using cloud init. - Dictionary with values for Unix-like Virtual Machine initialization using cloud init.
- C(host_name) - Hostname to be set to Virtual Machine when deployed. suboptions:
- C(timezone) - Timezone to be set to Virtual Machine when deployed. host_name:
- C(user_name) - Username to be used to set password to Virtual Machine when deployed. description:
- C(root_password) - Password to be set for user specified by C(user_name) parameter. - Hostname to be set to Virtual Machine when deployed.
- C(authorized_ssh_keys) - Use this SSH keys to login to Virtual Machine. timezone:
- C(regenerate_ssh_keys) - If I(True) SSH keys will be regenerated on Virtual Machine. description:
- C(custom_script) - Cloud-init script which will be executed on Virtual Machine when deployed. This is appended to the end of the - Timezone to be set to Virtual Machine when deployed.
cloud-init script generated by any other options. user_name:
- C(dns_servers) - DNS servers to be configured on Virtual Machine. description:
- C(dns_search) - DNS search domains to be configured on Virtual Machine. - Username to be used to set password to Virtual Machine when deployed.
- C(nic_boot_protocol) - Set boot protocol of the network interface of Virtual Machine. Can be one of C(none), C(dhcp) or C(static). root_password:
- C(nic_ip_address) - If boot protocol is static, set this IP address to network interface of Virtual Machine. description:
- C(nic_netmask) - If boot protocol is static, set this netmask to network interface of Virtual Machine. - Password to be set for user specified by C(user_name) parameter.
- C(nic_gateway) - If boot protocol is static, set this gateway to network interface of Virtual Machine. authorized_ssh_keys:
- C(nic_name) - Set name to network interface of Virtual Machine. description:
- C(nic_on_boot) - If I(True) network interface will be set to start on boot. - Use this SSH keys to login to Virtual Machine.
regenerate_ssh_keys:
description:
- If I(True) SSH keys will be regenerated on Virtual Machine.
type: bool
custom_script:
description:
- Cloud-init script which will be executed on Virtual Machine when deployed.
- This is appended to the end of the cloud-init script generated by any other options.
dns_servers:
description:
- DNS servers to be configured on Virtual Machine.
dns_search:
description:
- DNS search domains to be configured on Virtual Machine.
nic_boot_protocol:
description:
- Set boot protocol of the network interface of Virtual Machine.
choices: ['none', 'dhcp', 'static']
nic_ip_address:
description:
- If boot protocol is static, set this IP address to network interface of Virtual Machine.
nic_netmask:
description:
- If boot protocol is static, set this netmask to network interface of Virtual Machine.
nic_gateway:
description:
- If boot protocol is static, set this gateway to network interface of Virtual Machine.
nic_name:
description:
- Set name to network interface of Virtual Machine.
nic_on_boot:
description:
- If I(True) network interface will be set to start on boot.
type: bool
cloud_init_nics: cloud_init_nics:
description: description:
- List of dictionaries representing network interfaces to be setup by cloud init. - List of dictionaries representing network interfaces to be setup by cloud init.
- This option is used, when user needs to setup more network interfaces via cloud init. - This option is used, when user needs to setup more network interfaces via cloud init.
- If one network interface is enough, user should use C(cloud_init) I(nic_*) parameters. C(cloud_init) I(nic_*) parameters - If one network interface is enough, user should use C(cloud_init) I(nic_*) parameters. C(cloud_init) I(nic_*) parameters
are merged with C(cloud_init_nics) parameters. are merged with C(cloud_init_nics) parameters.
- Dictionary can contain following values. suboptions:
- C(nic_boot_protocol) - Set boot protocol of the network interface of Virtual Machine. Can be one of C(none), C(dhcp) or C(static). nic_boot_protocol:
- C(nic_ip_address) - If boot protocol is static, set this IP address to network interface of Virtual Machine. description:
- C(nic_netmask) - If boot protocol is static, set this netmask to network interface of Virtual Machine. - Set boot protocol of the network interface of Virtual Machine. Can be one of C(none), C(dhcp) or C(static).
- C(nic_gateway) - If boot protocol is static, set this gateway to network interface of Virtual Machine. nic_ip_address:
- C(nic_name) - Set name to network interface of Virtual Machine. description:
- C(nic_on_boot) - If I(True) network interface will be set to start on boot. - If boot protocol is static, set this IP address to network interface of Virtual Machine.
nic_netmask:
description:
- If boot protocol is static, set this netmask to network interface of Virtual Machine.
nic_gateway:
description:
- If boot protocol is static, set this gateway to network interface of Virtual Machine.
nic_name:
description:
- Set name to network interface of Virtual Machine.
nic_on_boot:
description:
- If I(True) network interface will be set to start on boot.
type: bool
version_added: "2.3" version_added: "2.3"
cloud_init_persist: cloud_init_persist:
description: description:
@ -421,51 +539,79 @@ options:
description: description:
- Dictionary of values to be used to connect to VMware and import - Dictionary of values to be used to connect to VMware and import
a virtual machine to oVirt. a virtual machine to oVirt.
- Dictionary can contain following values. suboptions:
- C(username) - The username to authenticate against the VMware. username:
- C(password) - The password to authenticate against the VMware. description:
- C(url) - The URL to be passed to the I(virt-v2v) tool for conversion. - The username to authenticate against the VMware.
For example I(vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1) password:
- C(drivers_iso) - The name of the ISO containing drivers that can description:
be used during the I(virt-v2v) conversion process. - The password to authenticate against the VMware.
- C(sparse) - Specifies the disk allocation policy of the resulting url:
virtual machine. I(true) for sparse, I(false) for preallocated. description:
Default value is I(true). - The URL to be passed to the I(virt-v2v) tool for conversion.
- C(storage_domain) - Specifies the target storage domain for - For example I(vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1)
converted disks. This is required parameter. drivers_iso:
description:
- The name of the ISO containing drivers that can be used during the I(virt-v2v) conversion process.
sparse:
description:
- Specifies the disk allocation policy of the resulting virtual machine. I(true) for sparse, I(false) for preallocated.
type: bool
default: true
storage_domain:
description:
- Specifies the target storage domain for converted disks. This is required parameter.
version_added: "2.3" version_added: "2.3"
xen: xen:
description: description:
- Dictionary of values to be used to connect to XEN and import - Dictionary of values to be used to connect to XEN and import
a virtual machine to oVirt. a virtual machine to oVirt.
- Dictionary can contain following values. suboptions:
- C(url) - The URL to be passed to the I(virt-v2v) tool for conversion. url:
For example I(xen+ssh://root@zen.server). This is required parameter. description:
- C(drivers_iso) - The name of the ISO containing drivers that can - The URL to be passed to the I(virt-v2v) tool for conversion.
be used during the I(virt-v2v) conversion process. - For example I(xen+ssh://root@zen.server). This is required parameter.
- C(sparse) - Specifies the disk allocation policy of the resulting drivers_iso:
virtual machine. I(true) for sparse, I(false) for preallocated. description:
Default value is I(true). - The name of the ISO containing drivers that can be used during the I(virt-v2v) conversion process.
- C(storage_domain) - Specifies the target storage domain for sparse:
converted disks. This is required parameter. description:
- Specifies the disk allocation policy of the resulting virtual machine. I(true) for sparse, I(false) for preallocated.
type: bool
default: true
storage_domain:
description:
- Specifies the target storage domain for converted disks. This is required parameter.
version_added: "2.3" version_added: "2.3"
kvm: kvm:
description: description:
- Dictionary of values to be used to connect to kvm and import - Dictionary of values to be used to connect to kvm and import
a virtual machine to oVirt. a virtual machine to oVirt.
- Dictionary can contain following values. suboptions:
- C(name) - The name of the KVM virtual machine. name:
- C(username) - The username to authenticate against the KVM. description:
- C(password) - The password to authenticate against the KVM. - The name of the KVM virtual machine.
- C(url) - The URL to be passed to the I(virt-v2v) tool for conversion. username:
For example I(qemu:///system). This is required parameter. description:
- C(drivers_iso) - The name of the ISO containing drivers that can - The username to authenticate against the KVM.
be used during the I(virt-v2v) conversion process. password:
- C(sparse) - Specifies the disk allocation policy of the resulting description:
virtual machine. I(true) for sparse, I(false) for preallocated. - The password to authenticate against the KVM.
Default value is I(true). url:
- C(storage_domain) - Specifies the target storage domain for description:
converted disks. This is required parameter. - The URL to be passed to the I(virt-v2v) tool for conversion.
- For example I(qemu:///system). This is required parameter.
drivers_iso:
description:
- The name of the ISO containing drivers that can be used during the I(virt-v2v) conversion process.
sparse:
description:
- Specifies the disk allocation policy of the resulting virtual machine. I(true) for sparse, I(false) for preallocated.
type: bool
default: true
storage_domain:
description:
- Specifies the target storage domain for converted disks. This is required parameter.
version_added: "2.3" version_added: "2.3"
cpu_mode: cpu_mode:
description: description:
@ -556,9 +702,14 @@ options:
graphical_console: graphical_console:
description: description:
- "Assign graphical console to the virtual machine." - "Assign graphical console to the virtual machine."
- "Graphical console is a dictionary which can have following values:" suboptions:
- "C(headless_mode) - If I(true) disable the graphics console for this virtual machine." headless_mode:
- "C(protocol) - Graphical protocol, a list of I(spice), I(vnc), or both." description:
- If I(true) disable the graphics console for this virtual machine.
type: bool
protocol:
description:
- Graphical protocol, a list of I(spice), I(vnc), or both.
version_added: "2.5" version_added: "2.5"
exclusive: exclusive:
description: description:
@ -573,9 +724,16 @@ options:
export_ova: export_ova:
description: description:
- Dictionary of values to be used to export VM as OVA. - Dictionary of values to be used to export VM as OVA.
- C(host) - The name of the destination host where the OVA has to be exported. suboptions:
- C(directory) - The name of the directory where the OVA has to be exported. host:
- C(filename) - The name of the exported OVA file. description:
- The name of the destination host where the OVA has to be exported.
directory:
description:
- The name of the directory where the OVA has to be exported.
filename:
description:
- The name of the exported OVA file.
version_added: "2.8" version_added: "2.8"
force_migrate: force_migrate:
description: description:

Loading…
Cancel
Save