knife-setup 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -187,7 +187,14 @@ class Chef
187
187
  bootstrap_client unless config[:nobootstrap]
188
188
  set_run_list(get_node, config[:run_list]) unless config[:run_list].empty?
189
189
  set_env(get_node, config[:environment]) unless config[:environment] == "_default"
190
- knife_ssh("chef-client").run if config[:norunchef]
190
+
191
+ begin
192
+ knife_ssh("chef-client").run
193
+ rescue Net::SSH::AuthenticationFailed
194
+ puts "Failed to authenticate #{config[:ssh_user]} - trying password auth"
195
+ knife_ssh_with_password_auth("chef-client").run
196
+ end if config[:norunchef]
197
+
191
198
  post if Chef::Config[:post_url]
192
199
  end
193
200
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-15 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef