chef-provisioning 1.7.1 → 1.8.0

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: 6ee96fbea51a512c81d87f6ddbff79b79cca29da
4
- data.tar.gz: 882cace973c1a92e57939422b37176fd35bcaffa
3
+ metadata.gz: 5ff9e4dfc484b16cb8e33d9f3030714861950fa7
4
+ data.tar.gz: dfa0a1156db9723cf39bed80b2197de072c6ad09
5
5
  SHA512:
6
- metadata.gz: d8eb175fd67272018a88ae1acb40bfed03f84d2c5271ed93c8bea121784d32ff6d85f94cd03cf9fd8bb96e17603841fcabe9570c7b16580f33ede90ffc0213da
7
- data.tar.gz: 9253ea514642ff355cfc16458b2f2e2ce362000814a49cb402391fb4ac6d6947f549ac5da81672188538182d3a97a1bd0eadea92f543ac3ffd74c102f73ae79e
6
+ metadata.gz: 09d9cfc817cdddb6bd076020eb56dc0cda794e524010d12d2bf4fb0303af93f52ba9d1148423165bec7bd10bd60d88881d2f9aeab7926d6883b2d4c8c066ba18
7
+ data.tar.gz: ff11a5158ffac01cd0bd15dc1b80e8640c3c9423f3448097e6969b72765460db64a47ee81bf8ca19f8d95ddb1d2645ff488760d85b718e840cb45f7c90c2a3b1
data/CHANGELOG.md CHANGED
@@ -1,14 +1,28 @@
1
1
  # Change Log
2
2
 
3
- ## [1.7.1](https://github.com/chef/chef-provisioning/tree/1.7.1) (2016-05-17)
4
- [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.7.0...1.7.1)
3
+ ## [1.8.0](https://github.com/chef/chef-provisioning/tree/1.8.0) (2016-06-16)
4
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.7.1...1.8.0)
5
+
6
+ **Closed issues:**
7
+
8
+ - machine\_batch doesn't clearly mention which machine failed [\#499](https://github.com/chef/chef-provisioning/issues/499)
9
+ - Flexible install\_command. Do not assume internet acces. [\#474](https://github.com/chef/chef-provisioning/issues/474)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Fix WARN: nil is an invalid value for output\_key\_format [\#520](https://github.com/chef/chef-provisioning/pull/520) ([christinedraper](https://github.com/christinedraper))
14
+ - Add support for custom :install\_sh\_url [\#515](https://github.com/chef/chef-provisioning/pull/515) ([SIGUSR2](https://github.com/SIGUSR2))
15
+ - error handling for machine\_batch resource [\#500](https://github.com/chef/chef-provisioning/pull/500) ([ckaushik](https://github.com/ckaushik))
16
+
17
+ ## [v1.7.1](https://github.com/chef/chef-provisioning/tree/v1.7.1) (2016-05-17)
18
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.7.0...v1.7.1)
5
19
 
6
20
  **Merged pull requests:**
7
21
 
8
- - install_sh and install_cached convergence strategies trigger chef-client with -c flag [\#518](https://github.com/chef/chef-provisioning/pull/518) ([poliva83](https://github.com/poliva83))
22
+ - install\_sh and install\_cached convergence strategies trigger chef-client with -c flag [\#518](https://github.com/chef/chef-provisioning/pull/518) ([poliva83](https://github.com/poliva83))
9
23
 
10
- ## [1.7.0](https://github.com/chef/chef-provisioning/tree/1.7.0) (2016-04-06)
11
- [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.6.0...1.7.0)
24
+ ## [v1.7.0](https://github.com/chef/chef-provisioning/tree/v1.7.0) (2016-04-06)
25
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.6.0...v1.7.0)
12
26
 
13
27
  **Merged pull requests:**
14
28
 
@@ -840,4 +854,4 @@
840
854
  ## [v0.1](https://github.com/chef/chef-provisioning/tree/v0.1) (2013-12-21)
841
855
 
842
856
 
843
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
857
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -90,6 +90,14 @@ class MachineBatch < Chef::Provider::LWRPBase
90
90
  end
91
91
  end
92
92
 
93
+ class MachineBatchError < StandardError
94
+ attr_reader :machine
95
+ def initialize(machine, msg)
96
+ @machine = machine
97
+ super(msg)
98
+ end
99
+ end
100
+
93
101
  def with_ready_machines
94
102
  action_allocate
95
103
  parallel_do(by_new_driver) do |driver, specs_and_options|
@@ -101,6 +109,9 @@ class MachineBatch < Chef::Provider::LWRPBase
101
109
  m[:machine] = machine
102
110
  begin
103
111
  yield m if block_given?
112
+ rescue StandardError => error
113
+ Chef::Log.debug("Chef provisioning failed on machine #{machine.name}")
114
+ raise MachineBatchError.new(machine, error.message)
104
115
  ensure
105
116
  machine.disconnect
106
117
  end
@@ -39,6 +39,8 @@ module Provisioning
39
39
  opts["https_proxy"] = convergence_options[:bootstrap_proxy]
40
40
  end
41
41
 
42
+ opts["omnibus_url"] = convergence_options[:install_sh_url] if convergence_options[:install_sh_url]
43
+
42
44
  if convergence_options[:install_sh_arguments]
43
45
  opts['install_flags'] = convergence_options[:install_sh_arguments]
44
46
  end
@@ -139,6 +139,7 @@ module Provisioning
139
139
  def create_chef_objects(action_handler, machine, private_key, public_key)
140
140
  _convergence_options = convergence_options
141
141
  _chef_server = chef_server
142
+ _format = _convergence_options[:public_key_format]
142
143
  # Save the node and create the client keys and client.
143
144
  Chef::Provisioning.inline_resource(action_handler) do
144
145
  # Create client
@@ -146,7 +147,7 @@ module Provisioning
146
147
  chef_server _chef_server
147
148
  source_key public_key
148
149
  output_key_path _convergence_options[:public_key_path]
149
- output_key_format _convergence_options[:public_key_format]
150
+ output_key_format _format if _format
150
151
  admin _convergence_options[:admin]
151
152
  validator _convergence_options[:validator]
152
153
  end
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '1.7.1'
3
+ VERSION = '1.8.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: 1.7.1
4
+ version: 1.8.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: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -289,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  version: '0'
290
290
  requirements: []
291
291
  rubyforge_project:
292
- rubygems_version: 2.6.3
292
+ rubygems_version: 2.5.1
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: A library for creating machines and infrastructures idempotently in Chef.