knife-zero 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceb90219e7049a7d2dd1d168fb5ff0f3860d897345069f066d89446969e505e8
4
- data.tar.gz: afa5bfd790797872bb3c7d0a8d489404323e33ddabfb02ec9fd6acd4f8dd156d
3
+ metadata.gz: 21b9f4e46fa35f2a396bd05638e1a2577e9e52a6802654de1e777794b90be418
4
+ data.tar.gz: 4413d9cff6fe0276790b9aad1942493d018dc513206d2c03de83e73bb03696d6
5
5
  SHA512:
6
- metadata.gz: e7572d96c52138a67d0615c6bb9f21021a14b173a5a66d76464ae89b5c4cd116e5695fd50e837c0909534633f49aacb7617b14250839fd7e7db69d674867439e
7
- data.tar.gz: 007a81e48624135cdb6c35e96ae6a661a10fa3554e0664e8c0bb517e729d8653c32368dcf9be91b3750d7953321d5bd5f31046fc882f5009dba321400907a0a1
6
+ metadata.gz: 35aac693fabbbae93af287068c74abd0d555a9262a190b35e2e01652102099f7121ba03a785b17f2b10707fea3712da64e23111acde42c6519dd144addca962e
7
+ data.tar.gz: ac9c669a2b71d28e0b3fd2e07451fff65329bb4515942b11e7fc0b1d2373726adb3aee8d45ed9195c3448b94f1e7cdb07900e0c7e4acede2ee4575eed06905b2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@
4
4
 
5
5
  none.
6
6
 
7
+ ## v2.5.0
8
+
9
+ - CINC client bootstrap fix [#168](https://github.com/higanworks/knife-zero/pull/168) HT [@Spirtulus](https://github.com/Spirtulus)
10
+ - drop support chef-client < 16.6
11
+
12
+ ## v2.4.2
13
+
14
+ - 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)
15
+
16
+ ## v2.4.1
17
+
18
+ - bugfix: alter_project does not work correctly at bootstraping. [#159](https://github.com/higanworks/knife-zero/issues/159) HT [@pyama86](https://github.com/pyama86)
19
+
7
20
  ## v2.4.0
8
21
 
9
22
  - follow core changes.
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', '>= 15.0'
31
+ spec.add_runtime_dependency 'chef', '>= 16.6'
32
32
  spec.add_runtime_dependency 'knife', '>= 17.0'
33
33
  end
@@ -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/chef/client.rb'
44
+ default: '/etc/' + ChefUtils::Dist::Infra::DIR_SUFFIX + '/client.rb'
45
45
  end
46
46
  end
47
47
 
@@ -1,5 +1,5 @@
1
1
  require 'chef/knife/ssh'
2
- require 'chef/version'
2
+ require 'chef/knife/version'
3
3
 
4
4
  class Chef
5
5
  class Knife
@@ -10,7 +10,7 @@ class Chef
10
10
  require 'knife-zero/helper'
11
11
  end
12
12
 
13
- if Gem::Version.new(Chef::VERSION) < Gem::Version.new("17.3.27")
13
+ if Gem::Version.new(Chef::Knife::VERSION) < Gem::Version.new("17.3.27")
14
14
  def ssh_command(command, subsession = nil) # rubocop:disable Metrics/PerceivedComplexity, Metrics/AbcSize, Metrics/CyclomaticComplexity
15
15
  if config[:client_version]
16
16
  case config[:alter_project]
@@ -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] || 'chef-client'
56
- s = String.new("#{client_path} -j /etc/chef/first-boot.json")
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?
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = '2.4.1'.freeze
3
+ VERSION = '2.5.0'.freeze
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
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.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2023-02-19 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: '15.0'
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: '15.0'
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.2.22
209
+ rubygems_version: 3.2.32
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