ohai 16.4.11 → 16.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -6
  3. data/bin/ohai +1 -1
  4. data/lib/ohai.rb +1 -1
  5. data/lib/ohai/application.rb +39 -0
  6. data/lib/ohai/common/dmi.rb +7 -3
  7. data/lib/ohai/config.rb +2 -3
  8. data/lib/ohai/dsl.rb +1 -1
  9. data/lib/ohai/dsl/plugin.rb +12 -5
  10. data/lib/ohai/dsl/plugin/versionvii.rb +28 -16
  11. data/lib/ohai/exception.rb +1 -1
  12. data/lib/ohai/hints.rb +1 -1
  13. data/lib/ohai/loader.rb +1 -1
  14. data/lib/ohai/log.rb +1 -1
  15. data/lib/ohai/mixin/azure_metadata.rb +1 -1
  16. data/lib/ohai/mixin/chef_utils_wiring.rb +51 -0
  17. data/lib/ohai/mixin/command.rb +3 -54
  18. data/lib/ohai/mixin/constant_helper.rb +1 -1
  19. data/lib/ohai/mixin/dmi_decode.rb +1 -1
  20. data/lib/ohai/mixin/do_metadata.rb +1 -1
  21. data/lib/ohai/mixin/ec2_metadata.rb +3 -3
  22. data/lib/ohai/mixin/http_helper.rb +1 -1
  23. data/lib/ohai/mixin/network_helper.rb +1 -1
  24. data/lib/ohai/mixin/os.rb +67 -2
  25. data/lib/ohai/mixin/scaleway_metadata.rb +1 -1
  26. data/lib/ohai/mixin/seconds_to_human.rb +1 -1
  27. data/lib/ohai/mixin/shell_out.rb +50 -0
  28. data/lib/ohai/mixin/string.rb +1 -1
  29. data/lib/ohai/mixin/train_helpers.rb +35 -0
  30. data/lib/ohai/mixin/which.rb +38 -0
  31. data/lib/ohai/plugin_config.rb +1 -1
  32. data/lib/ohai/plugins/aix/kernel.rb +1 -1
  33. data/lib/ohai/plugins/aix/memory.rb +3 -3
  34. data/lib/ohai/plugins/aix/network.rb +1 -1
  35. data/lib/ohai/plugins/aix/platform.rb +1 -1
  36. data/lib/ohai/plugins/aix/uptime.rb +1 -1
  37. data/lib/ohai/plugins/aix/virtualization.rb +1 -1
  38. data/lib/ohai/plugins/azure.rb +25 -5
  39. data/lib/ohai/plugins/bsd/virtualization.rb +3 -3
  40. data/lib/ohai/plugins/chef.rb +1 -1
  41. data/lib/ohai/plugins/cloud.rb +1 -1
  42. data/lib/ohai/plugins/command.rb +1 -1
  43. data/lib/ohai/plugins/cpu.rb +6 -6
  44. data/lib/ohai/plugins/darwin/memory.rb +1 -1
  45. data/lib/ohai/plugins/darwin/network.rb +1 -1
  46. data/lib/ohai/plugins/darwin/platform.rb +2 -2
  47. data/lib/ohai/plugins/darwin/virtualization.rb +2 -2
  48. data/lib/ohai/plugins/dmi.rb +1 -1
  49. data/lib/ohai/plugins/docker.rb +1 -1
  50. data/lib/ohai/plugins/ec2.rb +15 -9
  51. data/lib/ohai/plugins/erlang.rb +1 -1
  52. data/lib/ohai/plugins/eucalyptus.rb +1 -1
  53. data/lib/ohai/plugins/filesystem.rb +4 -4
  54. data/lib/ohai/plugins/fips.rb +1 -1
  55. data/lib/ohai/plugins/gce.rb +2 -2
  56. data/lib/ohai/plugins/hostname.rb +1 -1
  57. data/lib/ohai/plugins/init_package.rb +2 -2
  58. data/lib/ohai/plugins/java.rb +1 -1
  59. data/lib/ohai/plugins/joyent.rb +2 -2
  60. data/lib/ohai/plugins/kernel.rb +9 -5
  61. data/lib/ohai/plugins/keys.rb +1 -1
  62. data/lib/ohai/plugins/languages.rb +1 -1
  63. data/lib/ohai/plugins/libvirt.rb +1 -1
  64. data/lib/ohai/plugins/linode.rb +1 -1
  65. data/lib/ohai/plugins/linux/block_device.rb +9 -9
  66. data/lib/ohai/plugins/linux/interrupts.rb +3 -3
  67. data/lib/ohai/plugins/linux/ipc.rb +1 -1
  68. data/lib/ohai/plugins/linux/lsb.rb +4 -4
  69. data/lib/ohai/plugins/linux/machineid.rb +4 -4
  70. data/lib/ohai/plugins/linux/mdadm.rb +2 -2
  71. data/lib/ohai/plugins/linux/memory.rb +2 -2
  72. data/lib/ohai/plugins/linux/network.rb +13 -13
  73. data/lib/ohai/plugins/linux/platform.rb +30 -30
  74. data/lib/ohai/plugins/linux/virtualization.rb +24 -24
  75. data/lib/ohai/plugins/network.rb +1 -1
  76. data/lib/ohai/plugins/ohai_time.rb +2 -2
  77. data/lib/ohai/plugins/openstack.rb +1 -1
  78. data/lib/ohai/plugins/os.rb +5 -1
  79. data/lib/ohai/plugins/packages.rb +20 -0
  80. data/lib/ohai/plugins/passwd.rb +57 -1
  81. data/lib/ohai/plugins/perl.rb +1 -1
  82. data/lib/ohai/plugins/platform.rb +1 -1
  83. data/lib/ohai/plugins/powershell.rb +1 -1
  84. data/lib/ohai/plugins/ps.rb +1 -1
  85. data/lib/ohai/plugins/python.rb +1 -1
  86. data/lib/ohai/plugins/rackspace.rb +2 -2
  87. data/lib/ohai/plugins/scaleway.rb +1 -1
  88. data/lib/ohai/plugins/shard.rb +1 -1
  89. data/lib/ohai/plugins/shells.rb +3 -3
  90. data/lib/ohai/plugins/softlayer.rb +1 -1
  91. data/lib/ohai/plugins/solaris2/dmi.rb +1 -1
  92. data/lib/ohai/plugins/solaris2/network.rb +6 -8
  93. data/lib/ohai/plugins/solaris2/platform.rb +3 -3
  94. data/lib/ohai/plugins/solaris2/virtualization.rb +2 -2
  95. data/lib/ohai/plugins/ssh_host_key.rb +13 -13
  96. data/lib/ohai/plugins/train.rb +35 -0
  97. data/lib/ohai/plugins/uptime.rb +2 -2
  98. data/lib/ohai/plugins/virtualbox.rb +1 -1
  99. data/lib/ohai/plugins/vmware.rb +2 -2
  100. data/lib/ohai/plugins/windows/drivers.rb +1 -1
  101. data/lib/ohai/plugins/windows/network.rb +2 -2
  102. data/lib/ohai/plugins/windows/platform.rb +1 -1
  103. data/lib/ohai/plugins/windows/system_enclosure.rb +1 -1
  104. data/lib/ohai/plugins/windows/virtualization.rb +1 -1
  105. data/lib/ohai/plugins/zpools.rb +1 -1
  106. data/lib/ohai/provides_map.rb +1 -1
  107. data/lib/ohai/runner.rb +5 -1
  108. data/lib/ohai/system.rb +34 -7
  109. data/lib/ohai/train_transport.rb +28 -0
  110. data/lib/ohai/util/file_helper.rb +4 -37
  111. data/lib/ohai/util/win32.rb +1 -1
  112. data/lib/ohai/version.rb +3 -3
  113. data/ohai.gemspec +7 -7
  114. metadata +80 -60
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: Tim Smith <tsmith@chef.io>
3
3
  # Author:: Joshua Colson <joshua.colson@gmail.com>
