terraform-provider-unifi icon indicating copy to clipboard operation
terraform-provider-unifi copied to clipboard

Unifi 8.X broke the provider

Open ednxzu opened this issue 1 year ago • 9 comments

Most of the APIs have changed, pretty much all thing related to networks/ports/port profiles are broken.

Is this provider dead ?

ednxzu avatar Nov 25 '23 16:11 ednxzu

Didn’t v8 just go GA like days ago?

akerl avatar Nov 25 '23 16:11 akerl

It's been asking me to update for a while I think, but I don't know exactly. If it's only days old, then that is to be expected I guess, but 7.4.X is months old and doesn't work either, hence the question about maintenance, not trying to be mean or anything, just genuinely curious.

ednxzu avatar Nov 25 '23 16:11 ednxzu

There are PRs up that cover up to 7.4, I’ve been using the code from them as recently as last week.

I haven’t tried them on v8 yet.

akerl avatar Nov 25 '23 16:11 akerl

I think I've been using your fork for 7.4 compatibility. I didn't see PRs on this repo covering it, would you happen to have a link ?

ednxzu avatar Nov 25 '23 16:11 ednxzu

https://github.com/paultyng/terraform-provider-unifi/pull/390 is the bulk of it. I also made a change so I could skip storing wifi passphrases in statefiles

akerl avatar Nov 26 '23 01:11 akerl

Sorry for the delay, life got in the way. I'll try to catch up on the PR backlog over the next week or two.

joshuaspence avatar Nov 26 '23 03:11 joshuaspence

Sorry for the delay, life got in the way. I'll try to catch up on the PR backlog over the next week or two.

No worries, I'm sorry if this issue seemed aggressive, that was not my intention.

ednxzu avatar Nov 26 '23 11:11 ednxzu

I'm also unable to import any site other than the Default. As others mentioned, switch port management is also broken.

DanPrs avatar Nov 30 '23 14:11 DanPrs

This has also stung me today.

My UDM is configured (mostly) as IaC....leveraging terraform + scheduled gitlab pipeline to keep the devices configured per code. This Port Profile change (which I am not saying is a bad idea) has broken that and caused me a number of headaches as the wrong profiles are seemingly getting applied for what looks like confusion in the API and how the provider handles profiles and port overrides.

Just a heads up - if you have any automation like I do - save yourself the headache and do not try and manage port profiles and port overrides via terraform until the paultyng/unifi provider has caught up.

jonwilliams84 avatar Dec 06 '23 18:12 jonwilliams84