ohai 15.3.1 → 15.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -6
  3. data/lib/ohai/mixin/{network_constants.rb → network_helper.rb} +8 -1
  4. data/lib/ohai/plugins/aix/network.rb +3 -8
  5. data/lib/ohai/plugins/darwin/network.rb +6 -4
  6. data/lib/ohai/plugins/filesystem.rb +166 -0
  7. data/lib/ohai/plugins/network.rb +5 -5
  8. data/lib/ohai/plugins/openstack.rb +2 -1
  9. data/lib/ohai/plugins/solaris2/network.rb +6 -4
  10. data/lib/ohai/version.rb +1 -1
  11. data/ohai.gemspec +1 -1
  12. metadata +3 -162
  13. data/Rakefile +0 -42
  14. data/lib/ohai/plugins/windows/filesystem.rb +0 -147
  15. data/spec/data/plugins/dpkg-query.output +0 -4
  16. data/spec/data/plugins/lslpp.output +0 -50
  17. data/spec/data/plugins/pacman.output +0 -51
  18. data/spec/data/plugins/pkg-query.output +0 -58
  19. data/spec/data/plugins/pkginfo.output +0 -50
  20. data/spec/data/plugins/pkglist.output +0 -24
  21. data/spec/data/plugins/rpmquery.output +0 -7
  22. data/spec/functional/application_spec.rb +0 -107
  23. data/spec/functional/loader_spec.rb +0 -53
  24. data/spec/functional/plugins/powershell_spec.rb +0 -88
  25. data/spec/functional/plugins/root_group_spec.rb +0 -41
  26. data/spec/functional/plugins/windows/uptime_spec.rb +0 -51
  27. data/spec/ohai_spec.rb +0 -27
  28. data/spec/rcov.opts +0 -2
  29. data/spec/spec.opts +0 -2
  30. data/spec/spec_helper.rb +0 -124
  31. data/spec/support/integration_helper.rb +0 -61
  32. data/spec/support/platform_helpers.rb +0 -38
  33. data/spec/unit/application_spec.rb +0 -96
  34. data/spec/unit/config_spec.rb +0 -57
  35. data/spec/unit/dsl/plugin_spec.rb +0 -634
  36. data/spec/unit/hints_spec.rb +0 -65
  37. data/spec/unit/loader_spec.rb +0 -195
  38. data/spec/unit/mixin/azure_metadata_spec.rb +0 -72
  39. data/spec/unit/mixin/command_spec.rb +0 -151
  40. data/spec/unit/mixin/dmi_decode.rb +0 -75
  41. data/spec/unit/mixin/ec2_metadata_spec.rb +0 -88
  42. data/spec/unit/mixin/softlayer_metadata_spec.rb +0 -72
  43. data/spec/unit/plugin_config_spec.rb +0 -117
  44. data/spec/unit/plugins/abort_spec.rb +0 -69
  45. data/spec/unit/plugins/aix/cpu_spec.rb +0 -127
  46. data/spec/unit/plugins/aix/filesystem_spec.rb +0 -238
  47. data/spec/unit/plugins/aix/hostname_spec.rb +0 -33
  48. data/spec/unit/plugins/aix/kernel_spec.rb +0 -61
  49. data/spec/unit/plugins/aix/memory_spec.rb +0 -49
  50. data/spec/unit/plugins/aix/network_spec.rb +0 -313
  51. data/spec/unit/plugins/aix/platform_spec.rb +0 -44
  52. data/spec/unit/plugins/aix/uptime_spec.rb +0 -42
  53. data/spec/unit/plugins/aix/virtualization_spec.rb +0 -319
  54. data/spec/unit/plugins/azure_spec.rb +0 -243
  55. data/spec/unit/plugins/bsd/filesystem_spec.rb +0 -138
  56. data/spec/unit/plugins/bsd/virtualization_spec.rb +0 -145
  57. data/spec/unit/plugins/c_spec.rb +0 -341
  58. data/spec/unit/plugins/chef_spec.rb +0 -44
  59. data/spec/unit/plugins/cloud_spec.rb +0 -484
  60. data/spec/unit/plugins/darwin/cpu_spec.rb +0 -124
  61. data/spec/unit/plugins/darwin/filesystem_spec.rb +0 -140
  62. data/spec/unit/plugins/darwin/hardware_spec.rb +0 -105
  63. data/spec/unit/plugins/darwin/hardware_system_profiler_output.rb +0 -1110
  64. data/spec/unit/plugins/darwin/hostname_spec.rb +0 -43
  65. data/spec/unit/plugins/darwin/kernel_spec.rb +0 -65
  66. data/spec/unit/plugins/darwin/memory_spec.rb +0 -64
  67. data/spec/unit/plugins/darwin/network_spec.rb +0 -849
  68. data/spec/unit/plugins/darwin/platform_spec.rb +0 -71
  69. data/spec/unit/plugins/darwin/virtualization_spec.rb +0 -156
  70. data/spec/unit/plugins/digital_ocean_spec.rb +0 -106
  71. data/spec/unit/plugins/dmi_spec.rb +0 -156
  72. data/spec/unit/plugins/docker_spec.rb +0 -100
  73. data/spec/unit/plugins/ec2_spec.rb +0 -452
  74. data/spec/unit/plugins/elixir_spec.rb +0 -55
  75. data/spec/unit/plugins/erlang_spec.rb +0 -71
  76. data/spec/unit/plugins/eucalyptus_spec.rb +0 -109
  77. data/spec/unit/plugins/fail_spec.rb +0 -260
  78. data/spec/unit/plugins/freebsd/cpu_spec.rb +0 -129
  79. data/spec/unit/plugins/freebsd/hostname_spec.rb +0 -35
  80. data/spec/unit/plugins/freebsd/kernel_spec.rb +0 -36
  81. data/spec/unit/plugins/freebsd/platform_spec.rb +0 -38
  82. data/spec/unit/plugins/gce_spec.rb +0 -81
  83. data/spec/unit/plugins/go_spec.rb +0 -48
  84. data/spec/unit/plugins/groovy_spec.rb +0 -66
  85. data/spec/unit/plugins/haskell_spec.rb +0 -231
  86. data/spec/unit/plugins/hostname_spec.rb +0 -162
  87. data/spec/unit/plugins/init_package_spec.rb +0 -60
  88. data/spec/unit/plugins/java_spec.rb +0 -230
  89. data/spec/unit/plugins/joyent_spec.rb +0 -100
  90. data/spec/unit/plugins/kernel_spec.rb +0 -38
  91. data/spec/unit/plugins/linode_spec.rb +0 -135
  92. data/spec/unit/plugins/linux/block_device_spec.rb +0 -75
  93. data/spec/unit/plugins/linux/cpu_spec.rb +0 -441
  94. data/spec/unit/plugins/linux/filesystem_spec.rb +0 -550
  95. data/spec/unit/plugins/linux/fips_spec.rb +0 -60
  96. data/spec/unit/plugins/linux/hostname_spec.rb +0 -52
  97. data/spec/unit/plugins/linux/hostnamectl_spec.rb +0 -59
  98. data/spec/unit/plugins/linux/kernel_spec.rb +0 -71
  99. data/spec/unit/plugins/linux/lsb_spec.rb +0 -147
  100. data/spec/unit/plugins/linux/lspci_spec.rb +0 -133
  101. data/spec/unit/plugins/linux/machineid_spec.rb +0 -46
  102. data/spec/unit/plugins/linux/mdadm_spec.rb +0 -170
  103. data/spec/unit/plugins/linux/memory_spec.rb +0 -256
  104. data/spec/unit/plugins/linux/network_spec.rb +0 -1392
  105. data/spec/unit/plugins/linux/platform_spec.rb +0 -812
  106. data/spec/unit/plugins/linux/sessions_spec.rb +0 -98
  107. data/spec/unit/plugins/linux/sysctl_spec.rb +0 -53
  108. data/spec/unit/plugins/linux/systemd_paths_spec.rb +0 -122
  109. data/spec/unit/plugins/linux/uptime_spec.rb +0 -48
  110. data/spec/unit/plugins/linux/virtualization_spec.rb +0 -650
  111. data/spec/unit/plugins/lua_spec.rb +0 -60
  112. data/spec/unit/plugins/mono_spec.rb +0 -67
  113. data/spec/unit/plugins/netbsd/hostname_spec.rb +0 -43
  114. data/spec/unit/plugins/netbsd/kernel_spec.rb +0 -35
  115. data/spec/unit/plugins/netbsd/platform_spec.rb +0 -38
  116. data/spec/unit/plugins/network_spec.rb +0 -1078
  117. data/spec/unit/plugins/nodejs_spec.rb +0 -55
  118. data/spec/unit/plugins/ohai_spec.rb +0 -32
  119. data/spec/unit/plugins/ohai_time_spec.rb +0 -44
  120. data/spec/unit/plugins/openbsd/hostname_spec.rb +0 -43
  121. data/spec/unit/plugins/openbsd/kernel_spec.rb +0 -36
  122. data/spec/unit/plugins/openbsd/platform_spec.rb +0 -33
  123. data/spec/unit/plugins/openstack_spec.rb +0 -311
  124. data/spec/unit/plugins/os_spec.rb +0 -115
  125. data/spec/unit/plugins/packages_spec.rb +0 -353
  126. data/spec/unit/plugins/passwd_spec.rb +0 -65
  127. data/spec/unit/plugins/perl_spec.rb +0 -62
  128. data/spec/unit/plugins/php_spec.rb +0 -97
  129. data/spec/unit/plugins/platform_spec.rb +0 -65
  130. data/spec/unit/plugins/powershell_spec.rb +0 -71
  131. data/spec/unit/plugins/python_spec.rb +0 -51
  132. data/spec/unit/plugins/rackspace_spec.rb +0 -350
  133. data/spec/unit/plugins/root_group_spec.rb +0 -90
  134. data/spec/unit/plugins/ruby_spec.rb +0 -60
  135. data/spec/unit/plugins/rust_spec.rb +0 -43
  136. data/spec/unit/plugins/scala_spec.rb +0 -58
  137. data/spec/unit/plugins/scaleway_spec.rb +0 -93
  138. data/spec/unit/plugins/scsi_spec.rb +0 -69
  139. data/spec/unit/plugins/shard_spec.rb +0 -121
  140. data/spec/unit/plugins/shells_spec.rb +0 -56
  141. data/spec/unit/plugins/softlayer_spec.rb +0 -60
  142. data/spec/unit/plugins/solaris2/cpu_spec.rb +0 -2926
  143. data/spec/unit/plugins/solaris2/dmi_spec.rb +0 -153
  144. data/spec/unit/plugins/solaris2/filesystem.rb +0 -407
  145. data/spec/unit/plugins/solaris2/hostname_spec.rb +0 -37
  146. data/spec/unit/plugins/solaris2/kernel_spec.rb +0 -183
  147. data/spec/unit/plugins/solaris2/memory_spec.rb +0 -43
  148. data/spec/unit/plugins/solaris2/network_spec.rb +0 -201
  149. data/spec/unit/plugins/solaris2/platform_spec.rb +0 -108
  150. data/spec/unit/plugins/solaris2/virtualization_spec.rb +0 -97
  151. data/spec/unit/plugins/ssh_host_keys_spec.rb +0 -116
  152. data/spec/unit/plugins/sysconf_spec.rb +0 -680
  153. data/spec/unit/plugins/timezone_spec.rb +0 -30
  154. data/spec/unit/plugins/vbox_host_spec.rb +0 -14
  155. data/spec/unit/plugins/virtualbox_spec.rb +0 -375
  156. data/spec/unit/plugins/vmware_spec.rb +0 -81
  157. data/spec/unit/plugins/windows/cpu_spec.rb +0 -118
  158. data/spec/unit/plugins/windows/filesystem_spec.rb +0 -226
  159. data/spec/unit/plugins/windows/fips_spec.rb +0 -60
  160. data/spec/unit/plugins/windows/kernel_spec.rb +0 -79
  161. data/spec/unit/plugins/windows/memory_spec.rb +0 -52
  162. data/spec/unit/plugins/windows/network_spec.rb +0 -137
  163. data/spec/unit/plugins/windows/system_enclosure_spec.rb +0 -45
  164. data/spec/unit/plugins/windows/uptime_spec.rb +0 -38
  165. data/spec/unit/plugins/windows/virtualization_spec.rb +0 -63
  166. data/spec/unit/plugins/zpools_spec.rb +0 -244
  167. data/spec/unit/provides_map_spec.rb +0 -208
  168. data/spec/unit/runner_spec.rb +0 -422
  169. data/spec/unit/system_spec.rb +0 -416
  170. data/spec/unit/util/file_helper_spec.rb +0 -47
  171. data/spec/unit/util/ip_helper_spec.rb +0 -128