4
- # Copyright:: 2015-2019 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # Copyright:: 2019 Joshua Colson
6
6
  # License:: Apache License, Version 2.0
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: "Dan Robinson" <drobinson@chef.io>
3
3
  # Author:: "Christopher M. Luciano" <cmlucian@us.ibm.com>
4
- # Copyright:: Copyright (c) 2014-2016 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # Copyright (C) 2015 IBM Corp.
6
6
  # License:: Apache License, Version 2.0
7
7
  #
@@ -41,7 +41,7 @@ Ohai.plugin(:VMware) do
41
41
  end
42
42
 
43
43
  def get_vm_attributes(vmtools_path)
44
- if !File.exist?(vmtools_path)
44
+ if !file_exist?(vmtools_path)
45
45
  logger.trace("Plugin VMware: #{vmtools_path} not found")
46
46
  else
47
47
  vmware Mash.new
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software
2
+ # Copyright:: Copyright (c) Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: James Gartrell (<jgartrel@gmail.com>)
3
- # Copyright:: Copyright (c) 2008-2017, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -117,7 +117,7 @@ Ohai.plugin(:Network) do
117
117
  end
118
118
 
119
119
  collect_data(:windows) do
120
-
120
+ require "ipaddress" unless defined?(IPAddress)
121
121
  require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
