chef-provisioning 2.5.0 → 2.6.0

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: 917a608213be51a7acfc3f616d06ef93a079fe54
4
- data.tar.gz: e608b5e1534f671f58b2df36acdae6457b1d784f
3
+ metadata.gz: 23cdbeec60b87a7414261d35d096ee08d4936b8a
4
+ data.tar.gz: 9a260eb4fd09736e6e4f188630557867d1bd2436
5
5
  SHA512:
6
- metadata.gz: 921eebb41f34a581aca34816ba4d7e554a2b577f84943000d34fbd7e30f485bfd438a6b9f12f20a7833ee7b6b9875dc31a87b3326c0585d2b6b478dab7da22f2
7
- data.tar.gz: 9b15f8bc9413697e0ea93874bb0c68eb540abaec7eee53d5f5e20ffef45de8598e2cdfa3f6fa28992075c878f47d002772b31a726f2bd3a242dab15db62e41ba
6
+ metadata.gz: f53271d1e990ca819d63e8546f5e27d6dadf02a029515671a8aa0010ce63f1cad7b79abcb5f563f01502a70a771ec8ce4f585b4f7e9078ab60c1c0f3d85e5d77
7
+ data.tar.gz: 121d57f2508b49a8407ed365279536f7f0ffa92972f69ec062b5b95c2d977c8e4d7dbe0e0d43a24eca786ab71a6c3cdd1a40ab4a355ed6f4af4c9b1cbfd1112b
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
3
- ## [2.5.0](https://github.com/chef/chef-provisioning/tree/2.5.0) (2017-07-24)
4
- [Full Changelog](https://github.com/chef/chef-provisioning/compare/v2.4.0...2.5.0)
3
+ ## [2.6.0](https://github.com/chef/chef-provisioning/tree/2.6.0) (2017-11-08)
4
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v2.5.0...2.6.0)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Add an option to never use SSH port forwardin [\#596](https://github.com/chef/chef-provisioning/pull/596) ([jjlimepoint](https://github.com/jjlimepoint))
9
+ - Typo + small wording fix [\#590](https://github.com/chef/chef-provisioning/pull/590) ([jblaine](https://github.com/jblaine))
10
+
11
+ ## [v2.5.0](https://github.com/chef/chef-provisioning/tree/v2.5.0) (2017-07-24)
12
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v2.4.0...v2.5.0)
5
13
 
6
14
  **Merged pull requests:**
7
15
 
@@ -974,4 +982,4 @@
974
982
  ## [v0.1](https://github.com/chef/chef-provisioning/tree/v0.1) (2013-12-21)
975
983
 
976
984
 
977
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
985
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -28,9 +28,9 @@ Maintained by Chef-Partners:
28
28
  * [vSphere](https://github.com/chef-partners/chef-provisioning-vsphere)
29
29
  * [vra](https://github.com/chef-partners/chef-provisioning-vra)
30
30
 
31
- One driver are not maintained by Chef:
31
+ Maintained, not by Chef:
32
32
 
33
- * [AsureRM](https://github.com/pendrica/chef-provisioning-azurerm)
33
+ * [AzureRM](https://github.com/pendrica/chef-provisioning-azurerm)
34
34
 
35
35
  Unmaintained Drivers are at risk of becoming stale. They are:
36
36
 
@@ -215,6 +215,7 @@ with_machine_options({
215
215
  :host_key_alias => "#{instance.id}.AWS", # DEFAULT
216
216
  :key_data => nil, # use key from ssh-agent instead of a local file; remember to ssh-add your keys!
217
217
  :forward_agent => true, # you may want your ssh-agent to be available on your provisioned machines
218
+ :never_forward_localhost => false, # This will, if set, disable SSH forwarding if it does not work/make sense in your envirnoment
218
219
  :remote_forwards => [
219
220
  # Give remote host access to squid proxy on provisioning node
220
221
  {:remote_port => 3128, :local_host => 'localhost', :local_port => 3128,},
@@ -43,6 +43,7 @@ module Provisioning
43
43
  @options = options
44
44
  @config = global_config
45
45
  @remote_forwards = ssh_options.delete(:remote_forwards) { Array.new }
46
+ @never_forward_localhost = ssh_options.delete(:never_forward_localhost)
46
47
  end
47
48
 
48
49
  attr_reader :host
@@ -173,7 +174,9 @@ module Provisioning
173
174
 
174
175
  def make_url_available_to_remote(local_url)
175
176
  uri = URI(local_url)
176
- if uri.scheme == 'chefzero' && !ChefZero::SocketlessServerMap.server_on_port(uri.port).server
177
+ if @never_forward_localhost
178
+ return uri.to_s
179
+ elsif uri.scheme == 'chefzero' && !ChefZero::SocketlessServerMap.server_on_port(uri.port).server
177
180
  # There is no .server for a socketless, for a socket-d server it would
178
181
  # be a WEBrick::HTTPServer object.
179
182
  raise 'Cannot forward a socketless Chef Zero server, see https://docs.chef.io/deprecations_local_listen.html for more information'
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '2.5.0'
3
+ VERSION = '2.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-24 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh