knife-zero 2.5.2 → 2.6.0
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/CHANGELOG.md +4 -1
- data/lib/knife-zero/core/bootstrap_context.rb +9 -7
- data/lib/knife-zero/version.rb +1 -1
- 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: 225edc1d8bc9d2381ddd789b6878fd55dc5f8716d58ea0762c205cec8d75d804
|
4
|
+
data.tar.gz: af3b922921837b55f832f5e26918f4cd3e7d18894f6dda2f3e5c4f5842bf8efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a28ad7f0b533c06b6f296876d07d1254d23dd300c4b272361061556b2c90546f8eedf3521b34b239c355b9a8396edbfab06c094910f7edcd5ad2216f37bb097a
|
7
|
+
data.tar.gz: d4afa54db5f31218df7fd20b40de3f855469935af835fc20f832333e150935fbe2a61283b594c23a79fdf0572eb5174f9a17b2322c0f9461c452862c9d7279da
|
data/CHANGELOG.md
CHANGED
@@ -18,19 +18,21 @@ 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
|
-
|
21
|
+
attribute_lists = []
|
22
22
|
%w{
|
23
23
|
automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist
|
24
24
|
allowed_automatic_attributes allowed_default_attributes allowed_normal_attributes allowed_override_attributes
|
25
|
-
|
26
|
-
|
25
|
+
automatic_attribute_blacklist default_attribute_blacklist normal_attribute_blacklist override_attribute_blacklist
|
26
|
+
blocked_automatic_attributes blocked_default_attributes blocked_normal_attributes blocked_override_attributes
|
27
|
+
}.each do |attribute_list|
|
28
|
+
next unless Chef::Config[:knife][attribute_list.to_sym]&.is_a?(Array)
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
-
Chef::Config[:knife][
|
30
|
+
attribute_lists.push([
|
31
|
+
attribute_list,
|
32
|
+
Chef::Config[:knife][attribute_list.to_sym].to_s
|
31
33
|
].join(' '))
|
32
34
|
end
|
33
|
-
client_rb <<
|
35
|
+
client_rb << attribute_lists.join("\n")
|
34
36
|
|
35
37
|
## For support policy_document_native_api
|
36
38
|
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.6.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: 2025-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -191,7 +191,7 @@ homepage: http://knife-zero.github.io
|
|
191
191
|
licenses:
|
192
192
|
- Apache-2.0
|
193
193
|
metadata: {}
|
194
|
-
post_install_message:
|
194
|
+
post_install_message:
|
195
195
|
rdoc_options: []
|
196
196
|
require_paths:
|
197
197
|
- lib
|
@@ -206,8 +206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
210
|
-
signing_key:
|
209
|
+
rubygems_version: 3.1.6
|
210
|
+
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: Run chef-client at remote node with chef-zero(local-mode) via HTTP over SSH
|
213
213
|
port fowarding.
|