data/Rakefile DELETED
@@ -1,42 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- begin
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new do |t|
7
- t.pattern = "spec/**/*_spec.rb"
8
- end
9
- rescue LoadError
10
- desc "rspec is not installed, this task is disabled"
11
- task :spec do
12
- abort "rspec is not installed. bundle install first to make sure all dependencies are installed."
13
- end
14
- end
15
-
16
- begin
17
- require "chefstyle"
18
- require "rubocop/rake_task"
19
- desc "Run Chefstyle tests"
20
- RuboCop::RakeTask.new(:style) do |task|
21
- task.options += ["--display-cop-names", "--no-color"]
22
- end
23
- rescue LoadError
24
- puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
25
- end
26
-
27
- begin
28
- require "yard"
29
- YARD::Rake::YardocTask.new(:docs)
30
- rescue LoadError
31
- puts "yard is not available. bundle install first to make sure all dependencies are installed."
32
- end
33
-
34
- task :console do
35
- require "irb"
36
- require "irb/completion"
37
- require "ohai"
38
- ARGV.clear
39
- IRB.start
40
- end
41
-
42
- task default: %i{style spec}
@@ -1,147 +0,0 @@
1
- #
2
- # Author:: James Gartrell (<jgartrel@gmail.com>)
3
- # Copyright:: Copyright (c) 2009-2016 Chef Software, Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- Ohai.plugin(:Filesystem) do
20
- provides "filesystem"
21
-
22
- # Volume encryption or decryption status
23
- #
24
- # @see https://docs.microsoft.com/en-us/windows/desktop/SecProv/getconversionstatus-win32-encryptablevolume#parameters
25
- #
26
- CONVERSION_STATUS ||= %w{FullyDecrypted FullyEncrypted EncryptionInProgress
27
- DecryptionInProgress EncryptionPaused DecryptionPaused}.freeze
28
-
29
- # Returns a Mash loaded with logical details
30
- #
31
- # Uses Win32_LogicalDisk and logical_properties to return encryption details of volumes.
32
- #
33
- # Returns an empty Mash in case of any WMI exception.
34
- #
35
- # @see https://docs.microsoft.com/en-us/windows/desktop/CIMWin32Prov/win32-logicaldisk
36
- #
37
- # @return [Mash]
38
- #
39
- def logical_info
40
- wmi = WmiLite::Wmi.new("Root\\CIMV2")
41
-
42
- # Note: we should really be parsing Win32_Volume and Win32_Mapped drive.
43
- disks = wmi.instances_of("Win32_LogicalDisk")
44
- logical_properties(disks)
45
- rescue WmiLite::WmiException
46
- Ohai::Log.debug("Unable to access Win32_LogicalDisk. Skipping logical details")
47
- Mash.new
48
- end
49
-
50
- # Returns a Mash loaded with encryption details
51
- #
52
- # Uses Win32_EncryptableVolume and encryption_properties to return encryption details of volumes.
53
- #
54
- # Returns an empty Mash in case of any WMI exception.
55
- #
56
- # @note We are fetching Encryption Status only as of now
57
- #
58
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/aa376483(v=vs.85).aspx
59
- #
60
- # @return [Mash]
61
- #
62
- def encryptable_info
63
- wmi = WmiLite::Wmi.new("Root\\CIMV2\\Security\\MicrosoftVolumeEncryption")
64
- disks = wmi.instances_of("Win32_EncryptableVolume")
65
- encryption_properties(disks)
66
- rescue WmiLite::WmiException
67
- Ohai::Log.debug("Unable to access Win32_EncryptableVolume. Skipping encryptable details")
68
- Mash.new
69
- end
70
-
71
- # Refines and calculates logical properties out of given instances
72
- #
73
- # @param [WmiLite::Wmi::Instance] disks
74
- #
75
- # @return [Mash] Each drive containing following properties:
76
- #
77
- # * :kb_size (Integer)
78
- # * :kb_available (Integer)
79
- # * :kb_used (Integer)
80
- # * :percent_used (Integer)
81
- # * :mount (String)
82
- # * :fs_type (String)
83
- # * :volume_name (String)
84
- #
85
- def logical_properties(disks)
86
- properties = Mash.new
87
- disks.each do |disk|
88
- property = Mash.new
89
- drive = disk["deviceid"]
90
- property[:kb_size] = disk["size"].to_i / 1000
91
- property[:kb_available] = disk["freespace"].to_i / 1000
92
- property[:kb_used] = property[:kb_size] - property[:kb_available]
93
- property[:percent_used] = (property[:kb_size] == 0 ? 0 : (property[:kb_used] * 100 / property[:kb_size]))
94
- property[:mount] = disk["name"]
95
- property[:fs_type] = disk["filesystem"].to_s.downcase
96
- property[:volume_name] = disk["volumename"].to_s.downcase
97
- properties[drive] = property
98
- end
99
- properties
100
- end
101
-
102
- # Refines and calculates encryption properties out of given instances
103
- #
104
- # @param [WmiLite::Wmi::Instance] disks
105
- #
106
- # @return [Mash] Each drive containing following properties:
107
- #
108
- # * :encryption_status (String)
109
- #
110
- def encryption_properties(disks)
111
- properties = Mash.new
112
- disks.each do |disk|
113
- drive = disk["driveletter"]
114
- property = Mash.new
115
- property[:encryption_status] = disk["conversionstatus"] ? CONVERSION_STATUS[disk["conversionstatus"]] : ""
116
- properties[drive] = property
117
- end
118
- properties
119
- end
120
-
121
- # Merges all the various properties of filesystems
122
- #
123
- # @param [Array<Mash>] disks_info
124
- # Array of the Mashes containing disk properties
125
- #
126
- # @return [Mash]
127
- #
128
- def merge_info(disks_info)
129
- fs = Mash.new
130
- disks_info.each do |info|
131
- info.each do |disk, data|
132
- if fs[disk]
133
- fs[disk].merge!(data)
134
- else
135
- fs[disk] = data.dup
136
- end
137
- end
138
- end
139
- fs
140
- end
141
-
142
- collect_data(:windows) do
143
- require "wmi-lite/wmi"
144
- filesystem merge_info([logical_info,
145
- encryptable_info])
146
- end
147
- end
@@ -1,4 +0,0 @@
1
- adduser 3.113+nmu3 all
2
- libc-bin 2.19-18+deb8u3 amd64
3
- libc6 2.19-18+deb8u3 amd64
4
- tzdata 2015g-0+deb8u1 all
@@ -1,50 +0,0 @@
1
- bos.sysmgt:bos.sysmgt.smit:7.1.1.15: : :C:F:System Management Interface Tool (SMIT): : : : : : :0:0:/:1216
2
- bos.sysmgt:bos.sysmgt.sysbr:7.1.1.17: : :C:F:System Backup and BOS Install Utilities: : : : : : :0:0:/:1228
3
- bos.sysmgt:bos.sysmgt.trace:7.1.1.15: : :C:F:Software Trace Service Aids: : : : : : :0:1:/:1216
4
- bos.terminfo:bos.terminfo.ansi.data:7.1.0.0: : :C: :Amer National Stds Institute Terminal Defs: : : : : : :0:1:/:1036
5
- bos.terminfo:bos.terminfo.com.data:7.1.0.0: : :C: :Common Terminal Definitions: : : : : : :0:1:/:1036
6
- bos.terminfo:bos.terminfo.dec.data:7.1.0.0: : :C: :Digital Equipment Corp. Terminal Definitions: : : : : : :0:1:/:1036
7
- bos.terminfo:bos.terminfo.ibm.data:7.1.0.0: : :C: :IBM Terminal Definitions: : : : : : :0:1:/:1036
8
- bos.terminfo:bos.terminfo.pc.data:7.1.0.0: : :C: :Personal Computer Terminal Definitions: : : : : : :0:1:/:1036
9
- bos.terminfo:bos.terminfo.print.data:7.1.0.0: : :C: :Generic Line Printer Terminal Definitions: : : : : : :0:1:/:1036
10
- bos.terminfo:bos.terminfo.rte:7.1.0.0: : :C: :Run-time Environment for AIX Terminals: : : : : : :0:0:/:1036
11
- bos.terminfo:bos.terminfo.svprint.data:7.1.0.0: : :C: :System V Printer Terminal Definitions: : : : : : :0:0:/:1036
12
- bos.terminfo:bos.terminfo.televideo.data:7.1.0.0: : :C: :Televideo Terminal Definitions: : : : : : :0:0:/:1036
13
- bos.terminfo:bos.terminfo.wyse.data:7.1.0.0: : :C: :Wyse Terminal Definitions: : : : : : :0:0:/:1036
14
- bos.txt:bos.txt.hplj.fnt:7.1.0.0: : :C: :Fonts for Hewlett Packard Laser Jet Printers : : : : : : :0:0:/:1115
15
- bos.txt:bos.txt.ibm3812.fnt:7.1.0.0: : :C: :Fonts for IBM 3812 Printer : : : : : : :0:0:/:1115
16
- bos.txt:bos.txt.ibm3816.fnt:7.1.0.0: : :C: :Fonts for IBM 3816 Printer : : : : : : :0:0:/:1115
17
- bos.txt:bos.txt.spell:7.1.0.0: : :C: :Writer's Tools Commands : : : : : : :0:0:/:1115
18
- bos.txt:bos.txt.spell.data:7.1.0.0: : :C: :Writer's Tools Data: : : : : : :0:0:/:1036
19
- bos.txt:bos.txt.tfs:7.1.1.15: : :C:F:Text Formatting Services Commands: : : : : : :0:0:/:1216
20
- bos.txt:bos.txt.tfs.data:7.1.0.0: : :C: :Text Formatting Services Data: : : : : : :0:0:/:1036
21
- bos.wpars:bos.wpars:7.1.1.15: : :C:F:AIX Workload Partitions: : : : : : :0:0:/:1216
22
- cdrtools.base:cdrtools.base:1.9.0.9: : :C: :CD/DVD recorder: : : : : : :0:0:/:
23
- cdrtools.man.en_US:cdrtools.man.en_US:1.9.0.9: : :C: :CD/DVD recorder man page documentation: : : : : : :0:0:/:
24
- chef:chef:12.5.1.1: : :C: :The full stack of chef: : : : : : :0:0:/:
25
- clic.rte:clic.rte.kernext:4.7.0.1: : :C: :CryptoLite for C Kernel: : : : : : :0:0:/:
26
- clic.rte:clic.rte.lib:4.7.0.1: : :C: :CryptoLite for C Library: : : : : : :0:0:/:
27
- devices.artic960:devices.artic960.diag:7.1.0.0: : :C: :IBM ARTIC960 Adapter Diagnostics : : : : : : :0:0:/:1115
28
- devices.artic960:devices.artic960.rte:7.1.1.15: : :C:F:IBM ARTIC960 Runtime Support: : : : : : :0:0:/:1216
29
- devices.artic960:devices.artic960.ucode:7.1.0.0: : :C: :IBM ARTIC960 Adapter Software : : : : : : :0:0:/:1115
30
- devices.chrp.AT97SC3201_r:devices.chrp.AT97SC3201_r.rte:7.1.0.0: : :C: :Trusted Platform Module Device Software: : : : : : :0:0:/:1036
31
- devices.chrp.IBM.lhca:devices.chrp.IBM.lhca.rte:7.1.1.16: : :C:F:Infiniband Logical HCA Runtime Environment: : : : : : :0:0:/:1228
32
- devices.chrp.IBM.lhea:devices.chrp.IBM.lhea.diag:7.1.0.0: : :C: :Host Ethernet Adapter Diagnostics : : : : : : :0:0:/:1115
33
- devices.chrp.IBM.lhea:devices.chrp.IBM.lhea.rte:7.1.1.16: : :C:F:Host Ethernet Adapter (HEA) Runtime Environment: : : : : : :0:0:/:1228
34
- devices.chrp.base:devices.chrp.base.ServiceRM:1.5.1.0: : :C:F:RSCT Service Resource Manager: : : : : : :0:0:/:
35
- devices.chrp.base:devices.chrp.base.diag:7.1.1.15: : :C:F:RISC CHRP Base System Device Diagnostics: : : : : : :0:0:/:1216
36
- devices.chrp.base:devices.chrp.base.rte:7.1.1.16: : :C:F:RISC PC Base System Device Software (CHRP): : : : : : :0:0:/:1228
37
- devices.chrp.pci:devices.chrp.pci.rte:7.1.1.16: : :C:F:PCI Bus Software (CHRP): : : : : : :0:0:/:1228
38
- devices.chrp.pciex:devices.chrp.pciex.rte:7.1.0.0: : :C: :PCI Express Bus Software (CHRP): : : : : : :0:0:/:1036
39
- devices.chrp.vdevice:devices.chrp.vdevice.rte:7.1.1.16: : :C:F:Virtual I/O Bus Support: : : : : : :0:0:/:1228
40
- devices.chrp_lpar.base:devices.chrp_lpar.base.ras:7.1.0.15: : :C: :CHRP LPAR RAS Support : : : : : : :0:0:/:1115
41
- devices.common.IBM.async:devices.common.IBM.async.diag:7.1.0.0: : :C: :Common Serial Adapter Diagnostics: : : : : : :0:0:/:1036
42
- devices.common.IBM.atm:devices.common.IBM.atm.rte:7.1.1.16: : :C:F:Common ATM Software: : : : : : :0:0:/:1228
43
- devices.common.IBM.crypt:devices.common.IBM.crypt.rte:7.1.0.0: : :C: :Cryptographic Common Runtime Environment: : : : : : :0:0:/:1036
44
- devices.common.IBM.cx:devices.common.IBM.cx.rte:7.1.1.15: : :C:F:CX Common Adapter Software: : : : : : :0:0:/:1216
45
- devices.common.IBM.disk:devices.common.IBM.disk.rte:7.1.1.15: : :C:F:Common IBM Disk Software: : : : : : :0:0:/:1216
46
- devices.common.IBM.ethernet:devices.common.IBM.ethernet.rte:7.1.1.16: : :C:F:Common Ethernet Software: : : : : : :0:1:/:1228
47
- devices.common.IBM.fc:devices.common.IBM.fc.hba-api:7.1.1.16: : :C:F:Common HBA API Library: : : : : : :0:0:/:1228
48
- devices.common.IBM.fc:devices.common.IBM.fc.rte:7.1.1.16: : :C:F:Common IBM FC Software: : : : : : :0:0:/:1228
49
- devices.common.IBM.fda:devices.common.IBM.fda.diag:7.1.0.0: : :C: :Common Diskette Adapter and Device Diagnostics: : : : : : :0:0:/:1036
50
- wget:wget-1.9.1-3:1.9.1-3: : :C:R:A utility for retrieving files using the HTTP or FTP protocols.: :/bin/rpm -e wget: : : : :0: :/opt/freeware:Wed Nov 5 01:37:09 MST 2014
@@ -1,51 +0,0 @@
1
- Name : acl
2
- Version : 2.2.52-3
3
- Description : Access control list utilities, libraries and headers
4
- Architecture : x86_64
5
- URL : http://savannah.nongnu.org/projects/acl
6
- Licenses : LGPL
7
- Groups : None
8
- Provides : xfsacl
9
- Depends On : attr>=2.4.46
10
- Optional Deps : None
11
- Required By : coreutils gettext libarchive logrotate sed shadow systemd tar
12
- Optional For : None
13
- Conflicts With : xfsacl
14
- Replaces : xfsacl
15
- Installed Size : 290.00 KiB
16
- Packager : Bartlomiej Piotrowski <bpiotrowski@archlinux.org>
17
- Build Date : Sun Nov 6 14:03:46 2016
18
- Install Date : Sun Jul 23 03:25:45 2017
19
- Install Reason : Installed as a dependency for another package
20
- Install Script : No
21
- Validated By : Signature
22
-
23
- Name : abcde
24
- Version : 2.8.1-2
25
- Description : Frontend command-line utility that grabs tracks off a CD, encodes them to ogg or mp3 format, and tags them, all in one go
26
- Architecture : any
27
- URL : https://abcde.einval.com/
28
- Licenses : GPL
29
- Groups : None
30
- Provides : None
31
- Depends On : bash cd-discid wget vorbis-tools python2-eyed3
32
- Optional Deps : cdparanoia: Paranoia ripping support [installed]
33
- cdrkit: icedax ripping support [installed]
34
- flac: FLAC encoding support [installed]
35
- id3: ID3 v1 tag support
36
- lame: MP3 encoding support [installed]
37
- mp3gain: MP3 normalization support [installed]
38
- perl-musicbrainz-discid: musicbrainz support (AUR)
39
- perl-webservice-musicbrainz: musicbrainz support (AUR)
40
- vorbisgain: Ogg Vorbis normalization support [installed]
41
- Required By : None
42
- Optional For : None
43
- Conflicts With : None
44
- Replaces : None
45
- Installed Size : 334.00 KiB
46
- Packager : Alexander Rødseth <rodseth@gmail.com>
47
- Build Date : Wed Apr 26 02:04:21 2017
48
- Install Date : Fri May 5 15:36:23 2017
49
- Install Reason : Explicitly installed
50
- Install Script : No
51
- Validated By : Signature
@@ -1,58 +0,0 @@
1
- rubygem-chef 12.6.0_1
2
- rubygem-chef-config 12.6.0_1
3
- rubygem-chef-zero 4.4.2_1
4
- rubygem-coderay 1.1.1
5
- rubygem-diff-lcs 1.2.5_1
6
- rubygem-domain_name 0.5.24
7
- rubygem-erubis 2.7.0_1
8
- rubygem-ffi 1.9.10
9
- rubygem-ffi-yajl 2.2.3
10
- rubygem-hashie 3.4.3
11
- rubygem-hashie2 2.1.2
12
- rubygem-highline 1.7.8
13
- rubygem-http-cookie 1.0.2
14
- rubygem-ipaddress 0.8.3
15
- rubygem-json 1.8.3
16
- rubygem-json_pure 1.8.3
17
- rubygem-libyajl2 1.2.0
18
- rubygem-method_source 0.8.2
19
- rubygem-mime-types 2.99
20
- rubygem-mime-types1 1.25.1
21
- rubygem-mixlib-authentication 1.3.0
22
- rubygem-mixlib-cli 1.4.0
23
- rubygem-mixlib-config 2.1.0
24
- rubygem-mixlib-log 1.6.0
25
- rubygem-mixlib-shellout 2.2.5_1
26
- rubygem-multi_json 1.11.2
27
- rubygem-net-scp 1.2.1
28
- rubygem-net-ssh 3.0.2,2
29
- rubygem-net-ssh-gateway 1.2.0
30
- rubygem-net-ssh-multi 1.2.1
31
- rubygem-net-ssh2 2.9.2,1
32
- rubygem-net-telnet 0.1.1
33
- rubygem-netrc 0.7.7
34
- rubygem-ohai 8.8.1
35
- rubygem-plist 3.1.0
36
- rubygem-proxifier 1.0.3
37
- rubygem-pry 0.10.3_2
38
- rubygem-rack 1.4.7,3
39
- rubygem-rake 10.5.0
40
- rubygem-rest-client 1.8.0
41
- rubygem-rspec 3.4.0
42
- rubygem-rspec-core 3.4.4
43
- rubygem-rspec-expectations 3.4.0
44
- rubygem-rspec-its 1.2.0_1
45
- rubygem-rspec-mocks 3.4.1
46
- rubygem-rspec-support 3.4.1
47
- rubygem-rspec_junit_formatter 0.2.3_1
48
- rubygem-ruby-termios 0.9.6
49
- rubygem-serverspec 2.29.1_1
50
- rubygem-sfl 2.2_1
51
- rubygem-slop3 3.6.0
52
- rubygem-specinfra 2.50.2_1
53
- rubygem-syslog-logger 1.6.8
54
- rubygem-systemu 2.6.4
55
- rubygem-unf 0.1.4
56
- rubygem-unf_ext 0.0.7.1
57
- rubygem-uuidtools 2.1.5
58
- rubygem-wmi-lite 1.0.0
@@ -1,50 +0,0 @@
1
- PKGINST: mqm
2
- NAME: WebSphere MQ Client for Sun Solaris
3
- CATEGORY: application
4
- ARCH: sparcv9
5
- VERSION: 7.0.1.4
6
- BASEDIR: /
7
- VENDOR: IBM
8
- PSTAMP: src (packaged: January 14, 2011 - 11:44:27 PM)
9
- INSTDATE: Dec 22 2015 17:10
10
- VSTOCK: 5724-H72
11
- STATUS: completely installed
12
- FILES: 3303 installed pathnames
13
- 88 directories
14
- 158 executables
15
- 20 setuid/setgid executables
16
- 327903 blocks used (approx)
17
-
18
- PKGINST: vasclnt
19
- NAME: vasclnt 4.1.0.21853
20
- CATEGORY: application
21
- ARCH: sparcv9
22
- VERSION: 4.1.0.21853
23
- BASEDIR: /
24
- VENDOR: Quest Software, Inc.
25
- DESC: Quest Authentication System (QAS) provides centralized user and
26
- PSTAMP: vassol8sparc20150701013812
27
- INSTDATE: Dec 22 2015 16:58
28
- STATUS: completely installed
29
- FILES: 174 installed pathnames
30
- 9 shared pathnames
31
- 32 directories
32
- 101 executables
33
- 60402 blocks used (approx)
34
-
35
- PKGINST: vasgp
36
- NAME: vasgp 4.1.0.21853
37
- CATEGORY: application
38
- ARCH: sparcv9
39
- VERSION: 4.1.0.21853
40
- BASEDIR: /
41
- VENDOR: Quest Software, Inc.
42
- DESC: Quest Group Policy (QGP) provides Active Directory Group Policy
43
- PSTAMP: vassol8sparc20150701013859
44
- INSTDATE: Dec 22 2015 17:06
45
- STATUS: completely installed
46
- FILES: 50 installed pathnames
47
- 9 shared pathnames
48
- 18 directories
49
- 25 executables
50
- 11999 blocks used (approx)
@@ -1,24 +0,0 @@
1
- chef 12.5.1 i--
2
- compatibility/ucb 0.5.11-0.175.2.0.0.42.2 i--
3
- compress/bzip2 1.0.6-0.175.2.0.0.42.1 i--
4
- compress/gzip 1.5-0.175.2.4.0.3.0 i--
5
- compress/p7zip 9.20.1-0.175.2.0.0.42.1 i--
6
- compress/pbzip2 1.1.6-0.175.2.0.0.42.1 i--
7
- compress/pixz 1.0-0.175.2.0.0.42.1 i--
8
- compress/unzip 6.0-0.175.2.3.0.4.0 i--
9
- compress/xz 5.0.1-0.175.2.0.0.42.1 i--
10
- compress/zip 3.0-0.175.2.0.0.42.1 i--
11
- consolidation/SunVTS/SunVTS-incorporation 7.18.2-0.175.2.1.0.5.1 i--
12
- consolidation/X/X-incorporation 0.5.11-0.175.2.1.0.3.1413 i--
13
- consolidation/admin/admin-incorporation 0.5.11-0.175.1.0.0.5.0 i--
14
- consolidation/cacao/cacao-incorporation 0.5.11-0.175.2.0.0.38.0 i--
15
- consolidation/cde/cde-incorporation 0.5.11-0.175.2.0.0.23.0 i--
16
- consolidation/cns/cns-incorporation 0.5.11-0.175.2.0.0.39.0 i--
17
- consolidation/dbtg/dbtg-incorporation 0.5.11-0.175.2.0.0.38.0 i--
18
- consolidation/ddt/ddt-incorporation 8.10.15.11.23 i--
19
- consolidation/desktop/desktop-incorporation 0.5.11-0.175.2.4.0.5.0 i--
20
- consolidation/desktop/gnome-incorporation 0.5.11-0.175.2.0.0.42.0 i--
21
- consolidation/gfx/gfx-incorporation 0.5.11-0.175.1.0.0.5.0 i--
22
- consolidation/ips/ips-incorporation 0.5.11-0.175.2.3.0.3.0 i--
23
- consolidation/java-7/java-7-incorporation 1.7.0.72.14-0 i--
24
- system/EMCpower (emc.com) 6.0.0.1.0-3 i--
@@ -1,7 +0,0 @@
1
- centos-release 0 7 2.1511.el7.centos.2.10 1463486612 x86_64
2
- tzdata 0 2016d 1.el7 1463486618 noarch
3
- nss-softokn-freebl 0 3.16.2.3 14.2.el7_2 1463486619 x86_64
4
- glibc 0 2.17 106.el7_2.6 1463486666 x86_64
5
- libstdc++ 0 4.8.5 4.el7 1463486669 x86_64
6
- kernel 0 3.10.0 862.2.3.el7 1526310781 x86_64
7
- kernel 0 3.10.0 862.el7 1521745632 x86_64
@@ -1,107 +0,0 @@
1
- #
2
- # Author:: Claire McQuin <claire@chef.io>
3
- # Copyright:: Copyright (c) 2015-2016 Chef Software, Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require "spec_helper"
20
- require "ohai/application"
21
-
22
- RSpec.describe "Ohai::Application" do
23
-
24
- let(:app) { Ohai::Application.new }
25
- let(:argv) { [] }
26
- let(:stderr) { StringIO.new }
27
-
28
- before do
29
- @original_argv = ARGV.dup
30
- ARGV.replace(argv)
31
- end
32
-
33
- after do
34
- ARGV.replace(@original_argv)
35
- end
36
-
37
- describe "#configure_ohai" do
38
-
39
- let(:config_content) { "" }
40
- let(:config_dir) { Dir.mktmpdir(".chef") }
41
- let(:config_location) { File.join(config_dir, "config.rb") }
42
-
43
- before do
44
- File.open(config_location, "w+") do |f|
45
- f.write(config_content)
46
- end
47
- end
48
-
49
- after do
50
- FileUtils.rm_rf(config_dir)
51
- end
52
-
53
- context "when a configuration file is provided as a command line option" do
54
-
55
- let(:argv) { [ "-c", config_location + ".oops" ] }
56
-
57
- context "and the configuration file does not exist" do
58
-
59
- it "logs an error and terminates the application" do
60
- expect(STDERR).to receive(:puts).with(/FATAL:/)
61
- expect(Ohai::Log).to receive(:fatal)
62
- .with(/Specified config file #{argv[1]} does not exist/)
63
- expect { app.configure_ohai }.to raise_error(SystemExit)
64
- end
65
- end
66
- end
67
-
68
- context "when a workstation configuration file exists" do
69
-
70
- let(:config_content) { "ohai.disabled_plugins = [ :Foo, :Baz ]" }
71
-
72
- # env['KNIFE_HOME']/config.rb is the first config file the workstation
73
- # config loader looks for:
74
- # https://github.com/chef/chef/blob/master/chef-config/lib/chef-config/workstation_config_loader.rb#L102
75
- let(:env) { { "KNIFE_HOME" => config_dir } }
76
-
77
- before do
78
- allow_any_instance_of(ChefConfig::WorkstationConfigLoader)
79
- .to receive(:env).and_return(env)
80
- end
81
-
82
- it "loads the workstation configuration file" do
83
- app.configure_ohai
84
- expect(Ohai.config[:disabled_plugins]).to eq(%i{Foo Baz})
85
- end
86
- end
87
-
88
- context "when the configuration file has a syntax error" do
89
- # For the purpose of these tests it doesn't matter if the configuration
90
- # file was specified via command line or discovered on the local
91
- # workstation. It's easier if we pass the configuration file as a cli
92
- # argument (there's less to stub).
93
-
94
- let(:argv) { [ "-c", config_location ] }
95
-
96
- let(:config_content) { 'config_location "blaaaaa' }
97
-
98
- it "logs an error and terminates the application" do
99
- expect(STDERR).to receive(:puts).with(/FATAL:/)
100
- expect(Ohai::Log).to receive(:fatal)
101
- .with(/You have invalid ruby syntax in your config file/)
102
- expect { app.configure_ohai }.to raise_error(SystemExit)
103
- end
104
- end
105
-
106
- end
107
- end