Skip to content

Commit 211b6e6

Browse files
authored
Merge pull request #50 from stackhpc/efi-centos8
Update EFI support for CentOS 8
2 parents e9e4131 + 0d01c7e commit 211b6e6

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

vars/RedHat.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ libvirt_host_libvirt_packages_client:
1717
- "{{ 'python3-lxml' if libvirt_host_python3 | bool else 'python-lxml' }}"
1818

1919
# Packages that are only necessary if you require EFI support
20-
libvirt_host_packages_efi:
21-
- edk2.git-ovmf-x64 # Official OVMF package doesn't boot (CentOS 7.5)
22-
- qemu-kvm-ev # Need smm support for secure boot
20+
libvirt_host_packages_efi_by_version:
21+
7:
22+
- edk2.git-ovmf-x64 # Official OVMF package doesn't boot (CentOS 7.5)
23+
- qemu-kvm-ev # Need smm support for secure boot
24+
8:
25+
- edk2-ovmf
26+
27+
libvirt_host_packages_efi: >-
28+
{{ libvirt_host_packages_efi_by_version[ansible_facts.distribution_major_version | int] }}
2329
2430
# List of all packages to install
2531
libvirt_host_libvirt_packages: >
@@ -33,19 +39,22 @@ libvirt_host_packages_rbd_volume_pool:
3339
- libvirt-daemon-driver-storage-rbd
3440
- qemu-kvm-block-rbd
3541

36-
libvirt_host_custom_yum_repos_efi:
37-
# Add custom repository as OVMF package seems to be broken
38-
- name: qemu-firmware-jenkins
39-
description: upstream OVMF firmware images
40-
baseurl: https://www.kraxel.org/repos/jenkins/
41-
gpgcheck: no
42-
# Need an updated version of qemu with smm support
43-
- name: centos-qemu-ev
44-
description: CentOS-$releasever - QEMU EV
45-
baseurl: http://mirror.centos.org/$contentdir/$releasever/virt/$basearch/kvm-common/
46-
gpgcheck: yes
47-
48-
libvirt_host_custom_yum_repos: "{{ libvirt_host_custom_yum_repos_efi if libvirt_host_enable_efi_support else [] | unique }}"
42+
libvirt_host_custom_yum_repos_efi_by_version:
43+
7:
44+
# Add custom repository as OVMF package seems to be broken
45+
- name: qemu-firmware-jenkins
46+
description: upstream OVMF firmware images
47+
baseurl: https://www.kraxel.org/repos/jenkins/
48+
gpgcheck: no
49+
# Need an updated version of qemu with smm support
50+
- name: centos-qemu-ev
51+
description: CentOS-$releasever - QEMU EV
52+
baseurl: http://mirror.centos.org/$contentdir/$releasever/virt/$basearch/kvm-common/
53+
gpgcheck: yes
54+
8: []
55+
56+
libvirt_host_custom_yum_repos: >-
57+
{{ libvirt_host_custom_yum_repos_efi_by_version[ansible_facts.distribution_major_version | int] }}
4958
5059
# These are passed to the lineinfile module to customize configuration files
5160
libvirt_host_lineinfile_extra_rules:

0 commit comments

Comments
 (0)