Files
puppet-nova/manifests/compute/mdev.pp
Takashi Kajinami f16181f25c Remove deprecated mdev_types_device_addresses_mapping
This parameter was deprecated during Yoga cycle in favor of the new
mdev_types parameter[1].

[1] 0be9d0a3c7

Change-Id: Idad6f62157ee637be64cee585beafe292efc9c15
2022-08-16 23:12:29 +09:00

29 lines
611 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(
$mdev_types = {},
) {
include nova::deps
validate_legacy(Hash, 'validate_hash', $mdev_types)
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;
}
}
}