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
- <% server = node[:secrets][:ssh][:hosts][nm_server] %>
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-ssh
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Bombadil