X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ea0715b4be41a1d1600bba7a1f5d0b988708579f..6a6563b55fb0318323d067d82d0031f578bff68a:/cookbooks/openssh/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/openssh/recipes/default.rb b/cookbooks/openssh/recipes/default.rb index a8af1dece..2ab68392d 100644 --- a/cookbooks/openssh/recipes/default.rb +++ b/cookbooks/openssh/recipes/default.rb @@ -24,7 +24,9 @@ package "openssh-client" package "openssh-server" service "ssh" do - if node[:lsb][:release].to_f >= 14.04 + if node[:lsb][:release].to_f >= 15.10 + provider Chef::Provider::Service::Systemd + elsif node[:lsb][:release].to_f >= 14.04 provider Chef::Provider::Service::Upstart end action [:enable, :start] @@ -63,14 +65,14 @@ end template "/etc/ssh/ssh_config" do source "ssh_config.erb" - mode 0644 + mode 0o644 owner "root" group "root" end template "/etc/ssh/ssh_known_hosts" do source "ssh_known_hosts.erb" - mode 0444 + mode 0o444 owner "root" group "root" backup false