7b6c0424a3
This exposes the devices/enabled_vgpu_types config option which is required for vgpu support. bp tripleo-vgpu Change-Id: I418b5ed3ee43f8621c2997980d17fa20861d009d
21 lines
492 B
Puppet
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), ',');
|
|
}
|
|
}
|