knife-zero 2.4.2 → 2.5.1
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 +10 -0
- data/knife-zero.gemspec +1 -1
- data/lib/chef/knife/zero_base.rb +1 -1
- data/lib/chef/knife/zero_converge.rb +2 -2
- data/lib/knife-zero/bootstrap_ssh.rb +1 -1
- data/lib/knife-zero/core/bootstrap_context.rb +2 -2
- data/lib/knife-zero/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fb07f8728ae47371ac3795b1e182eaab2b3a5ca1e53df80ebea651001bc93ea
|
|
4
|
+
data.tar.gz: 11bae6be9723526492427bdf3b7afe06bc830c1d1965f8c5e6ee5fea686447be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9233512a5e8ec475c118ae1fa597a88c7ab7dbba8d4a81d86fd935a45e3825484efa7cbb11c022881e9e50c338827b61f46fd0987084251055256a9a416b4309
|
|
7
|
+
data.tar.gz: bbedbc39c32c56eab47eb518e3e61f2c97ef66b37656be0009423eee4bc04ea0c814ba02638fe14cf90f71ea08d4b15d3d7533b096131199b444583c76fceaba
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
none.
|
|
6
|
+
|
|
7
|
+
## v2.5.1
|
|
8
|
+
|
|
9
|
+
- Put some more Chefutils constants [#169](https://github.com/higanworks/knife-zero/pull/169) HT [@Spirtulus](https://github.com/Spirtulus)
|
|
10
|
+
|
|
11
|
+
## v2.5.0
|
|
12
|
+
|
|
13
|
+
- CINC client bootstrap fix [#168](https://github.com/higanworks/knife-zero/pull/168) HT [@Spirtulus](https://github.com/Spirtulus)
|
|
14
|
+
- drop support chef-client < 16.6
|
|
15
|
+
|
|
6
16
|
## v2.4.2
|
|
7
17
|
|
|
8
18
|
- compatibility: Check knife version instead of chef version before overriding knife method [#162](https://github.com/higanworks/knife-zero/pull/162) HT [@cgunther](https://github.com/cgunther)
|
data/knife-zero.gemspec
CHANGED
|
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency 'test-unit-notify'
|
|
29
29
|
spec.add_development_dependency 'test-unit-rr'
|
|
30
30
|
|
|
31
|
-
spec.add_runtime_dependency 'chef', '>=
|
|
31
|
+
spec.add_runtime_dependency 'chef', '>= 16.6'
|
|
32
32
|
spec.add_runtime_dependency 'knife', '>= 17.0'
|
|
33
33
|
end
|
data/lib/chef/knife/zero_base.rb
CHANGED
|
@@ -41,7 +41,7 @@ class Chef
|
|
|
41
41
|
long: '--node-config PATH_TO_CONFIG',
|
|
42
42
|
proc: proc { |u| Chef::Config[:node_config_file] = u },
|
|
43
43
|
description: 'The configuration file to use on remote node',
|
|
44
|
-
default: '/etc/
|
|
44
|
+
default: '/etc/' + ChefUtils::Dist::Infra::DIR_SUFFIX + '/client.rb'
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -111,12 +111,12 @@ class Chef
|
|
|
111
111
|
|
|
112
112
|
def start_chef_client # rubocop:disable Metrics/PerceivedComplexity, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
|
113
113
|
client_path = @config[:use_sudo] || Chef::Config[:knife][:use_sudo] ? 'sudo ' : ''
|
|
114
|
-
client_path = @config[:chef_client_path] ? "#{client_path}#{@config[:chef_client_path]}" : "#{client_path}
|
|
114
|
+
client_path = @config[:chef_client_path] ? "#{client_path}#{@config[:chef_client_path]}" : "#{client_path}#{ChefUtils::Dist::Infra::CLIENT}"
|
|
115
115
|
s = String.new(client_path)
|
|
116
116
|
s << ' -l debug' if @config[:verbosity] && @config[:verbosity] >= 2
|
|
117
117
|
s << " -S http://127.0.0.1:#{::Knife::Zero::Helper.zero_remote_port}"
|
|
118
118
|
s << " -o #{@config[:override_runlist]}" if @config[:override_runlist]
|
|
119
|
-
s << ' -j /etc/
|
|
119
|
+
s << ' -j /etc/' + ChefUtils::Dist::Infra::DIR_SUFFIX + '/chef_client_json.json' if @config[:json_attribs]
|
|
120
120
|
s << " --splay #{@config[:splay]}" if @config[:splay]
|
|
121
121
|
s << " -n #{@config[:named_run_list]}" if @config[:named_run_list]
|
|
122
122
|
s << " --config #{@config[:node_config_file]}"
|
|
@@ -78,7 +78,7 @@ class Chef
|
|
|
78
78
|
|
|
79
79
|
def build_client_json
|
|
80
80
|
<<-SCRIPT
|
|
81
|
-
sudo sh -c 'cat <<"EOP" > /etc/
|
|
81
|
+
sudo sh -c 'cat <<"EOP" > /etc/#{ChefUtils::Dist::Infra::DIR_SUFFIX}/chef_client_json.json
|
|
82
82
|
#{config[:chef_client_json].to_json}
|
|
83
83
|
'
|
|
84
84
|
SCRIPT
|
|
@@ -52,8 +52,8 @@ class Chef
|
|
|
52
52
|
def start_chef # rubocop:disable Metrics/PerceivedComplexity, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
|
53
53
|
if @chef_config[:knife_zero]
|
|
54
54
|
if @config[:bootstrap_converge]
|
|
55
|
-
client_path = @chef_config[:chef_client_path] ||
|
|
56
|
-
s = String.new("#{client_path} -j /etc/
|
|
55
|
+
client_path = @chef_config[:chef_client_path] || ChefUtils::Dist::Infra::CLIENT
|
|
56
|
+
s = String.new("#{client_path} -j /etc/" + ChefUtils::Dist::Infra::DIR_SUFFIX + "/first-boot.json")
|
|
57
57
|
s << ' -l debug' if @config[:verbosity] && @config[:verbosity] >= 2
|
|
58
58
|
s << " --config #{@config[:node_config_file]}"
|
|
59
59
|
s << " -E #{bootstrap_environment}" unless bootstrap_environment.nil?
|
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.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sawanoboly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -142,14 +142,14 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - ">="
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '
|
|
145
|
+
version: '16.6'
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '
|
|
152
|
+
version: '16.6'
|
|
153
153
|
- !ruby/object:Gem::Dependency
|
|
154
154
|
name: knife
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
207
|
version: '0'
|
|
208
208
|
requirements: []
|
|
209
|
-
rubygems_version: 3.
|
|
209
|
+
rubygems_version: 3.3.26
|
|
210
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
|