metal-api icon indicating copy to clipboard operation
metal-api copied to clipboard

Add connection to headscale

Open GrigoriyMikhalkin opened this issue 3 years ago • 2 comments

metal-api should be able to connect to headscale server. For that it should be able to accept headscale-addr flag.

cc @majst01 @Gerrit91 In case headscale address is provided metal-api will be adding VPN for all projects. But what if headscale server will go down for some reason? IMO, it should fail to create new firewalls/machine in that case with explicit error that headscale server is down. What do you think?

GrigoriyMikhalkin avatar Jun 22 '22 21:06 GrigoriyMikhalkin

Yes if headscale server is configured but down, machine/firewall creation must fail

majst01 avatar Jun 23 '22 04:06 majst01

Yep, please make it conditional --> if headscale server is configured it fails, if it's not configured everything works as before

Gerrit91 avatar Jun 23 '22 07:06 Gerrit91