cluster-deployment/src/steps-postinstall/10-wesher.sh
Starbeamrainbowlabs 736458538b
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds
add wesher + wireguard
with a huuuuuge hack
2022-03-21 03:11:06 +00:00

19 lines
390 B
Bash
Executable file

#!/usr/bin/env bash
task_begin "Configuring wesher";
# HACK: Ref https://github.com/costela/wesher/issues/70
WESHER_CLUSTER_KEY="${wesher_secret}" wesher /usr/local/sbin/wesher --overlay-net 172.31.250.0/16 --log-level info --join "${wesher_join_ip}" &
sleep 5;
killall wesher;
sleep 5;
task_end "$?";
task_begin "Starting wesher";
sudo systemctl enable --now wesher;
task_end "$?";