powerscale_nfs_global_settings (Resource)
This resource is used to manage the NFS Global Settings of PowerScale Array. We can Create, Update and Delete the NFS Global Settings using this resource.
Note that, NFS Global Settings is the native functionality of PowerScale. When creating the resource, we actually load NFS Global Settings from PowerScale to the resource.
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 NFS global settings from PowerScale, and save to terraform state file.
# If any resource arguments are specified, `terraform apply` will try to load NFS global settings (if not loaded) and update the settings.
# `terraform destroy` will delete the resource from terraform state file rather than deleting NFS global settings from PowerScale.
# For more information, Please check the terraform state file.
# PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
resource "powerscale_nfs_global_settings" "example" {
# Optional fields both for creating and updating
# nfsv3_enabled = true
# nfsv3_rdma_enabled = false
# nfsv4_enabled = false
# rpc_maxthreads = 16
# rpc_minthreads = 16
# rquota_enabled = false
# service = true
}
# After the execution of above resource block, NFS global settings would have been cached in terraform state file, or
# NFS global settings would have been updated on PowerScale.
# For more information, Please check the terraform state file.
Schema
Optional
nfsv3_enabled
(Boolean) True if NFSv3 is enabled.nfsv3_rdma_enabled
(Boolean) True if the RDMA is enabled for NFSv3.nfsv4_enabled
(Boolean) True if NFSv4 is enabled.rpc_maxthreads
(Number) Specifies the maximum number of threads in the nfsd thread pool.rpc_minthreads
(Number) Specifies the minimum number of threads in the nfsd thread pool.rquota_enabled
(Boolean) True if the rquota protocol is enabled.service
(Boolean) True if the NFS service is enabled. When set to false, the NFS service is disabled.
Read-Only
id
(String) Id of NFS Global settings. Readonly.
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_nfs_global_settings.example <anyString>
# Example:
terraform import powerscale_nfs_global_settings.example 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.