When you create a SMB share with a purpose that have presets (like ENHANCED_TIMEMACHINE), terraform will report change on locked presets. It also raise an error when you apply it since the locked preset must be removed.
Terraform will perform the following actions:
# truenas_share_smb.time_machine will be updated in-place
~ resource "truenas_share_smb" "time_machine" {
- browsable = true -> null
- durablehandle = true -> null
id = "1"
name = "Time Machine"
- path_suffix = "%U" -> null
- shadowcopy = true -> null
- streams = true -> null
# (16 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
truenas_share_smb.time_machine: Modifying... [id=1]
╷
│ Error: When using preset 'ENHANCED_TIMEMACHINE', setting 'Timemachine' is locked.
│
│ with truenas_share_smb.time_machine,
│ on shares.tf line 1, in resource "truenas_share_smb" "time_machine":
│ 1: resource "truenas_share_smb" "time_machine" {
│
When you create a SMB share with a purpose that have presets (like
ENHANCED_TIMEMACHINE
), terraform will report change on locked presets. It also raise an error when you apply it since the locked preset must be removed.