Skip to content

Commit 12cbf39

Browse files
committed
Use custom cpu_models on Redhat family only
Change-Id: Ibe02bf3430bad3606e291273c8a1feb148b83711
1 parent 416da1f commit 12cbf39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% raw %}
2+
{% if ansible_facts.os_family == 'RedHat' and nova_compute_virt_type == 'kvm' %}
23
[libvirt]
3-
# RHEL 9 and Ubuntu Jammy are being compiled for the x86_64-v2
4+
# RHEL 9 are being compiled for the x86_64-v2
45
# architecture which is newer than the qemu default of qemu64.
56
# Nehalem is apparently the oldest model that works for x86_64-v2
67
# and is expected to work on Intel and AMD cpus with kvm or qemu.
7-
{% if nova_compute_virt_type == 'kvm' %}
8-
cpu_mode=custom
9-
cpu_model=Nehalem
8+
cpu_mode = custom
9+
cpu_models = Nehalem
1010
{% endif %}
1111
{% endraw %}

0 commit comments

Comments
 (0)