Skip to content

Commit

Permalink
networking: install systemd-resolved when required
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Jun 15, 2023
1 parent b310db6 commit 3975b0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbooks/networking/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
end
end

package "systemd-resolved" do
action :install
only_if { platform?("ubuntu") && node[:lsb][:release].to_f > 22.04 || platform?("debian") && node[:lsb][:release].to_f > 11.0 }
end

service "systemd-networkd" do
action [:enable, :start]
end
Expand Down

0 comments on commit 3975b0b

Please sign in to comment.