redfish_user_account_password (Resource)

This Terraform resource is used to update password for a user of the iDRAC Server.

Note: This resource can be used by users with ‘Administrator’ role/privilege. For users with non-administrator role/privilege, either ‘user resource’ or ‘user module’ can be used for updating the password.

Note: Please refer to iDRAC password policy before updating the password.

Note: For managing (Create/Update/Delete/Change password) a single user at a time, use the resource ‘redfish_user_account’

Note: For managing (Create/Update/Delete/Change password) multiple users at a time, use the module ‘user_module’

Note: For changing the password of Administrator/root user alone, use the resource ‘user_account_password’

Example Usage

provider.tf

/*
Copyright (c) 2022-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.4.0"
      source  = "registry.terraform.io/dell/redfish"
    }
  }
}

main.tf

/*
Copyright (c) 2023-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.
*/

resource "redfish_user_account_password" "root" {
  username     = "root"
  endpoint     = "https://my-server-1.myawesomecompany.org"
  ssl_insecure = false
  old_password = "Test@1234"
  new_password = "Root@1234"
}

After successful execution of the above resource block, the password of the ‘root’/‘admin’ user will be updated to new password.

Schema

Required

  • endpoint (String) The endpoint of the iDRAC.
  • new_password (String) New Password of the user for login
  • old_password (String) Old/current password of the user to be updated

Optional

  • ssl_insecure (Boolean) This field indicates whether the SSL/TLS certificate must be verified or not
  • username (String) The name of the user

Read-Only

  • id (String) The ID of the resource.