tvd-ssh 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,4 +12,14 @@ if node[:secrets][:ssh]
|
|
12
12
|
source "authorized_keys.erb"
|
13
13
|
mode 0600
|
14
14
|
end
|
15
|
+
|
16
|
+
node[:secrets][:ssh][:known_hosts_files].sort.each do |kh_file, servers|
|
17
|
+
template "#{ENV['HOME']}/.ssh/#{kh_file}" do
|
18
|
+
source "known_hosts.erb"
|
19
|
+
variables(
|
20
|
+
:servers => servers.sort
|
21
|
+
)
|
22
|
+
mode 0600
|
23
|
+
end
|
24
|
+
end
|
15
25
|
end
|
@@ -1,4 +1,6 @@
|
|
1
1
|
Host *
|
2
|
+
User <%= node[:secrets][:username] %>
|
3
|
+
UserKnownHostsFile ~/.ssh/known_hosts ~/.ssh/known_hosts2<% node[:secrets][:ssh][:known_hosts_files].keys.sort.each do |kh_file| %> ~/.ssh/<%= kh_file %><% end %>
|
2
4
|
ServerAliveInterval 60
|
3
5
|
ServerAliveCountMax 3
|
4
6
|
ConnectTimeout 15
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Bombadil
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- cookbooks/ssh/recipes/client.rb
|
58
58
|
- cookbooks/ssh/templates/default/authorized_keys.erb
|
59
59
|
- cookbooks/ssh/templates/default/client_config.erb
|
60
|
+
- cookbooks/ssh/templates/default/known_hosts.erb
|
60
61
|
- LICENSE
|
61
62
|
- NOTICE
|
62
63
|
- README.mkd
|