HewlettPackard / oneview-puppet

This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Terraform and Ansible Collection
https://forge.puppet.com/hewlettpackard/oneview
Apache License 2.0
8 stars 17 forks source link

Failing to create oneview_server_profile_tempate with connections #315

Closed riconem closed 3 years ago

riconem commented 3 years ago

Scenario/Intent

Creating a oneview_server_profile_template resource with connections.

Environment Details

Steps to Reproduce

Create a oneview_server_profile_template resource with the following parameters.

#  SY 480 Gen9, Enclosure_Group_01 and Network_Set_01 are required
oneviewconf::dtt::server_profile_templates:
  ESX_Server_Template:
    serverHardwareTypeUri: SY 480 Gen9
    affinity: Bay
    hideUnusedFlexNics: true
    macType: Virtual
    wwnType: Virtual
    serialNumberType: Virtual
    enclosureGroupUri: Enclosure_Group_01
    connectionSettings:
      complianceControl: Checked
      manageConnections: true
      connections:
      - id: 1
        functionType: Set
        networkUri: Network_Set_01
        portId: Mezz 3:1-a
        requestedVFs: 0
        requestedMbps: 2000
        boot:
           priority: NotBootable
        isolatedTrunk: false
    bootMode:
      complianceControl: Checked
      manageMode: true
      mode: BIOS
      secureBoot: Disabled
    boot:
      complianceControl: Checked
      manageBoot: true
      order:
        - CD
        - USB
        - HardDisk
        - PXE
    bios:
      complianceControl: Checked
      manageBios: true

Expected Result

Creating one oneview_server_profile_template resource with connections.

Actual Result

The following Error pops up in the console.

Error: /Stage[main]/Oneviewconf::Dtt/Oneview_server_profile_template[ESX_Server_Template]: Could not evaluate: undefined method `include?' for true:TrueClass