Commit Graph

4 Commits

Author SHA1 Message Date
Mark Goddard 332667b810 Fix seed VM provision failure on Ansible 2.6
Due to an Ansible bug, kayobe fails to provision a seed VM using Ansible
2.6. Accessing hostvars via an intermediate variable causes Ansible not
to template the variable.

Work around the issue until it's fixed upstream in Ansible.

Change-Id: I41771671779b8e624c87b5234cf36d9e791db0cc
Story: 2004759
Task: 28868
2019-01-29 18:55:50 +00:00
Pierre Riteau 11dbe8bffe Fix seed vm deprovision
The libvirt_vm_vcpus and libvirt_vm_memory_mb variables are required by
the stackhpc.libvirt-vm role even when setting libvirt_vm_state to
absent. Without these variables, `kayobe seed vm deprovision` fails with
the following error:

    FAILED! => {"msg": "'libvirt_vm_vcpus' is undefined"}

Change-Id: If74f4229cf777328e3a02794067caae7aa731a80
2018-09-28 17:33:21 +01:00
Stig Telfer bf608b1177 Move libvirt-host and libvirt-vm to Ansible Galaxy roles 2017-12-05 15:59:21 +00:00
Mark Goddard c01f5834cb Add kayobe seed vm deprovision command
This command will destroy the seed VM and all associated data volumes.
2017-08-07 12:08:41 +00:00