122
122
 
123
123
  iface = Mash.new
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: James Gartrell (<jgartrel@gmail.com>)
3
- # Copyright:: Copyright (c) 2009-2016 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Stuart Preston (<stuart@chef.io>)
3
- # Copyright:: Copyright (c) 2018, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -2,7 +2,7 @@
2
2
  # Author:: Pavel Yudin (<pyudin@parallels.com>)
3
3
  # Author:: Tim Smith (<tsmith@chef.io>)
4
4
  # Copyright:: Copyright (c) 2015 Pavel Yudin
5
- # Copyright:: Copyright (c) 2015-2016 Chef Software, Inc.
5
+ # Copyright:: Copyright (c) Chef Software Inc.
6
6
  # License:: Apache License, Version 2.0
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Jason J. W. Williams (williamsjj@digitar.com)
3
- # Copyright:: Copyright (c) 2011-2017 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
3
  # Author:: Daniel DeLeo (<dan@chef.io>)
4
- # Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Claire McQuin (<claire@chef.io>)
3
- # Copyright:: Copyright (c) 2013-2019, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License"); you
@@ -24,6 +24,9 @@ module Ohai
24
24
  class Runner
25
25
 
26
26
  attr_reader :failed_plugins, :logger
27
+
28
+ attr_accessor :transport_connection
29
+
27
30
  # safe_run: set to true if this runner will run plugins in
28
31
  # safe-mode. default false.
29
32
  def initialize(controller, safe_run = false)
@@ -93,6 +96,7 @@ module Ohai
93
96
  end
94
97
 
95
98
  if dependency_providers.empty?
99
+ next_plugin.transport_connection = transport_connection
96
100
  @safe_run ? next_plugin.safe_run : next_plugin.run
97
101
  if next_plugin.failed
98
102
  @failed_plugins << next_plugin.name
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
- # Copyright:: Copyright (c) 2008-2019, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -22,15 +22,16 @@ require_relative "log"
22
22
  require_relative "mash"
23
23
  require_relative "runner"
24
24
  require_relative "dsl"
25
- require_relative "mixin/command"
25
+ require_relative "mixin/shell_out"
26
26
  require_relative "mixin/os"
27
27
  require_relative "mixin/string"
28
28
  require_relative "mixin/constant_helper"
29
29
  require_relative "provides_map"
30
30
  require_relative "hints"
31
- require "mixlib/shellout" unless defined?(Mixlib::ShellOut::DEFAULT_READ_TIMEOUT)
32
31
  require_relative "config"
32
+ require_relative "train_transport"
33
33
  require "ffi_yajl" unless defined?(FFI_Yajl)
34
+ require "cgi" unless defined?(CGI)
34
35
 
35
36
  module Ohai
36
37
  # The class used by Ohai::Application and Chef to actually collect data
@@ -41,6 +42,7 @@ module Ohai
41
42
  attr_reader :config
42
43
  attr_reader :provides_map
43
44
  attr_reader :logger
45
+ attr_writer :transport_connection
44
46
 
45
47
  # the cli flag is used to determine if we're being constructed by
46
48
  # something like chef-client (which doesn't set this flag) and
@@ -68,7 +70,6 @@ module Ohai
68
70
  configure_logging if @cli
69
71
 
70
72
  @loader = Ohai::Loader.new(self)
