Files
puppet-nova/manifests/compute/pci.pp
Takashi Kajinami ebce6ffd7d Remove deprecated pci_passthrough from nova::compute
Change-Id: I66bcccb5cb2c98f5d151123f5fc3cee02c6f4e80
2022-01-29 16:23:53 +09:00

30 lines
754 B
Puppet

# Class nova::compute::pci
#
# Configures nova compute pci options
#
# === Parameters:
#
# [*passthrough*]
# (optional) Pci passthrough list of hash.
# Defaults to $::os_service_default
# Example of format:
# [ { "vendor_id" => "1234","product_id" => "5678" },
# { "vendor_id" => "4321","product_id" => "8765", "physical_network" => "default" } ]
class nova::compute::pci(
$passthrough = $::os_service_default
) {
include nova::deps
if $passthrough and
!is_service_default($passthrough) and
!empty($passthrough) {
$passthrough_real = to_array_of_json_strings($passthrough)
} else {
$passthrough_real = $::os_service_default
}
nova_config {
'pci/passthrough_whitelist': value => $passthrough_real;
}
}