Skip to content

Commit

Permalink
Updated provider version to 1.5.0 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
MangirishK authored Oct 25, 2024
1 parent 43a3297 commit 734b5e1
Show file tree
Hide file tree
Showing 66 changed files with 809 additions and 67 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ limitations under the License.
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)

# v1.5.0 (October, 2024)
## Release Summary
The release supports resources and data sources mentioned in the Features section for RedFish.
## Features

### Resources
* Storage Controller Resource
* Directory Service Auth Provider Resource

### DataSources
* Storage Controller DataSource
* Directory Service Auth Provider DataSource

### Others
N/A

## Enhancements
* When the user password changes, update the password value in the locals variable, no longer needing to manually edit the state file.

## Bug Fixes
N/A

# v1.4.0 (July, 2024)
## Release Summary
The release supports resources and data sources mentioned in the Features section for RedFish.
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME=redfish
VERSION?=1.4.0
VERSION?=1.5.0
TEST?=$$(go list ./... | grep -v 'vendor')
INSTALL_ROOT?=~/.terraform.d/plugins
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The Terraform Provider for RedFish is released and licensed under the MPL-2.0 li

| **Terraform Provider** | **iDRAC9 Firmware Version** | **OS** | **Terraform** | **Golang** |
|---------------------|-----------------------|-------|--------------------|--------------------------|
| v1.4.0 | 5.x <br> 6.x <br> 7.x | ubuntu22.04 <br> rhel9.x | 1.6.x <br> 1.7.x | 1.22
| v1.5.0 | 5.x <br> 6.x <br> 7.x | ubuntu22.04 <br> rhel9.x | 1.8.x <br> 1.9.x | 1.22

## List of DataSources in Terraform Provider for RedFish
* [Bios](docs/data-sources/bios.md)
Expand All @@ -60,6 +60,8 @@ The Terraform Provider for RedFish is released and licensed under the MPL-2.0 li
* [System Boot](docs/data-sources/system_boot.md)
* [Virtual Media](docs/data-sources/virtual_media.md)
* [Server NIC](docs/data-sources/network.md)
* [Storage Controller](docs/data-sources/storage_controller.md)
* [Directory Service Auth Provider](docs/data-sources/directory_service_auth_provider.md)

## List of Resources in Terraform Provider for RedFish
* [Bios](docs/resources/bios.md)
Expand All @@ -80,6 +82,8 @@ The Terraform Provider for RedFish is released and licensed under the MPL-2.0 li
* [Server Configuration Profile Export](docs/resources/idrac_server_configuration_profile_export.md)
* [Server Configuration Profile Import](docs/resources/idrac_server_configuration_profile_import.md)
* [Server NIC](docs/resources/network_adapter.md)
* [Storage Controller](docs/resources/storage_controller.md)
* [Directory Service Auth Provider](docs/resources/directory_service_auth_provider.md)

## Installation and execution of Terraform Provider for RedFish
The installation and execution steps of Terraform Provider for Dell RedFish can be found [here](about/INSTALLATION.md).
Expand Down
2 changes: 1 addition & 1 deletion about/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Create a file called `main.tf` in your workspace with the following contents
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/bios.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ limitations under the License.
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/dell_idrac_attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ limitations under the License.
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
122 changes: 121 additions & 1 deletion docs/data-sources/directory_service_auth_provider.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
# Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Mozilla Public License Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://mozilla.org/MPL/2.0/
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

title: "redfish_directory_service_auth_provider data source"
linkTitle: "redfish_directory_service_auth_provider"
page_title: "redfish_directory_service_auth_provider Data Source - terraform-provider-redfish"
subcategory: ""
description: |-
Expand All @@ -12,6 +28,107 @@ This Terraform datasource is used to query existing Directory Service auth provi

## Example Usage

variables.tf
```terraform
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
variable "rack1" {
type = map(object({
user = string
password = string
endpoint = string
ssl_insecure = bool
}))
}
```

terraform.tfvars
```terraform
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
rack1 = {
"my-server-1" = {
user = "admin"
password = "passw0rd"
endpoint = "https://my-server-1.myawesomecompany.org"
ssl_insecure = true
},
"my-server-2" = {
user = "admin"
password = "passw0rd"
endpoint = "https://my-server-2.myawesomecompany.org"
ssl_insecure = true
},
}
```

provider.tf
```terraform
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
terraform {
required_providers {
redfish = {
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
}
provider "redfish" {
# `redfish_servers` is used to align with enhancements to password management.
# Map of server BMCs with their alias keys and respective user credentials.
# This is required when resource/datasource's `redfish_alias` is not null
redfish_servers = var.rack1
}
```

main.tf
```terraform
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Expand Down Expand Up @@ -52,6 +169,8 @@ output "directory_service_auth_provider" {
}
```

After the successful execution of the above data block, we can see the output in the state file.

<!-- schema generated by tfplugindocs -->
## Schema

Expand Down Expand Up @@ -209,3 +328,4 @@ Read-Only:
- `health` (String) health
- `health_rollup` (String) health rollup
- `state` (String) state of the storage controller

2 changes: 1 addition & 1 deletion docs/data-sources/firmware_inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ limitations under the License.
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ limitations under the License.
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ limitations under the License.
terraform {
required_providers {
redfish = {
version = "1.4.0"
version = "1.5.0"
source = "registry.terraform.io/dell/redfish"
}
}
Expand Down
Loading

0 comments on commit 734b5e1

Please sign in to comment.