knife 18.6.2 → 18.6.13

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: e9b1053a729f2359d5714a6cbdbdbb1ff4aea8f8927e838b510e249d741489e3
4
- data.tar.gz: 9776202dc87c3c7dc76a7a0e1335fcab453301a738133ea292965cb380bf1a05
3
+ metadata.gz: e494361153bfaa991e49f354d0c38aa08b7c34fe4168cd26684b04172f4fb8cf
4
+ data.tar.gz: 6dedb2d0c6c50b3d0527eb240006b0daeafedcda9e1de2f036961555ae75ea22
5
5
  SHA512:
6
- metadata.gz: 96f3ff8dff0498644dfb8c534be6fabcd2992e620299ab66d240ea6f20c0188e9bac7d20f9be80ba3aba468f669f8f5af1fa7beca8b84647e90e0cfbb97022e1
7
- data.tar.gz: 823775c2c0c2bd7f7153c06f49efffe4a0fc98ee698456d1530c6969e3ad2a7c7cec71e578314dd893ff94a909bada414477ae565dfac2336a9a72161bf3ed9a
6
+ metadata.gz: 7ebbe1f402396739175969bf45e3c7008cb331f3baaa6baadf8086586a4890f73faf9a6a09a8edb4461f9e9ed381376fbef560789deaeadb7f67e2dcb187ef57
7
+ data.tar.gz: ba70d328f4f95a93dc291946cab804e09c5507e04099c745a3f6e998a70ee5cd6b94cc141d57fa5d9821008af041a6023e7104bf0131fca15bf16dee96112790
data/Gemfile CHANGED
@@ -8,7 +8,6 @@ group(:development, :test) do
8
8
  gem "crack", "< 0.4.6" # due to https://github.com/jnunemaker/crack/pull/75
9
9
  gem "rake", ">= 12.3.3"
10
10
  gem "rspec"
11
- gem "chef-bin", path: "../chef-bin"
12
11
  end
13
12
 
14
13
  group(:omnibus_package, :pry) do
@@ -22,6 +21,3 @@ group(:chefstyle) do
22
21
  end
23
22
 
24
23
  gem "ohai", git: "https://github.com/chef/ohai.git", branch: "18-stable"
25
- gem "chef", path: ".."
26
- gem "chef-utils", path: File.expand_path("../chef-utils", __dir__) if File.exist?(File.expand_path("../chef-utils", __dir__))
27
- gem "chef-config", path: File.expand_path("../chef-config", __dir__) if File.exist?(File.expand_path("../chef-config", __dir__))
data/knife.gemspec CHANGED
@@ -15,9 +15,10 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.required_ruby_version = ">= 3.1.0"
17
17
 
18
- s.add_dependency "chef-config", ">= #{Chef::Knife::VERSION.split(".").first}"
19
- s.add_dependency "chef-utils", ">= #{Chef::Knife::VERSION.split(".").first}"
20
- s.add_dependency "chef", ">= #{Chef::Knife::VERSION.split(".").first}"
18
+ s.add_dependency "chef-config", "~> 18.6"
19
+ s.add_dependency "chef-utils", "~> 18.6"
20
+ s.add_dependency "chef", "~> 18.6"
21
+ s.add_dependency "chef-bin", "~> 18.6"
21
22
  s.add_dependency "train-core", "~> 3.10" # 3.2.28 fixes sudo prompts. See https://github.com/chef/chef/pull/9635
22
23
  s.add_dependency "train-winrm", ">= 0.2.5"
23
24
  s.add_dependency "license-acceptance", ">= 1.0.5", "< 3"
@@ -1205,12 +1205,17 @@ class Chef
1205
1205
  return if config[:license_type].present?
1206
1206
 
1207
1207
  ui.warn(<<~MSG
1208
- +-------------------------------------------------------------------------------------------------------+
1209
- Knife bootstrap now needs a license key to allow uninterrupted download of Infra Client.
1210
- It is easy to add a license by following the command <knife license>.
1211
- If you are a commercial customer, you may get a license from the customer portal else you can generate
1212
- from https://www.chef.io/license-generation-free-trial
1213
- +-------------------------------------------------------------------------------------------------------+
1208
+
1209
+ +---------------------------------------------------------------------------------------------------------------------+
1210
+ To ensure uninterrupted downloads of Infra Client, Knife Bootstrap will soon require a license key.
1211
+
1212
+ Here's what you need to know:
1213
+ * Adding a License: Use the < knife license > command to easily add a license key.
1214
+ * For Commercial Customers: Obtain your license key from the customer portal.
1215
+ * For Free/Trial Users: Non-commercial users can generate a license key from https://www.chef.io/license-generation-free-trial
1216
+
1217
+ No action is require at this time, but please prepare for this change.
1218
+ +---------------------------------------------------------------------------------------------------------------------+
1214
1219
  MSG
1215
1220
  )
1216
1221
  end
@@ -17,7 +17,7 @@
17
17
  class Chef
18
18
  class Knife
19
19
  KNIFE_ROOT = File.expand_path("../..", __dir__)
20
- VERSION = "18.6.2".freeze
20
+ VERSION = "18.6.13".freeze
21
21
  end
22
22
  end
23
23
 
@@ -30,9 +30,16 @@ class Chef
30
30
 
31
31
  class << self
32
32
  def validate!
33
- license_keys = ChefLicensing::LicenseKeyFetcher.fetch
34
-
35
- return new(nil, nil) if license_keys.blank?
33
+ license_keys = begin
34
+ ChefLicensing::LicenseKeyFetcher.fetch
35
+ # If the env is airgapped or the local licensing service is unreachable,
36
+ # the licensing gem will raise ChefLicensing::RestfulClientConnectionError.
37
+ # In such cases, we are assuming the license is not available.
38
+ rescue ChefLicensing::RestfulClientConnectionError
39
+ []
40
+ end
41
+
42
+ return new(nil, nil) if license_keys&.empty?
36
43
 
37
44
  licenses_metadata = ChefLicensing::Api::Describe.list({
38
45
  license_keys: license_keys,
metadata CHANGED
@@ -1,57 +1,70 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.6.2
4
+ version: 18.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-13 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: chef-config
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '18'
18
+ version: '18.6'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - ">="
23
+ - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '18'
25
+ version: '18.6'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: chef-utils
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '18'
32
+ version: '18.6'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - ">="
37
+ - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '18'
39
+ version: '18.6'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: chef
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ">="
44
+ - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '18'
46
+ version: '18.6'
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - ">="
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '18.6'
54
+ - !ruby/object:Gem::Dependency
55
+ name: chef-bin
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '18.6'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
53
66
  - !ruby/object:Gem::Version
54
- version: '18'
67
+ version: '18.6'
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: train-core
57
70
  requirement: !ruby/object:Gem::Requirement
@@ -1148,7 +1161,6 @@ metadata:
1148
1161
  homepage_uri: https://www.chef.io
1149
1162
  mailing_list_uri: https://discourse.chef.io/
1150
1163
  source_code_uri: https://github.com/chef/chef/
1151
- post_install_message:
1152
1164
  rdoc_options: []
1153
1165
  require_paths:
1154
1166
  - lib
@@ -1163,8 +1175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1163
1175
  - !ruby/object:Gem::Version
1164
1176
  version: '0'
1165
1177
  requirements: []
1166
- rubygems_version: 3.3.27
1167
- signing_key:
1178
+ rubygems_version: 3.6.3
1168
1179
  specification_version: 4
1169
1180
  summary: The knife CLI for Chef Infra.
1170
1181
  test_files: []