dariusbakunas / terraform-provider-truenas

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

truenas_share_nfs issue w/ TrueNas scale #9

Open maurizio-vitale opened 1 year ago

maurizio-vitale commented 1 year ago

On TrueNAS-SCALE-22.12.0 the NFS share endpoint has a path parameter but no paths parameter.

Just a data point, not sure what would be the best fix to maintain compatibility with other users. For me, I'll probably hardcode something that works, in the end I only need datasets and NFS shares (and datasets work just fine)

dariusbakunas commented 1 year ago

Right, this is 2nd api issue already and I think this is not the end.. with cloud providers its easy, there is only one - latest api and it is pretty consistent, this is different. I may need to create multiple versions of TrueNAS go SDK and ideally keep the same resource schema for all TrueNAS versions if that is even possible. It probably makes sense to have explicit provider setting to select specific TrueNAS version instead of trying to determine it automatically.

songhanpoo commented 1 year ago

Yeah, i had the same issue.

imyller commented 1 year ago

Any progress on this one?

NFS sharing API has slight differences in TrueNAS CORE and SCALE.

https://www.truenas.com/docs/api/core_rest_api.html vs https://www.truenas.com/docs/api/scale_rest_api.html

I do not think you'd have to have more variations than those two.

lostapathy commented 11 months ago

Just ran into this as well. Is this something you're interested in getting going, @dariusbakunas ? Any suggestions on how you'd like to see it tackled if somebody takes a run at it?