71
- @runner = Ohai::Runner.new(self, true)
72
73
 
73
74
  Ohai::Hints.refresh_hints
74
75
 
@@ -76,6 +77,13 @@ module Ohai
76
77
  recursive_remove_constants(Ohai::NamedPlugin)
77
78
  end
78
79
 
80
+ def runner
81
+ @runner ||=
82
+ Ohai::Runner.new(self, true).tap do |runner|
83
+ runner.transport_connection = transport_connection unless transport_connection.nil?
84
+ end
85
+ end
86
+
79
87
  def [](key)
80
88
  @data[key]
81
89
  end
@@ -103,6 +111,13 @@ module Ohai
103
111
  @loader.load_all
104
112
  end
105
113
 
114
+ # get backend parameters for target mode
115
+ #
116
+ # @return [Train::Transport]
117
+ def transport_connection
118
+ @transport_connection ||= Ohai::TrainTransport.new(logger).build_transport&.connection
119
+ end
120
+
106
121
  # run all plugins or those that match the attribute filter is provided
107
122
  #
108
123
  # @param safe [Boolean]
@@ -112,13 +127,14 @@ module Ohai
112
127
  def run_plugins(safe = false, attribute_filter = nil)
113
128
  begin
114
129
  @provides_map.all_plugins(attribute_filter).each do |plugin|
115
- @runner.run_plugin(plugin)
130
+ runner.run_plugin(plugin)
116
131
  end
132
+ transport_connection.close unless transport_connection.nil?
117
133
  rescue Ohai::Exceptions::AttributeNotFound, Ohai::Exceptions::DependencyCycle => e
118
134
  logger.error("Encountered error while running plugins: #{e.inspect}")
119
135
  raise
120
136
  end
121
- critical_failed = Ohai::Config.ohai[:critical_plugins] & @runner.failed_plugins
137
+ critical_failed = Ohai::Config.ohai[:critical_plugins] & runner.failed_plugins
122
138
  unless critical_failed.empty?
123
139
  msg = "The following Ohai plugins marked as critical failed: #{critical_failed}"
124
140
  if @cli
@@ -140,7 +156,7 @@ module Ohai
140
156
  def run_additional_plugins(plugin_path)
141
157
  @loader.load_additional(plugin_path).each do |plugin|
142
158
  logger.trace "Running plugin #{plugin}"
143
- @runner.run_plugin(plugin)
159
+ runner.run_plugin(plugin)
144
160
  end
145
161
 
146
162
  freeze_strings!
@@ -226,5 +242,16 @@ module Ohai
226
242
  end
227
243
  visitor.call(@data)
228
244
  end
245
+
246
+ # Extract additional backend parameters from Target Mode URL.
247
+ #
248
+ # @api private
249
+ # @return [Hash]
250
+ def backend_parameters
251
+ uri = URI.parse(config[:target])
252
+ return {} unless uri.query
253
+
254
+ CGI.parse(uri.query).map { |k, v| [k.to_sym, v.first] }.to_h
255
+ end
229
256
  end
230
257
  end
@@ -0,0 +1,28 @@
1
+ # Author:: Bryan McLellan <btm@loftninjas.org>
2
+ # Copyright:: Copyright (c) Chef Software Inc.
3
+ # License:: Apache License, Version 2.0
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ require "chef-config/mixin/train_transport" unless defined?(ChefConfig::Mixin::TrainTransport)
19
+
20
+ module Ohai
21
+ class TrainTransport
22
+ include ChefConfig::Mixin::TrainTransport
23
+
24
+ def config
25
+ Ohai::Config
26
+ end
27
+ end
28
+ end
@@ -1,38 +1,5 @@
1
- # Author:: Lamont Granquist (<lamont@chef.io>)
2
- #
3
- # Copyright:: Copyright (c) 2013-14 Chef Software, Inc.
4
- #
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
-
19
- # Copied from chef/lib/chef/util/selinux.rb
20
-
21
- module Ohai
22
- module Util
23
- module FileHelper
24
- def which(cmd)
25
- paths = ENV["PATH"].split(File::PATH_SEPARATOR) + [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ]
26
- paths.each do |path|
27
- filename = File.join(path, cmd)
28
- if File.executable?(filename)
29
- logger.trace("Plugin #{name}: found #{cmd} at #{filename}")
30
- return filename
31
- end
32
- end
33
- logger.trace("Plugin #{name}: did not find #{cmd}")
34
- false
35
- end
36
- end
37
- end
1
+ $stderr.puts "WARN: Ohai::Util::FileHelper is deprecated, please use Ohai::Mixin::Which or remove if the reference is unnecessary"
2
+ require_relative "../mixin/which"
3
+ module Ohai::Util
4
+ FileHelper = Ohai::Mixin::Which
38
5
  end
