dariusbakunas / terraform-provider-truenas

Experimental terraform provider to manage TrueNAS server
MIT License
72 stars 16 forks source link

NFS shares API changed in TrueNAS v22.12.3 #20

Open Razaekel opened 1 year ago

Razaekel commented 1 year ago

Previously, the NFS share API at /api/2.0/sharing/nfs had more fields, but as of TrueNAS 22.12.3, it's been reduced to the following four fields:

path local path to be exported.

aliases IGNORED, for now.

networks is a list of authorized networks that are allowed to access the share having format "network/mask" CIDR notation. If empty, all networks are allowed.

hosts is a list of IP's/hostnames which are allowed to access the share. If empty, all IP's/hostnames are allowed.

Fields like comment, maproot*, or even paths were removed, so using terraform to get or set nfs shares causes the plugin to either error when trying to apply, or crash when trying to import.

imyller commented 11 months ago

Any estimate on adding support for latest TrueNAS API variant?

NFS path vs paths is the main cause for failing resource modifications.

notarock commented 10 months ago

+1

minpet commented 1 month ago

+1