This document version is no longer actively maintained.
The site that you are currently viewing is an archived snapshot.
For up-to-date documentation, see the latest version.
powerscale_ntpsettings (Resource)
This resource is used to manage the NTP Settings entity of PowerScale Array. We can Create, Update and Delete the NTP Settings using this resource. We can also import the existing NTP Settings from PowerScale array. Note that, NTP Settings is the native functionality of PowerScale. When creating the resource, we actually load NTP Settings from PowerScale to the resource state.
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 NTP Settings from PowerScale, and save to terraform state file.
# If any resource arguments are specified, `terraform apply` will try to load NTP Settings (if not loaded) and update the settings.
# `terraform destroy` will delete the resource from terraform state file rather than deleting NTP Settings from PowerScale.
# For more information, Please check the terraform state file.
# PowerScale NTP Settings allow you to change the settings of NTP Servers
resource "powerscale_ntpsettings" "example_ntp_settings" {
# Optional fields both for creating and updating
# chimers = 1
# excluded = ["1","2"]
# key_file = "/ifs/"
}
# After the execution of above resource block, NTP Settings would have been cached in terraform state file, or
# NTP Settings would have been updated on PowerScale.
# For more information, Please check the terraform state file.
Schema
Optional
chimers
(Number) Number of nodes that will contact the NTP servers.excluded
(List of String) Node number (LNN) for nodes excluded from chimer duty.key_file
(String) Path to NTP key file within /ifs.
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_ntpsettings.example_ntp_settings <anyString>
# Example:
terraform import powerscale_ntpsettings.example_ntp_settings anyString
# 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.