powerflex_compatibility_management (Resource)

This resource is used to set the compatibility management from the PowerFlex 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.
*/

# Command to run this tf file : terraform init && terraform plan && terraform apply.

// Resource to manage lifecycle
resource "terraform_data" "always_run" {
  input = timestamp()
}

# Example for setting compatibility management. After successful execution, device will be added to the specified storage pool
resource "powerflex_compatibility_management" "test" {
    # Required Path on your local machine to your gpg file ie(/example/path/secring.gpg)
    repository_path = "/example/path/example.gpg"
        
    // This will allow terraform create process to trigger each time we run terraform apply.
    lifecycle {
        replace_triggered_by = [
         terraform_data.always_run
        ]
    }
}

After the execution of above resource block, compatibility management would have been created on the PowerFlex array. For more information, please check the terraform state file.

Schema

Required

  • repository_path (String) Repository Path on your local machine to your comatibility gpg file ie: /example/example.gpg.

Read-Only

  • available_version (String) Available Version of the Compatibility Management Instance.
  • compatibility_data (String) Compatibility Data of the Compatibility Management Instance.
  • compatibility_data_bytes (String) Compatibility Data Bytes of the Compatibility Management Instance.
  • current_version (String) Current Version of the Compatibility Management Instance.
  • id (String) Unique identifier of the Compatibility Management Instance.
  • source (String) Source of the Compatibility Management Instance.