Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

add serial #77

Merged
merged 2 commits into from May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -114,6 +114,9 @@ The `vms` and `profile` variables can contain following attributes, note that if
| cpu_mode | UNDEF | CPU mode of the virtual machine. It can be some of the following: host_passthrough, host_model or custom. |
| placement_policy | UNDEF | The configuration of the virtual machine's placement policy. |
| boot_devices | UNDEF | List of boot devices which should be used to boot. Valid entries are `cdrom`, `hd`, `network`. |
| serial_console | UNDEF | True enable VirtIO serial console, False to disable it. By default is chosen by oVirt/RHV engine. |
| serial_policy | UNDEF | Specify a serial number policy for the Virtual Machine. Following options are supported. <br/><i>vm</i> - Sets the Virtual Machine's UUID as its serial number. <br/><i>host</i> - Sets the host's UUID as the Virtual Machine's serial number. <br/><i>custom</i> - Allows you to specify a custom serial number in serial_policy_value. |
| serial_policy_value | UNDEF | Allows you to specify a custom serial number. This parameter is used only when <i>serial_policy</i> is custom. |

The item in `disks` list of `profile` dictionary can contain following attributes:

Expand Down
3 changes: 3 additions & 0 deletions tasks/create_vms.yml
Expand Up @@ -27,6 +27,9 @@
io_threads: "{{ current_vm.io_threads | default(current_vm.profile.io_threads ) | default(omit) }}"
storage_domain: "{{ current_vm.storage_domain | default(current_vm.profile.storage_domain) | default(omit) }}"
lease: "{{ current_vm.lease | default(current_vm.profile.lease) | default(omit) }}"
serial_console : "{{ current_vm.serial_console | default(current_vm.profile.serial_console) | default(omit) }}"
serial_policy : "{{ current_vm.serial_policy | default(current_vm.profile.serial_policy) | default(omit) }}"
serial_policy_value : "{{ current_vm.serial_policy_value | default(current_vm.profile.serial_policy_value) | default(omit) }}"
timeout: "{{ vm_infra_create_single_timeout }}"
changed_when: false
async: "{{ vm_infra_create_single_timeout }}"
Expand Down