Merge "If nova is installed on arm64 with active KVM, default to that."

This commit is contained in:
Zuul 2019-03-16 04:42:27 +00:00 committed by Gerrit Code Review
commit b4dd7a6e22
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,11 @@
register: cpuinfo_contents
changed_when: false
- name: Check for existence of KVM node
stat:
path: "/dev/kvm"
register: dev_kvm
- name: Register a fact for the nova kvm virt type
set_fact:
nova_virt_type: "kvm"
@ -28,6 +33,8 @@
or (cpuinfo_contents.stdout.find('pSeries') != -1
and cpuinfo_contents.stdout.find('qemu') != -1
and ansible_architecture == 'ppc64le')
or (dev_kvm.stat.ischr is defined and dev_kvm.stat.ischr
and ansible_architecture == 'aarch64')
- name: Register a fact for the nova powervm virt type
set_fact: