From f4709248c2584a9b145c8cfdb00feb45b5b159f2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 17 Nov 2018 11:59:16 -0500 Subject: sync secrets when installing wireguard config otherwise it'll get reverted by the next puppet run --- bin/algo-config | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/algo-config b/bin/algo-config index 55d51b9..6026921 100755 --- a/bin/algo-config +++ b/bin/algo-config @@ -24,11 +24,13 @@ sudo cp "$config_path/hush-not-captive.conf" /etc/wireguard/algo.conf sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/tozt.conf" > "$config_path/tozt-not-captive.conf" scp "$config_path/tozt-not-captive.conf" root@tozt.net:/etc/wireguard/algo.conf cp "$config_path/tozt-not-captive.conf" /mnt/puppet/tozt/wireguard +$secrets_bin sync tozt # partofme sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/partofme.conf" > "$config_path/partofme-not-captive.conf" scp "$config_path/partofme-not-captive.conf" root@partofme:/etc/wireguard/algo.conf cp "$config_path/partofme-not-captive.conf" /mnt/puppet/partofme/wireguard +$secrets_bin sync partofme # mail sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/mail.conf" > "$config_path/mail-not-captive.conf" -- cgit v1.2.3-54-g00ecf