knife-bastion 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b68f61ca9af05944b171385b8e11df6f6a9a455
4
- data.tar.gz: 42a2ef7b084cd31706d6d8c42057c75ac7e3e337
3
+ metadata.gz: 07a201e08855df9b35ea48ed9cc65c177ca07dd1
4
+ data.tar.gz: 847d377d8e45f2ac6bde7b605959016f0c0753fb
5
5
  SHA512:
6
- metadata.gz: 1e5dcc9d0006b2f9df5c7f324a293bce887b6278e07cf46403ffdb35e5b42938648ed250b23df47256f1549f02821e1c302bcb2759f11a48a948eca1692550df
7
- data.tar.gz: bb2cb3a48e4cd1ce737548d826dd243dbd4d2b4e3ff271ca8d32b0133da31eb07115bccadcf94fb5e3a3c4b1b963e0b675c80e56e66fdfbb8c3333a5c9e8aacb
6
+ metadata.gz: 4ce9362c97eb7d2797f7bdf338e68c6f0be78893ae1b262f25439cb48c19e47238674f3417b2c8cfd9597d43e14f934bf8a0b6bcbe9017a3461aa0bfcb3e7d2a
7
+ data.tar.gz: 5caf485251fefc458c98f0ce7cb77e5605d5e491e0d3e637c6057907d3f64c74ac9a52d52b4b7e0906e052e72abbf2971de6d38bde76e18bcad113f8cc0b6c82
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,18 @@
1
+ ## 1.1.1 (September 27, 2016)
2
+
3
+ Bugfixes:
4
+ - Fixed the issue with `knife bastion status` plugin, when it sometimes failed to detect bastion host IP address
5
+
6
+ ## 1.1.0 (August 30, 2016)
7
+
8
+ Changes:
9
+ - Proxy code has been refactored to make it more generic, so it can be used to proxy any requests through bastion connection
10
+
11
+ Bugfixes:
12
+
13
+ ## 1.0.0 (August 22, 2016)
14
+
15
+ Features:
16
+
17
+ - Connect to bastion server via SSH and proxy all Chef requests through this connection
18
+ - Knife plugins to monitor status, start and stop connections
@@ -26,7 +26,7 @@ class Chef
26
26
  proxy_pid = pid_result.stdout.chomp
27
27
 
28
28
  # Verify tunnel destination
29
- bastion_ip_addr = Resolv.getaddress(@bastion_host)
29
+ bastion_ip_addr = Socket.getaddrinfo(@bastion_host, nil, :INET, :STREAM, Socket::IPPROTO_TCP).first[3]
30
30
  dest_result = shell_out("lsof -an -p #{proxy_pid} -i4@#{bastion_ip_addr}:ssh")
31
31
  unless dest_result.status.success?
32
32
  ui.fatal "There is a process with PID #{proxy_pid} listening on port #{local_port}, but it does not look like a tunnel"
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Bastion
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
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-bastion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
@@ -30,7 +30,7 @@ cert_chain:
30
30
  DHSQkPQADqf52XlDQ7I6fBAn6E2bH38Wvwpu593AvE02KRKqaK8XEtBBldE4d/It
31
31
  2ysZ/sPJras9LFb2MpjJNRCdXr3z2ed6QwuLnsyEfuk=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-08-30 00:00:00.000000000 Z
33
+ date: 2016-09-27 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: chef
@@ -113,6 +113,7 @@ files:
113
113
  - ".codeclimate.yml"
114
114
  - ".gitignore"
115
115
  - ".rubocop.yml"
116
+ - CHANGELOG.md
116
117
  - Gemfile
117
118
  - LICENSE.txt
118
119
  - README.md
metadata.gz.sig CHANGED
Binary file