X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3e0644bc430ad08eef063a8d3b462c2d95621d1d..35cf5ef86f73bfb27ca4a82cfd2e7b1975b62f3f:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index cb4f741d9..ea87c3b7b 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -41,6 +41,10 @@ file "/etc/netplan/99-chef.yaml" do action :delete end +package "ifupdown" do + action :purge +end + package "netplan.io" do action :purge end @@ -262,6 +266,16 @@ if node[:networking][:wireguard][:enabled] end end +# Setup dokken network in systemd-networkd to avoid systemd-networkd-wait-online delay +template "/etc/systemd/network/dokken.network" do + source "dokken.network.erb" + owner "root" + group "root" + mode "644" + notifies :run, "execute[networkctl-reload]", :immediately + only_if { kitchen? } +end + notify_group "networkctl-reload" execute "networkctl-reload" do