X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/94df602bb1bbe36de3008fdf9b94e6baee2f934b..204605749875101d3316aa94917d0a4b6c055fb3:/cookbooks/openssh/recipes/default.rb diff --git a/cookbooks/openssh/recipes/default.rb b/cookbooks/openssh/recipes/default.rb index 33b703421..9eca4a5ba 100644 --- a/cookbooks/openssh/recipes/default.rb +++ b/cookbooks/openssh/recipes/default.rb @@ -24,11 +24,6 @@ package "openssh-client" package "openssh-server" service "ssh" do - 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] supports :status => true, :restart => true, :reload => true end @@ -65,14 +60,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