knife-cloud 4.0.0 → 4.0.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
  SHA256:
3
- metadata.gz: 14967b2a6c892d13a80954bb92d7e1b8b11483841f652dac47c15083ecb8fa9a
4
- data.tar.gz: 77f8e21894cade4f427f36edc31eedfe356d191cdcf08e937103dbeb50195699
3
+ metadata.gz: ab894f4c13f8b1a6d3c12528fdaab52966a1a7190a0ac2d513c03b8c868f9721
4
+ data.tar.gz: dedf79aebeee5a7d3c55d8363850891b1f0821a2d98569ec40f63abe5632673f
5
5
  SHA512:
6
- metadata.gz: 93ff890440681e628563a8c38c326d9f5a1038109a4a0dc1d70af00bef148f5bbcb480767b525395e8037a1356db323606558c9359c85a5610cb4378b023138e
7
- data.tar.gz: c6e0dafb2549647989171894755263651630808bd1dcb5b63c18da0ef434ad32cea99f2546861ba0f410dd49551a4f81f649d4b626422555dc63e669bcb30e90
6
+ metadata.gz: 12d02e53f211b9824c5dbb0e8bc0bec8630437cc9d6de8d88842fba4bb3e5f6c227e4bedd9894a8d6e959f85d03aa9281b480935f57e98e640df80b11545ccf9
7
+ data.tar.gz: 2363fdea3d79b36750aa598a79cdff9ee3b8f1e59899af2f0ff916aeedcae992ecb6d3d2982ca86ebd97b59f8dde2c23ece4af61c930305dfebf90f9360b9243
@@ -32,12 +32,12 @@ class Chef
32
32
  end
33
33
 
34
34
  def init_bootstrap_options
35
- bootstrap.config[:connection_user] = @config[:connection_user]
36
- bootstrap.config[:connection_password] = @config[:connection_password]
35
+ bootstrap.config[:connection_user] = config[:connection_user]
36
+ bootstrap.config[:connection_password] = config[:connection_password]
37
37
  bootstrap.config[:connection_port] = config[:connection_port]
38
- bootstrap.config[:ssh_identity_file] = @config[:ssh_identity_file]
39
- bootstrap.config[:ssh_verify_host_key] = @config[:ssh_verify_host_key]
40
- bootstrap.config[:use_sudo] = true unless @config[:connection_user] == "root"
38
+ bootstrap.config[:ssh_identity_file] = config[:ssh_identity_file]
39
+ bootstrap.config[:ssh_verify_host_key] = config[:ssh_verify_host_key]
40
+ bootstrap.config[:use_sudo] = true unless config[:connection_user] == "root"
41
41
  bootstrap.config[:ssh_gateway] = config[:ssh_gateway]
42
42
  bootstrap.config[:forward_agent] = config[:forward_agent]
43
43
  bootstrap.config[:use_sudo_password] = config[:use_sudo_password]
@@ -45,19 +45,19 @@ class Chef
45
45
  end
46
46
 
47
47
  def wait_for_server_ready
48
- print "\n#{ui.color("Waiting for sshd to host (#{@config[:bootstrap_ip_address]})", :magenta)}"
48
+ print "\n#{ui.color("Waiting for sshd to host (#{config[:bootstrap_ip_address]})", :magenta)}"
49
49
 
50
- ssh_gateway = get_ssh_gateway_for(@config[:bootstrap_ip_address])
50
+ ssh_gateway = get_ssh_gateway_for(config[:bootstrap_ip_address])
51
51
 
52
52
  # The ssh_gateway & subnet_id are currently supported only in EC2.
53
53
  if ssh_gateway
54
- print(".") until tunnel_test_ssh(ssh_gateway, @config[:bootstrap_ip_address]) do
54
+ print(".") until tunnel_test_ssh(ssh_gateway, config[:bootstrap_ip_address]) do
55
55
  @initial_sleep_delay = !!config[:subnet_id] ? 40 : 10
56
56
  sleep @initial_sleep_delay
57
57
  puts("done")
58
58
  end
59
59
  else
60
- print(".") until tcp_test_ssh(@config[:bootstrap_ip_address], config[:connection_port] || config[:ssh_port] ) do
60
+ print(".") until tcp_test_ssh(config[:bootstrap_ip_address], config[:connection_port] || config[:ssh_port] ) do
61
61
  @initial_sleep_delay = !!config[:subnet_id] ? 40 : 10
62
62
  sleep @initial_sleep_delay
63
63
  puts("done")
@@ -130,7 +130,8 @@ class Chef
130
130
  def tunnel_test_ssh(ssh_gateway, hostname, &block)
131
131
  status = false
132
132
  gateway = configure_ssh_gateway(ssh_gateway)
133
- gateway.open(hostname, config[:ssh_port]) do |local_tunnel_port|
133
+ remote_ssh_port = config[:connection_port] || config[:ssh_port] || 22
134
+ gateway.open(hostname, remote_ssh_port) do |local_tunnel_port|
134
135
  status = tcp_test_ssh("localhost", local_tunnel_port, &block)
135
136
  end
136
137
  status
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Cloud
3
- VERSION = "4.0.0".freeze
3
+ VERSION = "4.0.2".freeze
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-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaustubh Deorukhkar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-05 00:00:00.000000000 Z
12
+ date: 2020-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef