+ names.unshift("#{name}.#{node[:networking][:roles][:external][:zone]}.openstreetmap.org")
+ end
+
+ unless node.interfaces(:role => :external).empty?
+ names.unshift("#{name}.openstreetmap.org")
+ end
+
+ keys = {
+ "ssh-rsa" => node[:keys][:ssh][:host_rsa_public],
+ "ssh-dss" => node[:keys][:ssh][:host_dsa_public]
+ }
+
+ if node[:keys][:ssh][:host_ecdsa_public]
+ ecdsa_type = node[:keys][:ssh][:host_ecdsa_type]
+
+ keys[ecdsa_type] = node[:keys][:ssh][:host_ecdsa_public]
+ end
+
+ if node[:keys][:ssh][:host_ed25519_public]
+ keys["ssh-ed25519"] = node[:keys][:ssh][:host_ed25519_public]