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

Commit

Permalink
Add new lease parameter to VM (#39)
Browse files Browse the repository at this point in the history
Change-Id: I26ed4cf321392a32ae0bb33d27d8310ce0c1f131
Signed-off-by: Martin Necas <mnecas@localhost.localdomain>
  • Loading branch information
mnecas authored and machacekondra committed Jul 26, 2018
1 parent 2dbaf1d commit f67050a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -82,6 +82,7 @@ The `vms` and `profile` variables can contain following attributes, note that if
| state | present | Should the Virtual Machine be stopped, present or running.|
| ssh_key | UNDEF | SSH key to be deployed to the virtual machine. This is parameter is keep for backward compatibility and has precendece before <i>authorized_ssh_keys</i> in <i>cloud_init</i> dictionary. |
| domain | UNDEF | The domain of the virtual machine. This is parameter is keep for backward compatibility and has precendece before <i>host_name</i> in <i>cloud_init</i> dictionary.|
| lease | UNDEF | Name of the storage domain this virtual machine lease reside on. |
| root_password | UNDEF | The root password of the virtual machine. This is parameter is keep for backward compatibility and has precendece before <i>root_password</i> in <i>cloud_init</i> dictionary.|

The item in `disks` list of `profile` dictionary can contain following attributes:
Expand Down
1 change: 1 addition & 0 deletions tasks/create_vms.yml
Expand Up @@ -20,6 +20,7 @@
high_availability: "{{ current_vm.high_availability | default(current_vm.profile.high_availability) | default(omit) }}"
high_availability_priority: "{{ current_vm.high_availability_priority | default(current_vm.profile.high_availability_priority) | 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) }}"
timeout: "{{ vm_infra_create_single_timeout }}"
changed_when: false
async: "{{ vm_infra_create_single_timeout }}"
Expand Down

0 comments on commit f67050a

Please sign in to comment.