puppet-nova/manifests/compute/vgpu.pp
Oliver Walsh 7b6c0424a3 Expose devices/enabled_vgpu_types config option
This exposes the devices/enabled_vgpu_types config option which is required for
 vgpu support.

bp tripleo-vgpu

Change-Id: I418b5ed3ee43f8621c2997980d17fa20861d009d
2018-06-14 14:57:38 +01:00

21 lines
492 B
Puppet

# Class nova::compute::vgpu
#
# Configures nova compute vgpu options
#
# === Parameters:
#
# [*enabled_vgpu_types*]
# (optional) Specify which specific GPU type(s) the instances can get
# Defaults to $::os_service_default
# Example: 'nvidia-35' or ['nvidia-35', 'nvidia-36']
class nova::compute::vgpu(
$enabled_vgpu_types = $::os_service_default
) {
include ::nova::deps
nova_config {
'devices/enabled_vgpu_types': value => join(any2array($enabled_vgpu_types), ',');
}
}