]> git.openstreetmap.org Git - chef.git/commitdiff
Add firefishy wireguard peer
authorGrant Slater <git@firefishy.com>
Tue, 19 Oct 2021 22:40:46 +0000 (23:40 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 19 Oct 2021 22:40:46 +0000 (23:40 +0100)
cookbooks/networking/recipes/default.rb

index 8569c731c21e4122f240a50b26d3afdabe0fe8cf..f43eaf2a71354b36d169b415c82590198efa90ee 100644 (file)
@@ -261,6 +261,12 @@ if node[:networking][:wireguard][:enabled]
       :allowed_ips => "10.0.16.1/32",
       :endpoint => "gate.compton.nu:51820"
     }
+
+    node.default[:networking][:wireguard][:peers] << {
+      :public_key => "RofATnvlWxP3mt87+QKRXFE5MVxtoCcTsJ+yftZYEE4=",
+      :allowed_ips => "10.89.122.1/32",
+      :endpoint => "gate.firefishy.com:51820"
+    }
   end
 
   template "/etc/systemd/network/wireguard.netdev" do