@@ -1,6 +1,6 @@
1
1
  # Author:: Adam Edwards (<adamed@chef.io>)
2
2
  #
3
- # Copyright:: Copyright (c) 2013-14 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  #
5
5
  # License:: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
- # Copyright:: Copyright (c) 2008-2018, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module Ohai
20
- OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = "16.4.11".freeze
20
+ OHAI_ROOT = File.expand_path(__dir__)
21
+ VERSION = "16.6.5".freeze
22
22
  end
@@ -1,5 +1,4 @@
1
-
2
- $:.unshift File.expand_path("../lib", __FILE__)
1
+ $:.unshift File.expand_path("lib", __dir__)
3
2
  require "ohai/version"
4
3
 
5
4
  Gem::Specification.new do |s|
@@ -12,19 +11,20 @@ Gem::Specification.new do |s|
12
11
  s.email = "adam@chef.io"
13
12
  s.homepage = "https://github.com/chef/ohai/"
14
13
 
15
- s.required_ruby_version = ">= 2.5"
14
+ s.required_ruby_version = ">= 2.6"
16
15
 
16
+ s.add_dependency "chef-config", ">= 12.8", "< 17"
17
+ s.add_dependency "chef-utils", ">= 16.0", "< 17"
18
+ s.add_dependency "ffi", "~> 1.9"
17
19
  s.add_dependency "ffi-yajl", "~> 2.2"
20
+ s.add_dependency "ipaddress"
18
21
  s.add_dependency "mixlib-cli", ">= 1.7.0" # 1.7+ needed to support passing multiple options
19
22
  s.add_dependency "mixlib-config", ">= 2.0", "< 4.0"
20
23
  s.add_dependency "mixlib-log", ">= 2.0.1", "< 4.0"
21
24
  s.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
22
25
  s.add_dependency "plist", "~> 3.1"
23
- s.add_dependency "ipaddress"
24
26
  s.add_dependency "wmi-lite", "~> 1.0"
25
- s.add_dependency "ffi", "~> 1.9"
26
- s.add_dependency "chef-config", ">= 12.8", "< 17"
27
- s.add_dependency "chef-utils", ">= 16.0", "< 17"
27
+ s.add_dependency "train-core"
28
28
  # Note for ohai developers: If chef-config causes you grief, try:
29
29
  # bundle install --with development
30
30
  # this should work as long as chef is a development dependency in Gemfile.
metadata CHANGED
@@ -1,15 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.4.11
4
+ version: 16.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chef-config
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '12.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '17'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '12.8'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '17'
33
+ - !ruby/object:Gem::Dependency
34
+ name: chef-utils
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '16.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '17'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '16.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '17'
53
+ - !ruby/object:Gem::Dependency
54
+ name: ffi
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.9'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '1.9'
13
67
  - !ruby/object:Gem::Dependency
14
68
  name: ffi-yajl
15
69
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +78,20 @@ dependencies:
24
78
  - - "~>"
25
79
  - !ruby/object:Gem::Version
26
80
  version: '2.2'
81
+ - !ruby/object:Gem::Dependency
82
+ name: ipaddress
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
27
95
  - !ruby/object:Gem::Dependency
28
96
  name: mixlib-cli
29
97
  requirement: !ruby/object:Gem::Requirement
@@ -112,20 +180,6 @@ dependencies:
112
180
  - - "~>"
113
181
  - !ruby/object:Gem::Version
114
182
  version: '3.1'
115
- - !ruby/object:Gem::Dependency
116
- name: ipaddress
117
- requirement: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: '0'
122
- type: :runtime
123
- prerelease: false
124
- version_requirements: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: '0'
129
183
  - !ruby/object:Gem::Dependency
