paultyng / terraform-provider-unifi

Terraform provider for Unifi :satellite:
https://registry.terraform.io/providers/paultyng/unifi/latest/docs
Mozilla Public License 2.0
510 stars 90 forks source link

Unifi 8.X broke the provider #428

Open ednxzu opened 10 months ago

ednxzu commented 10 months ago

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

Is this provider dead ?

akerl commented 10 months ago

Didn’t v8 just go GA like days ago?

ednxzu commented 10 months ago

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.

akerl commented 10 months ago

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.

ednxzu commented 10 months ago

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 ?

akerl commented 10 months ago

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

joshuaspence commented 10 months ago

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.

ednxzu commented 10 months ago

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.

DanPrs commented 10 months ago

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

jonwilliams84 commented 10 months ago

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.