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 +4 -4
- data/Gemfile +0 -4
- data/knife.gemspec +4 -3
- data/lib/chef/knife/bootstrap.rb +11 -6
- data/lib/chef/knife/version.rb +1 -1
- data/lib/chef/utils/licensing_handler.rb +10 -3
- metadata +29 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e494361153bfaa991e49f354d0c38aa08b7c34fe4168cd26684b04172f4fb8cf
|
4
|
+
data.tar.gz: 6dedb2d0c6c50b3d0527eb240006b0daeafedcda9e1de2f036961555ae75ea22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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", "
|
19
|
-
s.add_dependency "chef-utils", "
|
20
|
-
s.add_dependency "chef", "
|
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"
|
data/lib/chef/knife/bootstrap.rb
CHANGED
@@ -1205,12 +1205,17 @@ class Chef
|
|
1205
1205
|
return if config[:license_type].present?
|
1206
1206
|
|
1207
1207
|
ui.warn(<<~MSG
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
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
|
data/lib/chef/knife/version.rb
CHANGED
@@ -30,9 +30,16 @@ class Chef
|
|
30
30
|
|
31
31
|
class << self
|
32
32
|
def validate!
|
33
|
-
license_keys =
|
34
|
-
|
35
|
-
|
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.
|
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:
|
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
|
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: []
|