tvd-ssh 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ if node[:secrets][:ssh]
|
|
17
17
|
template "#{ENV['HOME']}/.ssh/#{kh_file}" do
|
18
18
|
source "known_hosts.erb"
|
19
19
|
variables(
|
20
|
-
:servers => servers.sort
|
20
|
+
:servers => servers.sort.inject([]) {|acc, server| acc << [server, node[:secrets][:ssh][:hosts][server]]; acc }
|
21
21
|
)
|
22
22
|
mode 0600
|
23
23
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
<% @servers.each do |nm_server| %>
|
2
|
-
|
3
|
-
<%= nm_server %>,[<%= server[:ssh_adddress] %>]:<%= server[:ssh_port] %> <%= server[:ssh_host_key] %>
|
1
|
+
<% @servers.each do |nm_server, server| %>
|
2
|
+
<%= nm_server %>,[<%= server[:ssh_address] %>]:<%= server[:ssh_port] %> <%= server[:ssh_host_key] %>
|
4
3
|
<% end %>
|
metadata
CHANGED