knife-azure 1.4.0.rc.1 → 1.4.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/azure/deploy.rb +1 -2
- data/lib/chef/knife/azure_server_create.rb +12 -1
- data/lib/knife-azure/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MDg0MDc2ZTcwMTA4MTViYzI0MWVhYTkwZmZjNzUyOGUxMDcxYzI1ZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 43b48e02d2410e604570e6926249b266d9725b71
|
4
|
+
data.tar.gz: 91ebe2ea139695d092439ec21416daab45b77984
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzU3NDU4ZDY3NjkzYzQwZjFlMmRjYTQyYzRkNWUyMzA3YjUzMjM4NzgwNGQ5
|
11
|
-
ZGZhMjdjYzY2YTZhZDZlYjYyZjgyMzJjNmQ5Zjk0YTQ3M2NkNzY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjQ1NWFiYzZjMTU3ZWU0YmNlY2JmYzM0MDI2ZDdlZWNmZTJkZTcxY2IwYzU4
|
14
|
-
NGY0MzMyNTE5MjZlNmRlMjI4YmM1Y2RkOTNjZWQyMmE0NGYzNTY4YTE3YWNm
|
15
|
-
NDI5ODU3ZTllNWNkM2QwMTcyMGMwNzAyMjk2NWRhMjBiMzdhOWE=
|
6
|
+
metadata.gz: acdc4444674627bdaa434f5070620f61202c2271cef6563d6478343fba5a8ea4e7a91a1b9bc23981a72c0b26bed78831bc326b5828793fb41a1a8799797b05de
|
7
|
+
data.tar.gz: 2d867a11335104e29437601789d3794156ac3ef11f84b8adf45146dce16a9017a70aaf6d4e855531ed825618e1485fb25af7d8723e96a54b2ad68703eff0787a
|
data/lib/azure/deploy.rb
CHANGED
@@ -82,8 +82,7 @@ class Azure
|
|
82
82
|
cert_data = File.read (params[:cert_path])
|
83
83
|
@connection.certificates.add cert_data, params[:cert_password], 'pfx', params[:azure_dns_name]
|
84
84
|
elsif(params[:winrm_transport] == "ssl")
|
85
|
-
|
86
|
-
params[:ssl_cert_fingerprint] = thumbprint.to_s.upcase
|
85
|
+
#TODO: generate certificates for ssl listener
|
87
86
|
end
|
88
87
|
|
89
88
|
params['deploy_name'] = get_deploy_name_for_hostedservice(params[:azure_dns_name])
|
@@ -200,6 +200,11 @@ class Chef
|
|
200
200
|
:description => "The number of minutes that knife-azure will wait for the virtual machine state to transition from 'provisioning' to 'ready'. Default is 15.",
|
201
201
|
:default => 15
|
202
202
|
|
203
|
+
option :auth_timeout,
|
204
|
+
:long => "--windows-auth-timeout MINUTES",
|
205
|
+
:description => "The maximum time in minutes to wait to for authentication over the transport to the node to succeed. The default value is 25 minutes.",
|
206
|
+
:default => 25
|
207
|
+
|
203
208
|
option :identity_file,
|
204
209
|
:long => "--identity-file FILENAME",
|
205
210
|
:description => "SSH identity file for authentication, optional. It is the RSA private key path. Specify either ssh-password or identity-file"
|
@@ -260,7 +265,12 @@ class Chef
|
|
260
265
|
azure_vm_ready_timeout = locate_config_value(:azure_vm_ready_timeout).to_i
|
261
266
|
vm_status = wait_for_virtual_machine_state(:vm_status_provisioning, azure_vm_startup_timeout, retry_interval_in_seconds)
|
262
267
|
if vm_status != :vm_status_ready
|
263
|
-
|
268
|
+
begin
|
269
|
+
wait_for_virtual_machine_state(:vm_status_ready, azure_vm_ready_timeout, retry_interval_in_seconds)
|
270
|
+
rescue Chef::Exceptions::CommandTimeout => e
|
271
|
+
ui.warn("\n#{e.message}")
|
272
|
+
ui.warn("Ignoring failure to reach 'ready' with bootstrap.")
|
273
|
+
end
|
264
274
|
end
|
265
275
|
|
266
276
|
msg_server_summary(get_role_server())
|
@@ -611,6 +621,7 @@ class Chef
|
|
611
621
|
bootstrap.config[:winrm_transport] = locate_config_value(:winrm_transport)
|
612
622
|
bootstrap.config[:winrm_authentication_protocol] = locate_config_value(:winrm_authentication_protocol)
|
613
623
|
bootstrap.config[:winrm_port] = port
|
624
|
+
bootstrap.config[:auth_timeout] = locate_config_value(:auth_timeout)
|
614
625
|
|
615
626
|
elsif locate_config_value(:bootstrap_protocol) == 'ssh'
|
616
627
|
bootstrap = Chef::Knife::BootstrapWindowsSsh.new
|
data/lib/knife-azure/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.rc.
|
4
|
+
version: 1.4.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barry Davis
|
@@ -9,96 +9,96 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 1.5.5
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.5.5
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: knife-windows
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.8.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 0.8.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: chef
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 11.8.2
|
49
|
-
- - <
|
49
|
+
- - "<"
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '12'
|
52
52
|
type: :development
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: 11.8.2
|
59
|
-
- - <
|
59
|
+
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '12'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: mixlib-config
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: equivalent-xml
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.2.9
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.2.9
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: knife-cloud
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.0.0
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 1.0.0
|
104
104
|
description: A plugin to the Chef knife tool for creating instances on the Microsoft
|
@@ -144,17 +144,17 @@ require_paths:
|
|
144
144
|
- lib
|
145
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.4.4
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: A plugin to the Chef knife tool for creating instances on the Microsoft Azure
|