]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ucl.rb
Replace OpenVPN with wireguard for VPN tunnels
[chef.git] / roles / ucl.rb
index 7f74979a5e81070e07f963df9e3c2e0d72481209..b3220a9941ceb62d7b9c8a06bb338da12ea25969 100644 (file)
@@ -8,7 +8,10 @@ default_attributes(
       :internal => {
         :inet => {
           :prefix => "20",
-          :gateway => "10.0.0.3"
+          :gateway => "10.0.0.3",
+          :routes => {
+            "10.0.0.0/8" => { :via => "10.0.0.3" }
+          }
         }
       },
       :external => {
@@ -18,6 +21,9 @@ default_attributes(
           :gateway => "193.60.236.254"
         }
       }
+    },
+    :wireguard => {
+      :keepalive => 180
     }
   }
 )