Adopt a Unifi device having an IPFire router: DHCP option 43
If you have a router running the IPFire router distribution, and want to easily adopt some newly added stuff, you can use the infamous "DHCP Option 43" adoption method. Sure, you can use the SSH method of adoption, but some devices (the Mini Flex switch for example) don't support this, and adopting these things from a different subnet (over a site VPN for example) is a beastly task without this.
Open up a IPFire SSH console and then:
nano /var/ipfire/dhcp/dhcpd.conf.local
Modify the file thusly:
# UniFi devices DHCP option 43 option space ubnt; option ubnt.UNIFI-IP-ADDRESS code 1 = ip-address; option ubnt.UNIFI-IP-ADDRESS 192.168.123.123;class "ubnt" { match if substring (option vendor-class-identifier, 0, 4) = "ubnt"; option vendor-class-identifier "ubnt"; vendor-option-space ubnt;}
Replace 192.168.123.123 with your controller's IP. Everything else should be left as is even if some things might look like you should replace them -- don't!
Restart your IPFire router, or do a
/etc/rc.d/init.d/dhcp restart