]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/attributes/default.rb
Enable wireguard support on all machines that support it
[chef.git] / cookbooks / networking / attributes / default.rb
index 6881fcafeb1f1d226779d80b4d529ee30bb9d6c2..3872a516516f0a481a10f96ea6419bddf87525ba 100644 (file)
@@ -1,5 +1,3 @@
-wireguard_id = %x(systemd-id128 machine-id -a 3f36688c233848dfa84e4b176195622e)
-
 default[:networking][:firewall][:enabled] = true
 default[:networking][:firewall][:inet] = []
 default[:networking][:firewall][:inet6] = []
@@ -14,7 +12,6 @@ default[:networking][:nameservers] = []
 default[:networking][:search] = []
 default[:networking][:dnssec] = "allow-downgrade"
 default[:networking][:hostname] = node.name
-default[:networking][:wireguard][:enabled] = false
-default[:networking][:wireguard][:address] = "fd43:e709:ea6d:1:#{wireguard_id[0, 4]}:#{wireguard_id[4, 4]}:#{wireguard_id[8, 4]}:#{wireguard_id[12, 4]}"
+default[:networking][:wireguard][:enabled] = true
 default[:networking][:wireguard][:keepalive] = false
 default[:networking][:wireguard][:peers] = []