knife-azure 1.5.1.rc.3 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/azure_server_create.rb +7 -7
- data/lib/knife-azure/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 611f6298817cb44acba68217bb0f4cb494ce8ec5
|
4
|
+
data.tar.gz: 6ae5e4ece790fef2169048b65cc8cce43b6d1a33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00339f1a2006e09aa8f293d41bca859e9bf69e2010b8bd0ed671ca3bd46b16c9aaad83d1dd69c473777a7d70fc5000eff2b77b374ba5865016ce9e4ebc698735
|
7
|
+
data.tar.gz: 4147e95dc4f060bae0f3ad6924e9cd26a81041e6167547b8f7741fd3c571447d72a278316c868bc4cd2be6273e2878e5fc187cc1f4cfb40064d9036ae64b983a
|
@@ -717,7 +717,7 @@ class Chef
|
|
717
717
|
bootstrap.config[:first_boot_attributes] = locate_config_value(:json_attributes) || {}
|
718
718
|
bootstrap.config[:bootstrap_version] = locate_config_value(:bootstrap_version)
|
719
719
|
bootstrap.config[:distro] = locate_config_value(:distro) || default_bootstrap_template
|
720
|
-
# setting bootstrap_template value to template_file for backward
|
720
|
+
# setting bootstrap_template value to template_file for backward
|
721
721
|
bootstrap.config[:template_file] = locate_config_value(:template_file) || locate_config_value(:bootstrap_template)
|
722
722
|
bootstrap.config[:node_ssl_verify_mode] = locate_config_value(:node_ssl_verify_mode)
|
723
723
|
bootstrap.config[:node_verify_api_cert] = locate_config_value(:node_verify_api_cert)
|
@@ -875,17 +875,17 @@ class Chef
|
|
875
875
|
}
|
876
876
|
# If user is connecting a new VM to an existing dns, then
|
877
877
|
# the VM needs to have a unique public port. Logic below takes care of this.
|
878
|
-
if
|
878
|
+
if is_image_windows? && locate_config_value(:bootstrap_protocol) == 'winrm'
|
879
879
|
if locate_config_value(:azure_connect_to_existing_dns)
|
880
|
-
port = locate_config_value(:
|
880
|
+
port = locate_config_value(:winrm_port) || Random.rand(64000) + 1000
|
881
881
|
else
|
882
|
-
port = locate_config_value(:
|
882
|
+
port = locate_config_value(:winrm_port) || '5985'
|
883
883
|
end
|
884
|
-
|
884
|
+
elsif locate_config_value(:bootstrap_protocol) == 'ssh'
|
885
885
|
if locate_config_value(:azure_connect_to_existing_dns)
|
886
|
-
port = locate_config_value(:
|
886
|
+
port = locate_config_value(:ssh_port) || Random.rand(64000) + 1000
|
887
887
|
else
|
888
|
-
port = locate_config_value(:
|
888
|
+
port = locate_config_value(:ssh_port) || '22'
|
889
889
|
end
|
890
890
|
end
|
891
891
|
server_def[:port] = port
|
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.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barry Davis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.0
|
34
|
+
version: '1.0'
|
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
|
-
version: 1.0
|
41
|
+
version: '1.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: chef
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.4.
|
160
|
+
rubygems_version: 2.4.8
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: A plugin to the Chef knife tool for creating instances on the Microsoft Azure
|