Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ansible/host_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
- include_tasks: hypervisor_setup.yml

- hosts: libvirt
vars:
nodes: >-
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
| default([]) }}
libvirt_enable_efi_default: "{{ 'efi' in (nodes | map(attribute='boot_firmware') | map('lower')) }}"
tasks:
- block:
- name: Configure host for Libvirt
Expand All @@ -29,6 +34,7 @@
owner: "{{ libvirt_pool_owner }}"
group: "{{ libvirt_pool_group }}"
libvirt_host_require_vt: "{{ libvirt_require_vt }}"
libvirt_host_enable_efi_support: "{{ libvirt_enable_efi | default(libvirt_enable_efi_default) }}"

- name: Set up Virtual BMC daemon
include_role:
Expand Down
4 changes: 3 additions & 1 deletion ansible/host_vars/localhost
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ cmd: deploy
# memory_mb: 1024
# # The number of virtual CPUs.
# vcpus: 2
# # A list of volumes, each with a capacity.
# # The boot firmware to use. Can be one of: bios, or efi.
# boot_firmware: bios
# # A list of volumes, each with a capacity.#

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: added # at end

# volumes:
# - capacity: 2GB
# # A list of physical network names to connect to. These physical network
Expand Down