knife-setup 1.0.7 → 1.0.8
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.
- data/lib/chef/knife/knife-setup.rb +8 -1
- data/lib/knife-setup/version.rb +1 -1
- metadata +2 -2
|
@@ -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
|
-
|
|
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
|
|
data/lib/knife-setup/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: chef
|