f888748d4e
this patch moves logic for preparing libvirt environment and creating test VMs out of bash script to Ansible tasks using virt_* modules available since Ansible 2.0. The only virsh command left is volume creation as Ansible still lacks modules for libvirt volume management. As a consequence, many variables hidden in the bash script are now explicitly defined in defaults of 'bifrost-create-vm-nodes' role and can be redefined by standard Ansible means. Although the libvirt connection string can be redefined too, it was not tested with any other than default value (local qemu connection). Change-Id: Idaca6b5f502e0e2391af92651f30ab9dcd2fbb3b Related-Bug: #1659876
18 lines
844 B
YAML
18 lines
844 B
YAML
---
|
|
features:
|
|
- |
|
|
``bifrost-create-vm-nodes`` role now uses Ansible's virt modules to
|
|
create virtual machines for bifrost testing.
|
|
This supersedes the embedded bash script to create virtual machines.
|
|
As a result, all variables that were present in the bash script are
|
|
now available as default role variables and can be overridden by standard
|
|
Ansible means.
|
|
For backward compatibility, some of the variables still support the
|
|
use of shell variables, but this is deprecated and should be avoided.
|
|
deprecations:
|
|
- |
|
|
Relying on shell environment variables to set parameters for created
|
|
virtual nodes is deprecated and will be removed in the Queens release.
|
|
Any scripts relying on such behavior need to be changed to explicitly
|
|
pass these parameters as extra-vars to ansible-playbook invocations.
|