Files
puppet-nova/manifests/compute/mdev.pp
Takashi Kajinami 800ad74994 Prepare for new lint plugins
This fixes a few lint warnings/errors detected by the following plugins
we aim to enable soon.
 - puppet-lint-file_ensure-check
 - puppet-lint-trailing_comma-check
 - puppet-lint-topscope-variable-check

Change-Id: If7fb7d7b8de9698c912003e0c857341e5a201580
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-15 19:45:17 +09:00

27 lines
562 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;
}
}
}