
Fix new lint errors detected when full of the voxpupili lint plugins are enabled. Change-Id: I3c5704fa87db1cca7f0edd9396eacac6e70438f9 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
27 lines
563 B
Puppet
27 lines
563 B
Puppet
# Class nova::compute::mdev
|
|
#
|
|
# Configures nova compute mdev options
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*mdev_types*]
|
|
# (Optional) A hash to define the nova::compute::mdev_type resources.
|
|
# Defaults to {}
|
|
#
|
|
class nova::compute::mdev (
|
|
Hash $mdev_types = {},
|
|
) {
|
|
include nova::deps
|
|
|
|
if !empty($mdev_types) {
|
|
nova_config {
|
|
'devices/enabled_mdev_types': value => join(keys($mdev_types), ',');
|
|
}
|
|
create_resources('nova::compute::mdev_type', $mdev_types)
|
|
} else {
|
|
nova_config {
|
|
'devices/enabled_mdev_types': ensure => absent;
|
|
}
|
|
}
|
|
}
|