chef-config 16.13.16 → 17.3.48
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 +4 -4
- data/chef-config.gemspec +1 -1
- data/lib/chef-config/config.rb +25 -3
- data/lib/chef-config/path_helper.rb +1 -1
- data/lib/chef-config/version.rb +1 -1
- data/spec/unit/config_spec.rb +1 -1
- data/spec/unit/path_helper_spec.rb +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e47e648d7d280bc027401da398c984a43f59929e4a393ade978ef138ac9c529
|
4
|
+
data.tar.gz: ab381bafa2fcc85377079c172560e6e0f4811cd374297c4e3be4c20d738f0bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5af6b316c79e043f7453d3f5a2ac552aae41618054ff493922cbdd659c03c6e0db154408a6e6b04dbcdd2ae66378ff04032a9ad1fe5e1a4b4f47f7d1619ed5
|
7
|
+
data.tar.gz: 338b8ef34db5845519bd2e131300ea50870b141db03c64e9ff87560eba995c0e88db3d4af6956fdfa8daa8ee449d3b402b3519eea52c0ee76483fb9887a0ba32
|
data/chef-config.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/chef/chef"
|
13
13
|
spec.license = "Apache-2.0"
|
14
14
|
|
15
|
-
spec.required_ruby_version = ">= 2.6
|
15
|
+
spec.required_ruby_version = ">= 2.6"
|
16
16
|
|
17
17
|
spec.metadata = {
|
18
18
|
"bug_tracker_uri" => "https://github.com/chef/chef/issues",
|
data/lib/chef-config/config.rb
CHANGED
@@ -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] ==
|
75
|
-
path = PathHelper.join(drive, path.split(
|
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
|
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
|
data/lib/chef-config/version.rb
CHANGED
data/spec/unit/config_spec.rb
CHANGED
@@ -225,7 +225,7 @@ RSpec.describe ChefConfig::Config do
|
|
225
225
|
end
|
226
226
|
|
227
227
|
describe "#var_chef_path" do
|
228
|
-
let
|
228
|
+
let(:dirname) { ChefUtils::Dist::Infra::DIR_SUFFIX }
|
229
229
|
|
230
230
|
context "on unix", :unix_only do
|
231
231
|
it "var_chef_dir is /var/chef" do
|
@@ -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
|
@@ -355,14 +355,14 @@ RSpec.describe ChefConfig::PathHelper do
|
|
355
355
|
end
|
356
356
|
|
357
357
|
context "on windows" do
|
358
|
-
let
|
358
|
+
let(:is_windows) { true }
|
359
359
|
end
|
360
360
|
|
361
361
|
context "on unix" do
|
362
|
-
let
|
362
|
+
let(:is_windows) { false }
|
363
363
|
|
364
364
|
context "when HOME is not set" do
|
365
|
-
let
|
365
|
+
let(:env) { {} }
|
366
366
|
it "returns an empty array" do
|
367
367
|
expect(path_helper.all_homes).to eq([])
|
368
368
|
end
|
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:
|
4
|
+
version: 17.3.48
|
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-
|
11
|
+
date: 2021-07-21 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:
|
19
|
+
version: 17.3.48
|
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:
|
26
|
+
version: 17.3.48
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-shellout
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,14 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
requirements:
|
152
152
|
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 2.6
|
154
|
+
version: '2.6'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
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
|