chef-config 15.10.12 → 15.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-config/config.rb +0 -27
- data/lib/chef-config/path_helper.rb +1 -1
- data/lib/chef-config/version.rb +1 -1
- data/spec/unit/config_spec.rb +23 -23
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f53ec80622768fb0e22e8ec5cecfaa0f3de70d34d03dd3abc660aa9288f3c3
|
4
|
+
data.tar.gz: 30cc338ec672b76d21881856718efedf61e54efd7fd1941c6844fced9feb7f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1beef453edcdde7d8f3c58543380697c0dc71735677a91d0ee180a455a302721d7e89d41e8078f5dd0dcc849a41b8f0df7e313298f5f303c2b08b6fcaf93f5
|
7
|
+
data.tar.gz: 5f74739a9e17d875f6eede63b5819c68f8f98b485dbeebe1bf30fb981556b55da880591a19a545f05e60e77c222548e708ebc6812181922ee6fef74e776ebd74
|
data/lib/chef-config/config.rb
CHANGED
@@ -851,33 +851,6 @@ module ChefConfig
|
|
851
851
|
|
852
852
|
# knife configuration data
|
853
853
|
config_context :knife do
|
854
|
-
# XXX: none of these default values are applied to knife (and would create a backcompat
|
855
|
-
# break in knife if this bug was fixed since many of the defaults below are wrong). this appears
|
856
|
-
# to be the start of an attempt to be able to use config_strict_mode true? if so, this approach
|
857
|
-
# is fraught with peril because this namespace is used by every knife plugin in the wild and
|
858
|
-
# we would need to validate every cli option in every knife attribute out there and list them all here.
|
859
|
-
#
|
860
|
-
# based on the way that people may define `knife[:foobar] = "something"` for the knife-foobar
|
861
|
-
# gem plugin i'm pretty certain we can never turn on anything like config_string_mode since
|
862
|
-
# any config value may be a typo or it may be in some gem in some knife plugin we don't know about.
|
863
|
-
#
|
864
|
-
# we do still need to maintain at least one of these so that the knife config hash gets
|
865
|
-
# created.
|
866
|
-
#
|
867
|
-
# this whole situation is deeply unsatisfying.
|
868
|
-
default :ssh_port, nil
|
869
|
-
default :ssh_user, nil
|
870
|
-
default :ssh_attribute, nil
|
871
|
-
default :ssh_gateway, nil
|
872
|
-
default :ssh_gateway_identity, nil
|
873
|
-
default :bootstrap_version, nil
|
874
|
-
default :bootstrap_proxy, nil
|
875
|
-
default :bootstrap_template, nil
|
876
|
-
default :secret, nil
|
877
|
-
default :secret_file, nil
|
878
|
-
default :host_key_verify, nil
|
879
|
-
default :forward_agent, nil
|
880
|
-
default :sort_status_reverse, nil
|
881
854
|
default :hints, {}
|
882
855
|
end
|
883
856
|
|
@@ -268,7 +268,7 @@ module ChefConfig
|
|
268
268
|
# Determine if the given path is protected by OS X System Integrity Protection.
|
269
269
|
def self.is_sip_path?(path, node)
|
270
270
|
if node["platform"] == "mac_os_x" && Gem::Version.new(node["platform_version"]) >= Gem::Version.new("10.11")
|
271
|
-
|
271
|
+
# @todo: parse rootless.conf for this?
|
272
272
|
sip_paths = [
|
273
273
|
"/System", "/bin", "/sbin", "/usr"
|
274
274
|
]
|
data/lib/chef-config/version.rb
CHANGED
data/spec/unit/config_spec.rb
CHANGED
@@ -186,29 +186,29 @@ RSpec.describe ChefConfig::Config do
|
|
186
186
|
end
|
187
187
|
|
188
188
|
describe "when configuring formatters" do
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
189
|
+
# if TTY and not(force-logger)
|
190
|
+
# formatter = configured formatter or default formatter
|
191
|
+
# formatter goes to STDOUT/ERR
|
192
|
+
# if log file is writeable
|
193
|
+
# log level is configured level or info
|
194
|
+
# log location is file
|
195
|
+
# else
|
196
|
+
# log level is warn
|
197
|
+
# log location is STDERR
|
198
|
+
# end
|
199
|
+
# elsif not(TTY) and force formatter
|
200
|
+
# formatter = configured formatter or default formatter
|
201
|
+
# if log_location specified
|
202
|
+
# formatter goes to log_location
|
203
|
+
# else
|
204
|
+
# formatter goes to STDOUT/ERR
|
205
|
+
# end
|
206
|
+
# else
|
207
|
+
# formatter = "null"
|
208
|
+
# log_location = configured-value or defualt
|
209
|
+
# log_level = info or defualt
|
210
|
+
# end
|
211
|
+
#
|
212
212
|
it "has an empty list of formatters by default" do
|
213
213
|
expect(ChefConfig::Config.formatters).to eq([])
|
214
214
|
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: 15.
|
4
|
+
version: 15.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-22 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: 15.
|
19
|
+
version: 15.11.3
|
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: 15.
|
26
|
+
version: 15.11.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-shellout
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|