Check if VTX is enabled on hypervisor nodes

VTX is required when using KVM as hypervisor on compute nodes.

When the fact will be merged upstream, the lib/facter/vtx.rb file will be
dropped to use the one from facter-core.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-09-11 10:52:42 -04:00
parent 6bde7a39c3
commit ca72456409
3 changed files with 49 additions and 3 deletions

View File

@@ -54,6 +54,10 @@ class cloud::compute::hypervisor(
include 'cloud::telemetry'
include 'cloud::network'
if $libvirt_type == 'kvm' and ! $::vtx {
fail('libvirt_type is set to KVM and VTX seems to be disabled on this node.')
}
# Backward compatibility
# if has_ceph was enabled, we consider deployments run Ceph for Nova & Cinder
if $has_ceph {