chef-config 12.22.5 → 13.0.113

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: 395304d2cc498cf62c30c1231c17540ea9be2a1a
4
- data.tar.gz: 41c2e1262678222257bfd7df98408c5d3f121d02
3
+ metadata.gz: dbcd4994a3e463c2e77344e541ea30140ce79228
4
+ data.tar.gz: 9d945981a3e8bb5508ee0b1d06f34b0618f845e9
5
5
  SHA512:
6
- metadata.gz: bf0f4b655c6165ae3d4f01bbcb089bc5e2b66410e8d675835083e47b98dadfb937eabd4410ec68a0a4c1364e8c49644a7ee207ac45920171c257dba63870ea20
7
- data.tar.gz: c5065d99d67fcb2859ecb22180797bbbcb637cbee850ffc221e9c9333fe6a99294eb4b349efe7d6f1a76a6e1fb57f9696432ba068555e3bd69f3eed026ddb2a9
6
+ metadata.gz: ddd06a1436cfe5f71da8732338e689ef7ccb6b90a05574791717b1a86f6662cdda78aa324c8b856a305bd75599e9dff454eade85c9b62120cac098fddc84c3b0
7
+ data.tar.gz: fc229c04a1f031502a5e727b06863cbe05c9ab22f828ec3109052cbfb42a1b81b4353d9bb97345c5270b4d6cf3584503fdb0983183f8900742f5cdfef6ae76b1
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
@@ -4,7 +4,7 @@
4
4
  # Author:: AJ Christensen (<aj@chef.io>)
5
5
  # Author:: Mark Mzyk (<mmzyk@chef.io>)
6
6
  # Author:: Kyle Goodwin (<kgoodwin@primerevenue.com>)
7
- # Copyright:: Copyright 2008-2016, Chef Software Inc.
7
+ # Copyright:: Copyright 2008-2017, Chef Software Inc.
8
8
  # License:: Apache License, Version 2.0
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -250,7 +250,7 @@ module ChefConfig
250
250
  default(:policy_path) { derive_path_from_chef_repo_path("policies") }
251
251
 
252
252
  # Turn on "path sanity" by default. See also: http://wiki.opscode.com/display/chef/User+Environment+PATH+Sanity
253
- default :enforce_path_sanity, true
253
+ default :enforce_path_sanity, false
254
254
 
255
255
  # Formatted Chef Client output is a beta feature, disabled by default:
256
256
  default :formatter, "null"
@@ -450,6 +450,10 @@ module ChefConfig
450
450
  # most of our testing scenarios)
451
451
  default :minimal_ohai, false
452
452
 
453
+ # When consuming Ohai plugins from cookbook segments, we place those plugins in this directory.
454
+ # Subsequent chef client runs will wipe and re-populate the directory to ensure cleanliness
455
+ default(:ohai_segment_plugin_path) { PathHelper.join(config_dir, "ohai", "cookbook_plugins") }
456
+
453
457
  ###
454
458
  # Policyfile Settings
455
459
  #
@@ -606,13 +610,10 @@ module ChefConfig
606
610
  end
607
611
  end
608
612
 
609
- # As of Chef 11.0, version "1" is the default encrypted data bag item
610
- # format. Version "2" is available which adds encrypt-then-mac protection.
611
- # To maintain compatibility, versions other than 1 must be opt-in.
613
+ # As of Chef 13.0, version "3" is the default encrypted data bag item
614
+ # format.
612
615
  #
613
- # Set this to `2` if you have chef-client 11.6.0+ in your infrastructure.
614
- # Set this to `3` if you have chef-client 11.?.0+, ruby 2 and OpenSSL >= 1.0.1 in your infrastructure. (TODO)
615
- default :data_bag_encrypt_version, 1
616
+ default :data_bag_encrypt_version, 3
616
617
 
617
618
  # When reading data bag items, any supported version is accepted. However,
618
619
  # if all encrypted data bags have been generated with the version 2 format,
@@ -644,11 +645,10 @@ module ChefConfig
644
645
  # generation (server generates client keys).
645
646
  default(:local_key_generation) { true }
646
647
 
647
- # Zypper package provider gpg checks. Set to true to enable package
648
- # gpg signature checking. This will be default in the
649
- # future. Setting to false disables the warnings.
650
- # Leaving this set to nil or false is a security hazard!
651
- default :zypper_check_gpg, nil
648
+ # Zypper package provider gpg checks. Set to false to disable package
649
+ # gpg signature checking globally. This will warn you that it is a
650
+ # bad thing to do.
651
+ default :zypper_check_gpg, true
652
652
 
653
653
  # Report Handlers
654
654
  default :report_handlers, []
@@ -714,6 +714,7 @@ module ChefConfig
714
714
  default :ssh_user, nil
715
715
  default :ssh_attribute, nil