130
184
  name: wmi-lite
131
185
  requirement: !ruby/object:Gem::Requirement
@@ -141,59 +195,19 @@ dependencies:
141
195
  - !ruby/object:Gem::Version
142
196
  version: '1.0'
143
197
  - !ruby/object:Gem::Dependency
144
- name: ffi
198
+ name: train-core
145
199
  requirement: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '1.9'
150
- type: :runtime
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - "~>"
155
- - !ruby/object:Gem::Version
156
- version: '1.9'
157
- - !ruby/object:Gem::Dependency
158
- name: chef-config
159
- requirement: !ruby/object:Gem::Requirement
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- version: '12.8'
164
- - - "<"
165
- - !ruby/object:Gem::Version
166
- version: '17'
167
- type: :runtime
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
200
  requirements:
171
201
  - - ">="
172
202
  - !ruby/object:Gem::Version
173
- version: '12.8'
174
- - - "<"
175
- - !ruby/object:Gem::Version
176
- version: '17'
177
- - !ruby/object:Gem::Dependency
178
- name: chef-utils
179
- requirement: !ruby/object:Gem::Requirement
180
- requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- version: '16.0'
184
- - - "<"
185
- - !ruby/object:Gem::Version
186
- version: '17'
203
+ version: '0'
187
204
  type: :runtime
188
205
  prerelease: false
189
206
  version_requirements: !ruby/object:Gem::Requirement
190
207
  requirements:
191
208
  - - ">="
192
209
  - !ruby/object:Gem::Version
193
- version: '16.0'
194
- - - "<"
195
- - !ruby/object:Gem::Version
196
- version: '17'
210
+ version: '0'
197
211
  description: Ohai profiles your system and emits JSON
198
212
  email: adam@chef.io
199
213
  executables:
@@ -217,6 +231,7 @@ files:
217
231
  - lib/ohai/log.rb
218
232
  - lib/ohai/mash.rb
219
233
  - lib/ohai/mixin/azure_metadata.rb
234
+ - lib/ohai/mixin/chef_utils_wiring.rb
220
235
  - lib/ohai/mixin/command.rb
221
236
  - lib/ohai/mixin/constant_helper.rb
222
237
  - lib/ohai/mixin/dmi_decode.rb
@@ -228,8 +243,11 @@ files:
228
243
  - lib/ohai/mixin/os.rb
229
244
  - lib/ohai/mixin/scaleway_metadata.rb
230
245
  - lib/ohai/mixin/seconds_to_human.rb
246
+ - lib/ohai/mixin/shell_out.rb
231
247
  - lib/ohai/mixin/softlayer_metadata.rb
232
248
  - lib/ohai/mixin/string.rb
249
+ - lib/ohai/mixin/train_helpers.rb
250
+ - lib/ohai/mixin/which.rb
233
251
  - lib/ohai/plugin_config.rb
234
252
  - lib/ohai/plugins/aix/kernel.rb
235
253
  - lib/ohai/plugins/aix/memory.rb
@@ -333,6 +351,7 @@ files:
333
351
  - lib/ohai/plugins/ssh_host_key.rb
334
352
  - lib/ohai/plugins/sysconf.rb
335
353
  - lib/ohai/plugins/timezone.rb
354
+ - lib/ohai/plugins/train.rb
336
355
  - lib/ohai/plugins/uptime.rb
337
356
  - lib/ohai/plugins/virtualbox.rb
338
357
  - lib/ohai/plugins/vmware.rb
@@ -347,6 +366,7 @@ files:
347
366
  - lib/ohai/provides_map.rb
348
367
  - lib/ohai/runner.rb
349
368
  - lib/ohai/system.rb
369
+ - lib/ohai/train_transport.rb
350
370
  - lib/ohai/util/file_helper.rb
351
371
  - lib/ohai/util/ip_helper.rb
352
372
  - lib/ohai/util/win32.rb
@@ -364,7 +384,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
364
384
  requirements:
365
385
  - - ">="
366
386
  - !ruby/object:Gem::Version
367
- version: '2.5'
387
+ version: '2.6'
368
388
  required_rubygems_version: !ruby/object:Gem::Requirement
369
389
  requirements:
370
390
  - - ">="