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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab894f4c13f8b1a6d3c12528fdaab52966a1a7190a0ac2d513c03b8c868f9721
|
4
|
+
data.tar.gz: dedf79aebeee5a7d3c55d8363850891b1f0821a2d98569ec40f63abe5632673f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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] =
|
36
|
-
bootstrap.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] =
|
39
|
-
bootstrap.config[:ssh_verify_host_key] =
|
40
|
-
bootstrap.config[:use_sudo] = true unless
|
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 (#{
|
48
|
+
print "\n#{ui.color("Waiting for sshd to host (#{config[:bootstrap_ip_address]})", :magenta)}"
|
49
49
|
|
50
|
-
ssh_gateway = get_ssh_gateway_for(
|
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,
|
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(
|
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
|
-
|
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
|
data/lib/knife-cloud/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|