716
716
  default :ssh_gateway, nil
717
+ default :ssh_gateway_identity, nil
717
718
  default :bootstrap_version, nil
718
719
  default :bootstrap_proxy, nil
719
720
  default :bootstrap_template, nil
@@ -825,13 +826,6 @@ module ChefConfig
825
826
  #
826
827
  default :no_lazy_load, true
827
828
 
828
- # Default for the chef_gem compile_time attribute. Nil is the same as true but will emit
829
- # warnings on every use of chef_gem prompting the user to be explicit. If the user sets this to
830
- # true then the user will get backcompat behavior but with a single nag warning that cookbooks
831
- # may break with this setting in the future. The false setting is the recommended setting and
832
- # will become the default.
833
- default :chef_gem_compile_time, nil
834
-
835
829
  # A whitelisted array of attributes you want sent over the wire when node
836
830
  # data is saved.
837
831
  # The default setting is nil, which collects all data. Setting to [] will not
@@ -841,6 +835,15 @@ module ChefConfig
841
835
  default :normal_attribute_whitelist, nil
842
836
  default :override_attribute_whitelist, nil
843
837
 
838
+ # A blacklisted array of attributes you do not want to send over the
839
+ # wire when node data is saved
840
+ # The default setting is nil, which collects all data. Setting to [] will
841
+ # still collect all data for save
842
+ default :automatic_attribute_blacklist, nil
843
+ default :default_attribute_blacklist, nil
844
+ default :normal_attribute_blacklist, nil
845
+ default :override_attribute_blacklist, nil
846
+
844
847
  # Pull down all the rubygems versions from rubygems and cache them the first time we do a gem_package or
845
848
  # chef_gem install. This is memory-expensive and will grow without bounds, but will reduce network
846
849
  # round trips.
@@ -1051,13 +1054,8 @@ module ChefConfig
1051
1054
  # break Chef community cookbooks and is very highly discouraged.
1052
1055
  default :ruby_encoding, Encoding::UTF_8
1053
1056
 
1054
- default :rubygems_url, "https://rubygems.org"
1055
-
1056
- # This controls the behavior of resource cloning (and CHEF-3694 warnings). For Chef < 12 the behavior
1057
- # has been that this is 'true', in Chef 13 this will change to false. Setting this to 'true' in Chef
1058
- # 13 is not a viable or supported migration strategy since Chef 13 community cookbooks will be expected
1059
- # to break with this setting set to 'true'.
1060
- default :resource_cloning, true
1057
+ # can be set to a string or array of strings for URIs to set as rubygems sources
1058
+ default :rubygems_url, "https://www.rubygems.org"
1061
1059
 
1062
1060
  # If installed via an omnibus installer, this gives the path to the
1063
1061
  # "embedded" directory which contains all of the software packaged with
File without changes
File without changes
File without changes
File without changes
@@ -182,6 +182,20 @@ module ChefConfig
182
182
  IO.write(version_file_path, new_version)
183
183
  end
184
184
 
185
+ task :bump_minor do
186
+ current_version = version
187
+ new_version = current_version.sub(/^(\d+)\.(\d+)\.(\d+)/) { "#{$1}.#{$2.to_i + 1}.0" }
188
+ puts "Updating version in #{version_rb_path} from #{current_version.chomp} to #{new_version.chomp}"
189
+ IO.write(version_file_path, new_version)
190
+ end
191
+
192
+ task :bump_major do
193
+ current_version = version
194
+ new_version = current_version.sub(/^(\d+)\.(\d+\.\d+)/) { "#{$1.to_i + 1}.0.0" }
195
+ puts "Updating version in #{version_rb_path} from #{current_version.chomp} to #{new_version.chomp}"
196
+ IO.write(version_file_path, new_version)
197
+ end
198
+
185
199
  def update_version_rb # rubocop:disable Lint/NestedMethodDefinition
186
200
  puts "Updating #{version_rb_path} to include version #{version} ..."
187
201
  contents = <<-VERSION_RB
File without changes
@@ -21,7 +21,7 @@
21
21
 
22
22
  module ChefConfig
23
23
  CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
24
- VERSION = "12.22.5"
24
+ VERSION = "13.0.113"
25
25
  end
26
26
 
27
27
  #
File without changes
File without changes
File without changes
@@ -19,12 +19,6 @@
19
19
  require "chef-config/fips"
20
20
  require "spec_helper"
21
21
 
22
- begin
23
- require "win32/registry"
24
- rescue LoadError
25
- # not on unix
26
- end
27
-
28
22
  RSpec.describe "ChefConfig.fips?" do
29
23
  let(:enabled) { "0" }
30
24
 
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.22.5
4
+ version: 13.0.113
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-17 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.6.14
173
+ rubygems_version: 2.6.11
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Chef's default configuration and config loading