costela / wesher

wireguard overlay mesh network manager
GNU General Public License v3.0
926 stars 60 forks source link

Add option to "join-and-exit" #70

Closed sbrl closed 2 years ago

sbrl commented 2 years ago

To aid in automatically setting up wesher noninteractively, it would be very nice if there was an option to join and then exit. Then I would provide the initial IP address to join and the cluster key, without specifying --join which - looking at the documentation at least - prevents wesher from resuming from the previous known state of other known hosts that were in the cluster.

Then, after it's exited, I could start it for real - e.g. via systemd.

costela commented 2 years ago

hi @sbrl would it be an option to generate wesher's config/state file instead?

sbrl commented 2 years ago

Ah, that would also work nicely @costela, yeah!

costela commented 2 years ago

Cool, then I'll go ahead and mark this "wontfix"! :+1: