chef-config 17.0.242 → 17.4.25

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
  SHA256:
3
- metadata.gz: 7aff4837df3d3e2010693b34e0996cea0f7415425de2e203cbfdd30f5b35be23
4
- data.tar.gz: 15eb9951c98626579d11c2967b1f7b3114846be1618fe3fc18c3871a41d775e0
3
+ metadata.gz: 86c6d22143a9703a7f6a6eb4988258ab7efb6f8b46195f5953c42fae12d265bf
4
+ data.tar.gz: e2f234543a8062bc47112684a99ae6dead1ef7330fee9f72b53e287d962c4b35
5
5
  SHA512:
6
- metadata.gz: 9e0fd81024ba55b6af3f3c3eb6914ca5229c5b5b5bcf8c81a76f88530e1d52ca7ebf8bd1ca23d59393c71d8438c2c168b96aab0f3773e84dc4ece8db76b43ded
7
- data.tar.gz: ad4b0eb8936b10f7e0814238946b454448e1a13e3cb88627c8d41628495cf308dab10d6523c1ec6873cba878693596a191bfb9b236c3c6f8cf262b2826f6890b
6
+ metadata.gz: 6a749f8bc69d938db9eb3599f682b4694fe60289bf72eda97fe0eab1747e515bf1fd3d8a4a6fb1260c6daa08483e4205e0bf17f7a4d98dd3717667d072b52d46
7
+ data.tar.gz: 16fc81b2fbdd338a6adf208e91dbfec98650ae43fa8a2d43f1e79259fc5d9c4964344e1b3b48cf73b5c8a60aaf7be679dceb55724d2c6db09909014e522ff602
@@ -71,8 +71,8 @@ module ChefConfig
71
71
  # Some installations will be on different drives so use the drive that
72
72
  # the expanded path to __FILE__ is found.
73
73
  drive = windows_installation_drive
74
- if drive && path[0] == '\\' && path.split('\\')[2] == "chef"
75
- path = PathHelper.join(drive, path.split('\\', 3)[2])
74
+ if drive && path[0] == "\\" && path.split("\\")[2] == "chef"
75
+ path = PathHelper.join(drive, path.split("\\", 3)[2])
76
76
  end
77
77
  end
78
78
  path
@@ -392,9 +392,21 @@ module ChefConfig
392
392
  # Where chef's cache files should be stored
393
393
  default(:file_cache_path) { PathHelper.join(cache_path, "cache") }.writes_value { |path| expand_relative_paths(path) }
394
394
 
395
+ # Where chef's cache files should be stored, used for bootstrap on unix filesystems
396
+ default(:unix_bootstrap_file_cache_path) { PathHelper.join("/var", ChefUtils::Dist::Infra::DIR_SUFFIX, "cache", windows: false) }
397
+
398
+ # Where chef's cache files should be stored, used for bootstrap on windows filesystems
399
+ default(:windows_bootstrap_file_cache_path) { PathHelper.join("C:", ChefUtils::Dist::Infra::DIR_SUFFIX, "cache", windows: true) }
400
+
395
401
  # Where backups of chef-managed files should go
396
402
  default(:file_backup_path) { PathHelper.join(cache_path, "backup") }
397
403
 
404
+ # Where chef's backup files should be stored, used for bootstrap on unix filesystems
405
+ default(:unix_bootstrap_file_backup_path) { PathHelper.join("/var", ChefUtils::Dist::Infra::DIR_SUFFIX, "backup", windows: false) }
406
+
407
+ # Where chef's backup files should be stored, used for bootstrap on windows filesystems
408
+ default(:windows_bootstrap_file_backup_path) { PathHelper.join("C:", ChefUtils::Dist::Infra::DIR_SUFFIX, "backup", windows: true) }
409
+
398
410
  # The chef-client (or solo) lockfile.
399
411
  #
400
412
  # If your `file_cache_path` resides on a NFS (or non-flock()-supporting
@@ -632,6 +644,16 @@ module ChefConfig
632
644
  # effect if `policy_document_native_api` is set to `false`.
633
645
  default :deployment_group, nil
634
646
 
647
+ # When using policyfiles you can optionally set it to read the node.run_list
648
+ # from the server and have that override the policyfile run_list or the
649
+ # named_run_list set in config. With policyfiles there is no depsolving done
650
+ # on the run_list items so every item in the run_list must be in the set of
651
+ # cookbooks pushed to the node. This enables flows where the node can change
652
+ # its run_list and have it persist or to bootstrap nodes with the -j flag. If
653
+ # no run_list is set on the server node object then the configured named_run_list
654
+ # or run_list out of the policy is used.
655
+ default :policy_persist_run_list, false
656
+
635
657
  # Set these to enable SSL authentication / mutual-authentication
636
658
  # with the server
637
659
 
@@ -1007,7 +1029,7 @@ module ChefConfig
1007
1029
  default :blocked_normal_attributes, nil
1008
1030
  default :blocked_override_attributes, nil
1009
1031
 
1010
- # deprecated config options that will be removed in Chef Infra Client 17
1032
+ # deprecated config options that will be removed in Chef Infra Client 18
1011
1033
  default :automatic_attribute_blacklist, nil
1012
1034
  default :default_attribute_blacklist, nil
1013
1035
  default :normal_attribute_blacklist, nil
@@ -45,7 +45,7 @@ module ChefConfig
45
45
  end
46
46
  end
47
47
 
48
- BACKSLASH = '\\'.freeze
48
+ BACKSLASH = "\\".freeze
49
49
 
50
50
  def self.path_separator(windows: ChefUtils.windows?)
51
51
  if windows
@@ -15,5 +15,5 @@
15
15
 
16
16
  module ChefConfig
17
17
  CHEFCONFIG_ROOT = File.expand_path("..", __dir__)
18
- VERSION = "17.0.242".freeze
18
+ VERSION = "17.4.25".freeze
19
19
  end
@@ -56,7 +56,7 @@ RSpec.describe ChefConfig::PathHelper do
56
56
  context "forcing windows/non-windows" do
57
57
  context "forcing windows" do
58
58
  it "path_separator is \\" do
59
- expect(path_helper.path_separator(windows: true)).to eq('\\')
59
+ expect(path_helper.path_separator(windows: true)).to eq("\\")
60
60
  end
61
61
 
62
62
  context "platform-specific #join behavior" do
@@ -133,7 +133,7 @@ RSpec.describe ChefConfig::PathHelper do
133
133
  end
134
134
 
135
135
  it "path_separator is \\" do
136
- expect(path_helper.path_separator).to eq('\\')
136
+ expect(path_helper.path_separator).to eq("\\")
137
137
  end
138
138
 
139
139
  context "platform-specific #join behavior" do
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: 17.0.242
4
+ version: 17.4.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-27 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-utils
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 17.0.242
19
+ version: 17.4.25
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 17.0.242
26
+ version: 17.4.25
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-shellout
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.2.15
161
+ rubygems_version: 3.2.22
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Chef Infra's default configuration and config loading library