knife-zero 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/knife-zero/core/bootstrap_context.rb +10 -7
- data/lib/knife-zero/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac67b410005680ab38ee1746311ffb1ba52909983081436b720fd957f6e75564
|
4
|
+
data.tar.gz: cdb89df6d2e69fed589df841cebd9701afda1d4875ee18d83d462a7eaa46f486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fa31dcf279e4db60b673cb4970eb7f14c67b92af10ed46a7bd99f71c2a37c0d87c4f905f459abdee5cda49fa5671128d98f5aec2299679a258cf1eb2d014d8
|
7
|
+
data.tar.gz: 37f2d61abb130e6fe1273fbc1150b5021bd0895c9bff33f4ed5d82d5f832b08263213e1225a6a52600b2bd488b66c0ac39fa9d70a1d600c1973e221edee756c5
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@
|
|
4
4
|
|
5
5
|
none.
|
6
6
|
|
7
|
+
## v2.3.0
|
8
|
+
|
9
|
+
- use `allowd_` instead.
|
10
|
+
- ref: [Renamed Client Configuration Options - Chef Infra Client 16.3 released!](https://discourse.chef.io/t/chef-infra-client-16-3-released/17449)
|
11
|
+
|
7
12
|
## v2.2.1
|
8
13
|
|
9
14
|
- path --validation_key option to resolve crash bootstraping in cinc 15.6 [#138](https://github.com/higanworks/knife-zero/pull/138)
|
@@ -18,16 +18,19 @@ class Chef
|
|
18
18
|
alias_method :orig_config_content, :config_content
|
19
19
|
def config_content # rubocop:disable Metrics/AbcSize
|
20
20
|
client_rb = orig_config_content
|
21
|
-
|
22
|
-
%w{
|
23
|
-
|
21
|
+
allowed_lists = []
|
22
|
+
%w{
|
23
|
+
automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist
|
24
|
+
allowed_automatic_attributes allowed_default_attributes allowed_normal_attributes allowed_override_attributes
|
25
|
+
}.each do |allowed_list|
|
26
|
+
next unless Chef::Config[:knife][allowed_list.to_sym]&.is_a?(Array)
|
24
27
|
|
25
|
-
|
26
|
-
|
27
|
-
Chef::Config[:knife][
|
28
|
+
allowed_lists.push([
|
29
|
+
allowed_list,
|
30
|
+
Chef::Config[:knife][allowed_list.to_sym].to_s
|
28
31
|
].join(' '))
|
29
32
|
end
|
30
|
-
client_rb <<
|
33
|
+
client_rb << allowed_lists.join("\n")
|
31
34
|
|
32
35
|
## For support policy_document_native_api
|
33
36
|
if @config[:policy_name]
|
data/lib/knife-zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sawanoboly
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,7 +177,7 @@ homepage: http://knife-zero.github.io
|
|
177
177
|
licenses:
|
178
178
|
- Apache-2.0
|
179
179
|
metadata: {}
|
180
|
-
post_install_message:
|
180
|
+
post_install_message:
|
181
181
|
rdoc_options: []
|
182
182
|
require_paths:
|
183
183
|
- lib
|
@@ -192,9 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
|
196
|
-
|
197
|
-
signing_key:
|
195
|
+
rubygems_version: 3.1.2
|
196
|
+
signing_key:
|
198
197
|
specification_version: 4
|
199
198
|
summary: Run chef-client at remote node with chef-zero(local-mode) via HTTP over SSH
|
200
199
|
port fowarding.
|