fc1b42c60d
Adds support for using UEFI boot mode for nodes. This is done via node capabilities, as it is in Ironic. The default boot mode is now configurable via the default_boot_mode variable. The default boot mode remains legacy BIOS for now, although this may change. Updates the existing CI jobs, with the OVS jobs using BIOS boot mode, and the linuxbridge jobs using UEFI boot mode. Depends-On: https://github.com/stackhpc/ansible-role-libvirt-vm/pull/83 Depends-On: https://github.com/stackhpc/ansible-role-libvirt-host/pull/50 Depends-On: https://review.opendev.org/c/openstack/kayobe/+/827486 Change-Id: Ifaf95ecfd4f6e925d3c69d4b324fdf2cd6b0ca52
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
- hosts: localhost
|
|
tags:
|
|
- node-instantiation
|
|
tasks:
|
|
- name: Load state from file
|
|
include_vars:
|
|
file: "{{ state_file_path }}"
|
|
name: tenks_state
|
|
|
|
- hosts: libvirt
|
|
tags:
|
|
- node-instantiation
|
|
vars:
|
|
nodes: >-
|
|
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
|
|
| default([]) }}
|
|
tasks:
|
|
- name: Configure VMs
|
|
include_role:
|
|
name: stackhpc.libvirt-vm
|
|
vars:
|
|
libvirt_vm_uri: "{{ libvirt_local_uri }}"
|
|
libvirt_vm_default_console_log_dir: "{{ log_directory }}"
|
|
# Configure VM definitions for the Libvirt provider.
|
|
# FIXME(w-miller): Set absent/present in tenks_schedule on a per-node
|
|
# basis to account for existing state, rather than for all nodes
|
|
# here.
|
|
libvirt_vms: >-
|
|
{{ nodes | map('set_libvirt_interfaces')
|
|
| map('set_libvirt_volume_pool')
|
|
| map('set_libvirt_start_params')
|
|
| map('set_libvirt_boot_firmware')
|
|
| list }}
|