package "openssh-server"
service "ssh" do
+ if node[:lsb][:release].to_f >= 14.04
+ provider Chef::Provider::Service::Upstart
+ end
action [ :enable, :start ]
supports :status => true, :restart => true, :reload => true
end
}
if node[:keys][:ssh][:host_ecdsa_public]
- keys[node[:keys][:ssh][:host_ecdsa_type]] = node[:keys][:ssh][:host_ecdsa_public]
+ ecdsa_type = node[:keys][:ssh][:host_ecdsa_type]
+
+ keys[ecdsa_type] = node[:keys][:ssh][:host_ecdsa_public]
end
Hash[