powerscale_cluster_identity (Resource)

This resource is used to manage the Cluster Identity settings of PowerScale Array. We can Create, Update and Delete the Cluster Identity using this resource. We can also import the existing Cluster Identity settings from PowerScale array.

Example Usage

/*
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.
*/

# Available actions: Create, Update, Delete and Import.
# If resource arguments are omitted, `terraform apply` will load Cluster identity Settings from PowerScale, and save to terraform state file.
# If any resource arguments are specified, `terraform apply` will try to load Cluster identity Settings (if not loaded) and update the settings.
# `terraform destroy` will delete the resource from terraform state file rather than deleting identity Settings from PowerScale.
# For more information, Please check the terraform state file.

# PowerScale Cluster identity Settings allow you to change the settings of identity
resource "powerscale_cluster_identity" "example_identity_settings" {
  # Optional fields both for creating and updating

  # The name for this cluster.
  # It must contain only alphanumeric characters, underscores, and hyphens.
  # Spaces are not allowed.
  # The name must be unique within the cluster.
  name = "cluster1"

  # The description of the cluster.
  description = "cluster1 description"

  # The information displayed when a user logs in to the cluster.
  logon = {
    # The message of the day.
    motd = "motd"
    # The header to the message of the day.
    motd_header = "motd header"
  }
}
# After the execution of above resource block, Cluster identity Settings would have been cached in terraform state file, or
# identity Settings would have been updated on PowerScale.
# For more information, Please check the terraform state file.

Schema

Optional

  • description (String) A description of the cluster.
  • logon (Attributes) The information displayed when a user logs in to the cluster. (see below for nested schema)
  • name (String) A unique name for this cluster.

Read-Only

  • id (String) The id for this cluster.

Nested Schema for logon

Optional:

  • motd (String) The message of the day.
  • motd_header (String) The header to the message of the day.

Unless specified otherwise, all fields of this resource can be updated.

Import

Import is supported using the following syntax:

# 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.

# The command is
# terraform import powerscale_cluster_identity.example_identity_settings <anyString>
# Example:
terraform import powerscale_cluster_identity.example_identity_settings "cluster_identity"
# after running this command, populate fields as per your requirement in the config file to start managing this resource.
# Note: running "terraform show" after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.