42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
---
|
|
# Cloud-init support matrix:
|
|
# libvirt - cloud-init ISO attached as CDROM (user-data + network-config)
|
|
# proxmox - cloud-init via Proxmox API (cicustom, ciuser, cipassword, etc.)
|
|
# vmware - no cloud-init; configuration is applied post-install via chroot
|
|
# xen - no cloud-init; configuration is applied post-install via chroot
|
|
virtualization_libvirt_image_dir: >-
|
|
{{
|
|
system_cfg.path
|
|
if system_cfg is defined and (system_cfg.path | string | length) > 0
|
|
else '/var/lib/libvirt/images'
|
|
}}
|
|
virtualization_libvirt_disk_path: >-
|
|
{{ [virtualization_libvirt_image_dir, hostname ~ '.qcow2'] | ansible.builtin.path_join }}
|
|
virtualization_libvirt_cloudinit_path: >-
|
|
{{ [virtualization_libvirt_image_dir, hostname ~ '-cloudinit.iso'] | ansible.builtin.path_join }}
|
|
virtualization_xen_disk_path: /var/lib/xen/images
|
|
|
|
virtualization_libvirt_machine_type: q35
|
|
# Secboot OVMF firmware candidates, ordered Arch, Debian/Ubuntu, Fedora/RHEL.
|
|
# libvirt.yml resolves these to the first file present on the controller.
|
|
virtualization_libvirt_ovmf_code_candidates:
|
|
- /usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd
|
|
- /usr/share/OVMF/OVMF_CODE_4M.secboot.fd
|
|
- /usr/share/edk2/ovmf/OVMF_CODE.secboot.fd
|
|
- /usr/share/OVMF/OVMF_CODE.secboot.fd
|
|
virtualization_libvirt_ovmf_vars_candidates:
|
|
- /usr/share/edk2/x64/OVMF_VARS.4m.fd
|
|
- /usr/share/OVMF/OVMF_VARS_4M.fd
|
|
- /usr/share/edk2/ovmf/OVMF_VARS.fd
|
|
- /usr/share/OVMF/OVMF_VARS.fd
|
|
|
|
virtualization_tpm2_enabled: >-
|
|
{{
|
|
(
|
|
(system_cfg.luks.enabled | bool)
|
|
and (system_cfg.luks.auto | bool)
|
|
and (system_cfg.luks.method | lower == 'tpm2')
|
|
)
|
|
or (system_cfg.features.secure_boot.enabled | default(false) | bool)
|
|
}}
|