terraform-provider-redfish icon indicating copy to clipboard operation
terraform-provider-redfish copied to clipboard

NEW FEATURE: Add support for expanding the Boot Options for Boot data source

Open anupamaloke opened this issue 4 years ago • 4 comments
trafficstars

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add support for expanding the Boot Options for Boot data source. The data source should also provide a list of the boot options and their details, similar to the following:

$ curl -k -s https://192.168.10.10/redfish/v1/Systems/System.Embedded.1/BootOptions/Boot0001 | python -m json.tool
{
    "@odata.context": "/redfish/v1/$metadata#BootOption.BootOption",
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootOptions/Boot0001",
    "@odata.type": "#BootOption.v1_0_3.BootOption",
    "BootOptionEnabled": true,
    "BootOptionReference": "Boot0001",
    "Description": "Current settings of the UEFI Boot option",
    "DisplayName": "PXE Device 2: Integrated NIC 1 Port 1 Partition 1",
    "Id": "Boot0001",
    "Name": "Uefi Boot Option",
    "UefiDevicePath": "VenHw(D227C733-F75F-4341-B749-4D1759EC8538)"
}

New or Affected Resource(s)

  • data_source_redfish_boot

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.

References

  • #0000

anupamaloke avatar Sep 24 '21 10:09 anupamaloke

Hi All,

Can you please provide a sample code of Terraform to provision the Bare Metal server?

govindkg avatar Oct 28 '21 09:10 govindkg

@govindkg, you can find the example terraform plans [here] that you can refer to provision the bare-metal servers.

anupamaloke avatar Oct 29 '21 10:10 anupamaloke

The upstream gofish library has had some recent enhancements that may be useful for this issue.

https://github.com/stmcginnis/gofish/pull/184 https://github.com/stmcginnis/gofish/pull/185

bzub avatar Jul 06 '22 12:07 bzub