chef-provisioning 2.6.0 → 2.7.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: 23cdbeec60b87a7414261d35d096ee08d4936b8a
4
- data.tar.gz: 9a260eb4fd09736e6e4f188630557867d1bd2436
3
+ metadata.gz: aa98bbf0ec186a12235f99b93f066659445cdf80
4
+ data.tar.gz: 7dcdf85a8203f503e4b4b7b690343432f2c1a002
5
5
  SHA512:
6
- metadata.gz: f53271d1e990ca819d63e8546f5e27d6dadf02a029515671a8aa0010ce63f1cad7b79abcb5f563f01502a70a771ec8ce4f585b4f7e9078ab60c1c0f3d85e5d77
7
- data.tar.gz: 121d57f2508b49a8407ed365279536f7f0ffa92972f69ec062b5b95c2d977c8e4d7dbe0e0d43a24eca786ab71a6c3cdd1a40ab4a355ed6f4af4c9b1cbfd1112b
6
+ metadata.gz: ae8832b80008cda2a043cdb0a44eb672ff351a95e19ebe73eca28dbc16bcb72abf01f75b208cdc8397e594dc248df04a9c4831750546b8e15783c9991edde653
7
+ data.tar.gz: 738f9614e3227e8a44728e56af2ec3eecc336dc4c736801ea5802aeab79e5d5f35fd278d56a38235e28b5d404f3c8e725b80699821658bbe98c8c69d48c9e7ed
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
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)
3
+ ## [2.7.0](https://github.com/chef/chef-provisioning/tree/2.7.0) (2018-01-25)
4
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v2.6.0...2.7.0)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Added convergance option to allow the setting of a rubygems mirror in… [\#601](https://github.com/chef/chef-provisioning/pull/601) ([devoptimist](https://github.com/devoptimist))
9
+ - chef 13 compat: replacing resource method dsl\_name called in resource… [\#600](https://github.com/chef/chef-provisioning/pull/600) ([devoptimist](https://github.com/devoptimist))
10
+
11
+ ## [v2.6.0](https://github.com/chef/chef-provisioning/tree/v2.6.0) (2017-11-08)
12
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v2.5.0...v2.6.0)
5
13
 
6
14
  **Merged pull requests:**
7
15
 
@@ -884,7 +892,7 @@
884
892
 
885
893
  **Merged pull requests:**
886
894
 
887
- - New ohai hints feature allowing the creation hints. [\#38](https://github.com/chef/chef-provisioning/pull/38) ([ligature](https://github.com/ligature))
895
+ - New ohai hints feature allowing the creation hints. [\#38](https://github.com/chef/chef-provisioning/pull/38) ([xorl](https://github.com/xorl))
888
896
 
889
897
  ## [v0.8](https://github.com/chef/chef-provisioning/tree/v0.8) (2014-04-08)
890
898
  [Full Changelog](https://github.com/chef/chef-provisioning/compare/v0.7...v0.8)
@@ -922,7 +930,7 @@
922
930
 
923
931
  - Add owner, group and mode attributes to machine\_file [\#43](https://github.com/chef/chef-provisioning/pull/43) ([irvingpop](https://github.com/irvingpop))
924
932
  - Dt/driver surgery [\#36](https://github.com/chef/chef-provisioning/pull/36) ([jkeiser](https://github.com/jkeiser))
925
- - Ec2 fixes [\#27](https://github.com/chef/chef-provisioning/pull/27) ([ligature](https://github.com/ligature))
933
+ - Ec2 fixes [\#27](https://github.com/chef/chef-provisioning/pull/27) ([xorl](https://github.com/xorl))
926
934
 
927
935
  ## [v0.4](https://github.com/chef/chef-provisioning/tree/v0.4) (2014-03-29)
928
936
  [Full Changelog](https://github.com/chef/chef-provisioning/compare/v0.3.1...v0.4)
@@ -939,7 +947,7 @@
939
947
  - Fix typo 'pey-pair-name' -\> 'key-pair-name' [\#30](https://github.com/chef/chef-provisioning/pull/30) ([dafyddcrosby](https://github.com/dafyddcrosby))
940
948
  - Remove unused variable provisioner\_options [\#26](https://github.com/chef/chef-provisioning/pull/26) ([dafyddcrosby](https://github.com/dafyddcrosby))
941
949
  - Update README.md to show how to add per-machine provisioner options [\#25](https://github.com/chef/chef-provisioning/pull/25) ([dafyddcrosby](https://github.com/dafyddcrosby))
942
- - Added new private\_ip compute\_options attribute. [\#23](https://github.com/chef/chef-provisioning/pull/23) ([ligature](https://github.com/ligature))
950
+ - Added new private\_ip compute\_options attribute. [\#23](https://github.com/chef/chef-provisioning/pull/23) ([xorl](https://github.com/xorl))
943
951
  - double double escape escape to fix RHEL/CentOS platform\_version detection [\#22](https://github.com/chef/chef-provisioning/pull/22) ([irvingpop](https://github.com/irvingpop))
944
952
  - Initial Openstack support [\#15](https://github.com/chef/chef-provisioning/pull/15) ([cstewart87](https://github.com/cstewart87))
945
953
 
data/README.md CHANGED
@@ -186,6 +186,7 @@ with_machine_options({
186
186
  chef_server: "http://my.chef.server/", # TODO could conflict with https://github.com/chef/chef-provisioning#pointing-boxes-at-chef-servers
187
187
  bootstrap_proxy: "http://localhost:1234",
188
188
  bootstrap_no_proxy: "localhost, *.example.com, my.chef.server",
189
+ rubygems_url: "http://mirror.example.org",
189
190
  ssl_verify_mode: :verify_peer,
190
191
  client_rb_path: "/etc/chef/client.rb", # <- DEFAULT, overwrite if necessary
191
192
  client_pem_path: "/etc/chef/client.pem", # <- DEFAULT, overwrite if necessary
@@ -245,6 +245,11 @@ module Provisioning
245
245
  no_proxy #{convergence_options[:bootstrap_no_proxy].inspect}
246
246
  EOM
247
247
  end
248
+ if convergence_options[:rubygems_url]
249
+ content << <<-EOM
250
+ rubygems_url #{convergence_options[:rubygems_url].inspect}
251
+ EOM
252
+ end
248
253
  content.gsub!(/^\s+/, "")
249
254
  content << convergence_options[:chef_config] if convergence_options[:chef_config]
250
255
  content
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '2.6.0'
3
+ VERSION = '2.7.0'
4
4
  end
5
5
  end
@@ -50,7 +50,7 @@ class MachineBatch < Chef::Resource::LWRPBase
50
50
  def to_text
51
51
  ivars = instance_variables.map { |ivar| ivar.to_sym } - HIDDEN_IVARS - [ :@from_recipe, :@machines ]
52
52
  text = "# Declared in #{@source_line}\n\n"
53
- text << self.class.dsl_name + "(\"#{name}\") do\n"
53
+ text << self.class.resource_name.to_s + "(\"#{name}\") do\n"
54
54
  ivars.each do |ivar|
55
55
  if (value = instance_variable_get(ivar)) && !(value.respond_to?(:empty?) && value.empty?)
56
56
  value_string = value.respond_to?(:to_text) ? value.to_text : value.inspect
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.6.0
4
+ version: 2.7.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-11-08 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh