Using generator for more then 1 Unifi device #1
Replies: 2 comments 6 replies
-
Hey @jlengelbrecht, that depends on what all you're trying to sync, and whether it is one-way or bi-directional. The tool uses the _id field on most items to name the resources -- for example, a guest network would be generated like this:
A bit of a digression explaining this: Why this matters: I hope this ramble makes some sense lol |
Beta Was this translation helpful? Give feedback.
-
Hi @robbycuenot sorry for my delay in response. Had some other projects come my way. Playing around with this again and got this run on a self-hosted action runner in my github org. Had some trouble trying to figure out the providers.tf file but I think I got it now. I am not very experienced with terraform but I am doing my best to learn. I was able to generate the the tf files and starting to explore how to automate from this. From what I can tell any modification to the .tf files within the repo is not automatically synced correct? In order to update lets say DNS A records or Firewall rules on my UDM SE with tf. I would need to create a action for my runner to push these changes? Sorry still trying to figure out the terraform cloud piece of this. Additionally does the repo in its current state support DNS records? DNS was added as a feature a few months back. I saw some terraform for dynamic dns but from the tf files generated I don't see anything that shows me a list of DNS records. My goal is to use this to update DNS records and firewall rules between multiple UDMs and my Unifi Express travel router. Any guidance you could give me is much appreciated. |
Beta Was this translation helpful? Give feedback.
-
What would be the best way to use this for more then one device. I am looking into expanding this keeping 2 UDMs in sync using the terraform this generates.
Beta Was this translation helpful? Give feedback.
All reactions