Puppet Class: nova::compute::pci

Defined in:
manifests/compute/pci.pp

Overview

Parameters:

  • passthrough (Any) (defaults to: $facts['os_service_default'])


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/compute/pci.pp', line 14

class nova::compute::pci(
  $passthrough = $facts['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 = $facts['os_service_default']
  }
  nova_config {
    'pci/device_spec': value => $passthrough_real;
  }
}