puppet-nova/manifests/pci.pp
Tobias Urdin c3e5c7480f Remove deprecated parameters and classes
Remove all the deprecated parameters and classes
which has been deprecated for one cycle or more.

Change-Id: I2624b92871f4cba5a7361a5d006d985946493e83
2018-05-19 23:19:10 +02:00

30 lines
667 B
Puppet

# Class nova::pci
#
# Configures nova pci options
#
# === Parameters:
#
# [*aliases*]
# (optional) A list of pci alias hashes
# Defaults to $::os_service_default
# Example:
# [{"vendor_id" => "1234", "product_id" => "5678", "name" => "default"},
# {"vendor_id" => "1234", "product_id" => "6789", "name" => "other"}]
class nova::pci(
$aliases = $::os_service_default
) {
include ::nova::deps
if $aliases and
!is_service_default($aliases) and
!empty($aliases) {
$aliases_real = to_array_of_json_strings($aliases)
} else {
$aliases_real = $::os_service_default
}
nova_config {
'pci/alias': value => $aliases_real;
}
}