]> git.openstreetmap.org Git - chef.git/commitdiff
Enable wireguard access for tomh
authorTom Hughes <tom@compton.nu>
Tue, 15 Sep 2020 16:23:50 +0000 (17:23 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Sep 2020 16:23:50 +0000 (17:23 +0100)
cookbooks/networking/recipes/default.rb

index 34a1a52afba33d0e3e860cf3e6eb6ddcdc975000..695f19df56b67b86f554f1ac3d4283128fe8492f 100644 (file)
@@ -235,6 +235,12 @@ if node[:networking][:wireguard][:enabled]
         :endpoint => "#{gateway.name}:51820"
       }
     end
+
+    node.default[:networking][:wireguard][:peers] << {
+      :public_key => "7Oj9ufNlgidyH/xDc+aHQKMjJPqTmD/ab13agMh6AxA=",
+      :allowed_ips => "10.0.16.1/32",
+      :endpoint => "gate.compton.nu:51820"
+    }
   end
 
   template "/etc/systemd/network/wireguard.netdev" do