le1t0-deprec 2.1.6.017 → 2.1.6.018

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/deprec/recipes/nagios.rb +2 -1
  3. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  # deprec changelog
2
2
 
3
+ = 2.1.6.018 (Jul 2, 2010)
4
+
5
+ * fix for writing known hosts for nagios
6
+
3
7
  = 2.1.6.017 (Jul 1, 2010)
4
8
 
5
9
  * upgraded capistrano to 2.5.18.008
@@ -151,7 +151,8 @@ Capistrano::Configuration.instance(:must_exist).load do
151
151
  restart
152
152
  if nagios_known_hosts.size > 0
153
153
  put nagios_known_hosts.join("\n"), tmp_file = "/tmp/ssh_keyscan_#{Time.now.strftime("%Y%m%d%H%M%S")}.txt", :mode => 0644
154
- run "ssh-keyscan -f #{tmp_file} -t rsa > ~nagios/.ssh/known_hosts ; rm -f #{tmp_file} ; chown #{nagios_user}:#{nagios_group} ~nagios/.ssh/known_hosts"
154
+ tmp_out_file = "/tmp/known_hosts_#{Time.now.strftime("%Y%m%d%H%M%S")}.txt"
155
+ sudo "ssh-keyscan -f #{tmp_file} -t rsa > #{tmp_out_file} ; rm -f #{tmp_file} ; cp #{tmp_out_file} ~nagios/.ssh/known_hosts ; rm -f #{tmp_out_file} ; chown #{nagios_user}:#{nagios_group} ~nagios/.ssh/known_hosts"
155
156
  end
156
157
  end
157
158
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 1
8
8
  - 6
9
- - 17
10
- version: 2.1.6.017
9
+ - 18
10
+ version: 2.1.6.018
11
11
  platform: ruby
12
12
  authors:
13
13
  - Le1t0
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-01 00:00:00 +02:00
18
+ date: 2010-07-02 00:00:00 +02:00
19
19
  default_executable: depify
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency