powerscale_ntpserver (Resource)

This resource is used to manage the NTP Server entity of PowerScale Array. We can Create, Update and Delete the NTP Server using this resource. We can also import an existing NTP Server 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
# After `terraform apply` of this example file for the first time, you will create a NTP Server on the PowerScale

# PowerScale NTP Server allows you to synchronize the system time
resource "powerscale_ntpserver" "ntp_server_test" {
  #   Required
  #   Name should be a qualified name of an existing NTP Server and cannot be updated
  name = "ntp_server_example"

  #   Optional parameters for updating
  key = "ntp_server_key_example"
}

# After the execution of above resource block, NTP Server would have been created on the PowerScale array.
# For more information, Please check the terraform state file.

Schema

Required

  • name (String) NTP server name.

Optional

  • key (String) Key value from key_file that maps to this server.

Read-Only

  • id (String) Field ID.

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

Import

Import is supported using the following syntax:

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

# The command is
# terraform import powerscale_ntpserver.ntp_server_test <name>
# Example:
terraform import powerscale_ntpserver.ntp_server_test ntp_server_id
# after running this command, populate the name field and other required parameters 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.