summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-17 11:59:16 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-17 11:59:16 -0500
commitf4709248c2584a9b145c8cfdb00feb45b5b159f2 (patch)
tree160d2d282d0c1c06046a3e92da8510c58164c1e5 /bin
parent9c494299b4f4c212980aa28b69344ff7f378651d (diff)
downloadpuppet-tozt-f4709248c2584a9b145c8cfdb00feb45b5b159f2.tar.gz
puppet-tozt-f4709248c2584a9b145c8cfdb00feb45b5b159f2.zip
sync secrets when installing wireguard config
otherwise it'll get reverted by the next puppet run
Diffstat (limited to 'bin')
-rwxr-xr-xbin/algo-config2
1 files changed, 2 insertions, 0 deletions
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"