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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26fc55c1fbaf2cc4bd80b423e890dd8f1a596db8
4
- data.tar.gz: e544e7914382050afd27505a2a9b5b783632d74c
3
+ metadata.gz: 611f6298817cb44acba68217bb0f4cb494ce8ec5
4
+ data.tar.gz: 6ae5e4ece790fef2169048b65cc8cce43b6d1a33
5
5
  SHA512:
6
- metadata.gz: a46c128551f942d67344bdfd08ec04a8c9f658e5ca636de4753fd6b7cc7868782c3486cfa8ddc8c5a189cdf8a42e01a3696be9133c0d34623b9913050a83203d
7
- data.tar.gz: 3827001e16fc6bda9bcd51578e1dfef1bbb520f38df6d33eb33f56583b29e23700102f3fcd68a8b37e98b586a26ab7961fd6de0ade6c4fa7222f656e0e6bb5b0
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 !is_image_windows? or locate_config_value(:bootstrap_protocol) == 'ssh'
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(:ssh_port) || Random.rand(64000) + 1000
880
+ port = locate_config_value(:winrm_port) || Random.rand(64000) + 1000
881
881
  else
882
- port = locate_config_value(:ssh_port) || '22'
882
+ port = locate_config_value(:winrm_port) || '5985'
883
883
  end
884
- else
884
+ elsif locate_config_value(:bootstrap_protocol) == 'ssh'
885
885
  if locate_config_value(:azure_connect_to_existing_dns)
886
- port = locate_config_value(:winrm_port) || Random.rand(64000) + 1000
886
+ port = locate_config_value(:ssh_port) || Random.rand(64000) + 1000
887
887
  else
888
- port = locate_config_value(:winrm_port) || '5985'
888
+ port = locate_config_value(:ssh_port) || '22'
889
889
  end
890
890
  end
891
891
  server_def[:port] = port
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Azure
3
- VERSION = "1.5.1.rc.3"
3
+ VERSION = "1.5.2"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
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.1.rc.3
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-09-19 00:00:00.000000000 Z
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.0.rc.2
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.0.rc.2
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.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