knife-zero 2.5.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- 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 +1 -0
- data/lib/knife-zero/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432ac5bd7af8f8aef7d74a88aadb2ed3ec6686765f537857d42b93714bbe55d0
|
4
|
+
data.tar.gz: 3e10697cd00a95823dd3bc7a4f4f74270e8296ec2ca72148ea343d32c1672586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f3f6874ca9587e016b5afd16c6a76e214a99ca8b0e5b05e9c3a7d87ce1b2a2508e44087fdd6424c0f94ad3da425331d313e2e8decbb5663d4acbfe7aa0cf71
|
7
|
+
data.tar.gz: 4aa6b08829720cdcfd39d33c10177e17301d2c3d2abe3df7c8076141605abff024fe9469580384a2413f0effc55ec637b116d5359fabbba2737497bdc75c2d9e
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@
|
|
4
4
|
|
5
5
|
none.
|
6
6
|
|
7
|
+
## v2.5.2
|
8
|
+
|
9
|
+
- Bootstrap: Allow overriding node name for the new node #170 HT [@Spirtulus](https://github.com/Spirtulus)
|
10
|
+
|
11
|
+
## v2.5.1
|
12
|
+
|
13
|
+
- Put some more Chefutils constants [#169](https://github.com/higanworks/knife-zero/pull/169) HT [@Spirtulus](https://github.com/Spirtulus)
|
14
|
+
|
7
15
|
## v2.5.0
|
8
16
|
|
9
17
|
- CINC client bootstrap fix [#168](https://github.com/higanworks/knife-zero/pull/168) HT [@Spirtulus](https://github.com/Spirtulus)
|
@@ -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
|
@@ -60,6 +60,7 @@ class Chef
|
|
60
60
|
s << " -S http://127.0.0.1:#{::Knife::Zero::Helper.zero_remote_port}"
|
61
61
|
s << " -K #{[::File.dirname(@config[:node_config_file]), 'validation.pem'].join('/')}"
|
62
62
|
s << ' -W' if @config[:why_run]
|
63
|
+
s << " -N #{@config[:chef_node_name]}" if @config[:chef_node_name]
|
63
64
|
Chef::Log.info 'Remote command: ' + s
|
64
65
|
s
|
65
66
|
else
|
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.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sawanoboly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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
|