diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-11 17:42:01 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-11 17:42:01 -0500 |
commit | b5fe67cdda8f05ffe814a923b1a69f7169b9db5c (patch) | |
tree | d208f2933f0df9390487d3c8292b31389126b250 /bin | |
parent | 4bf8cdc885f37f803d89507670c1e210f3219beb (diff) | |
download | puppet-tozt-b5fe67cdda8f05ffe814a923b1a69f7169b9db5c.tar.gz puppet-tozt-b5fe67cdda8f05ffe814a923b1a69f7169b9db5c.zip |
distribute the rest of the wireguard configuration files
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/algo-config | 8 | ||||
-rw-r--r-- | bin/helpers/algo-config.diff | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/algo-config b/bin/algo-config index 9f02a8c..6304e06 100755 --- a/bin/algo-config +++ b/bin/algo-config @@ -25,6 +25,14 @@ sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1 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 +# bishamon +sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/bishamon.conf" > "$config_path/bishamon-not-captive.conf" +scp "$config_path/bishamon-not-captive.conf" root@bishamon:/etc/wireguard/algo.conf + +# 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" +scp "$config_path/mail-not-captive.conf" root@mail.tozt.net:/etc/wireguard/algo.conf + # phone echo "algo-captive" sxiv "$config_path/phone.png" diff --git a/bin/helpers/algo-config.diff b/bin/helpers/algo-config.diff index 46cd2ee..d6300e0 100644 --- a/bin/helpers/algo-config.diff +++ b/bin/helpers/algo-config.diff @@ -8,8 +8,8 @@ index 03f439e..ff29497 100644 users: - - dan - - jack ++ - bishamon + - hush -+ - partofme + - phone + - tozt + - mail |