I am performing automated Kubernetes set up where Zerotier is one of the moving pieces.
I need to know an interface name beforehand. So, when things are deployed together, interface is known and templated in, for FRR, OSPF router in my case
What I know on set up:
Network ID
Keys for the node to start right away
Anything else, Terraform can return for zerotier_network, zerotier_identity and zerotier_member
Extra dummy run steps are very complicated for the the case of one-shot helm or terraform, deploy-to-kubernetes process
Is there a way to pre-setup or deduct interface name before node ever started? Can it be deducted with the code?
/var/lib/zerotier-one/devicemap requiring an interface name to be known already, which is not known ahead
At least, my OpnSense interface (FeeBSD 13.1) is different from Ubuntu, same ZT network.
It was the same on the same machine though, when I run it in container or on host (container with --network=host)
I think, it should just be an option in config file. E.g. interface="ztier0" So, if there any collision, it would just bail out on “stat” function above