facter 4.0.46 → 4.0.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/lib/docs/generate.rb +32 -0
  3. data/lib/docs/template.erb +34 -0
  4. data/lib/facter.rb +38 -6
  5. data/lib/facter/config.rb +32 -1
  6. data/lib/facter/custom_facts/util/collection.rb +1 -2
  7. data/lib/facter/custom_facts/util/directory_loader.rb +1 -1
  8. data/lib/facter/custom_facts/util/fact.rb +18 -1
  9. data/lib/facter/custom_facts/util/loader.rb +1 -1
  10. data/lib/facter/custom_facts/util/resolution.rb +1 -1
  11. data/lib/facter/facts/aix/interfaces.rb +1 -0
  12. data/lib/facter/facts/aix/memory/swap/available.rb +1 -1
  13. data/lib/facter/facts/aix/memory/swap/available_bytes.rb +1 -1
  14. data/lib/facter/facts/aix/memory/swap/total.rb +1 -1
  15. data/lib/facter/facts/aix/memory/swap/total_bytes.rb +1 -1
  16. data/lib/facter/facts/aix/memory/swap/used.rb +1 -1
  17. data/lib/facter/facts/aix/memory/system/available.rb +1 -1
  18. data/lib/facter/facts/aix/memory/system/available_bytes.rb +1 -1
  19. data/lib/facter/facts/aix/memory/system/total.rb +1 -1
  20. data/lib/facter/facts/aix/memory/system/total_bytes.rb +1 -1
  21. data/lib/facter/facts/aix/memory/system/used.rb +1 -1
  22. data/lib/facter/facts/aix/processors/speed.rb +1 -1
  23. data/lib/facter/facts/bsd/processors/speed.rb +1 -1
  24. data/lib/facter/facts/freebsd/is_virtual.rb +25 -0
  25. data/lib/facter/facts/freebsd/memory/swap/available.rb +1 -1
  26. data/lib/facter/facts/freebsd/memory/swap/available_bytes.rb +1 -1
  27. data/lib/facter/facts/freebsd/memory/swap/total.rb +1 -1
  28. data/lib/facter/facts/freebsd/memory/swap/total_bytes.rb +1 -1
  29. data/lib/facter/facts/freebsd/memory/swap/used.rb +1 -1
  30. data/lib/facter/facts/freebsd/memory/system/available.rb +1 -1
  31. data/lib/facter/facts/freebsd/memory/system/available_bytes.rb +1 -1
  32. data/lib/facter/facts/freebsd/memory/system/total.rb +1 -1
  33. data/lib/facter/facts/freebsd/memory/system/total_bytes.rb +1 -1
  34. data/lib/facter/facts/freebsd/memory/system/used.rb +1 -1
  35. data/lib/facter/facts/freebsd/processors/speed.rb +1 -1
  36. data/lib/facter/facts/freebsd/virtual.rb +22 -0
  37. data/lib/facter/facts/linux/dhcp_servers.rb +1 -0
  38. data/lib/facter/facts/linux/ec2_metadata.rb +1 -1
  39. data/lib/facter/facts/linux/ec2_userdata.rb +1 -1
  40. data/lib/facter/facts/linux/hypervisors/kvm.rb +1 -1
  41. data/lib/facter/facts/linux/hypervisors/xen.rb +1 -1
  42. data/lib/facter/facts/linux/interfaces.rb +1 -0
  43. data/lib/facter/facts/linux/is_virtual.rb +2 -2
  44. data/lib/facter/facts/linux/memory/swap/available.rb +1 -1
  45. data/lib/facter/facts/linux/memory/swap/available_bytes.rb +1 -1
  46. data/lib/facter/facts/linux/memory/swap/total.rb +1 -1
  47. data/lib/facter/facts/linux/memory/swap/total_bytes.rb +1 -1
  48. data/lib/facter/facts/linux/memory/swap/used.rb +1 -1
  49. data/lib/facter/facts/linux/memory/system/available.rb +1 -1
  50. data/lib/facter/facts/linux/memory/system/available_bytes.rb +1 -1
  51. data/lib/facter/facts/linux/memory/system/total.rb +1 -1
  52. data/lib/facter/facts/linux/memory/system/total_bytes.rb +1 -1
  53. data/lib/facter/facts/linux/memory/system/used.rb +1 -1
  54. data/lib/facter/facts/linux/processors/speed.rb +1 -1
  55. data/lib/facter/facts/linux/virtual.rb +1 -1
  56. data/lib/facter/facts/macosx/dhcp_servers.rb +1 -0
  57. data/lib/facter/facts/macosx/interfaces.rb +1 -0
  58. data/lib/facter/facts/macosx/memory/swap/available.rb +1 -1
  59. data/lib/facter/facts/macosx/memory/swap/available_bytes.rb +1 -1
  60. data/lib/facter/facts/macosx/memory/swap/total.rb +1 -1
  61. data/lib/facter/facts/macosx/memory/swap/total_bytes.rb +1 -1
  62. data/lib/facter/facts/macosx/memory/swap/used.rb +1 -1
  63. data/lib/facter/facts/macosx/memory/system/available.rb +1 -1
  64. data/lib/facter/facts/macosx/memory/system/available_bytes.rb +1 -1
  65. data/lib/facter/facts/macosx/memory/system/total.rb +1 -1
  66. data/lib/facter/facts/macosx/memory/system/total_bytes.rb +1 -1
  67. data/lib/facter/facts/macosx/memory/system/used.rb +1 -1
  68. data/lib/facter/facts/macosx/processors/speed.rb +1 -1
  69. data/lib/facter/facts/solaris/dhcp_servers.rb +1 -0
  70. data/lib/facter/facts/solaris/interfaces.rb +1 -0
  71. data/lib/facter/facts/solaris/is_virtual.rb +2 -2
  72. data/lib/facter/facts/solaris/ldom.rb +31 -4
  73. data/lib/facter/facts/solaris/memory/swap/available.rb +1 -1
  74. data/lib/facter/facts/solaris/memory/swap/available_bytes.rb +1 -1
  75. data/lib/facter/facts/solaris/memory/swap/total.rb +1 -1
  76. data/lib/facter/facts/solaris/memory/swap/total_bytes.rb +1 -1
  77. data/lib/facter/facts/solaris/memory/swap/used.rb +1 -1
  78. data/lib/facter/facts/solaris/memory/system/available.rb +1 -1
  79. data/lib/facter/facts/solaris/memory/system/available_bytes.rb +1 -1
  80. data/lib/facter/facts/solaris/memory/system/total.rb +1 -1
  81. data/lib/facter/facts/solaris/memory/system/total_bytes.rb +1 -1
  82. data/lib/facter/facts/solaris/memory/system/used.rb +1 -1
  83. data/lib/facter/facts/solaris/processors/speed.rb +1 -1
  84. data/lib/facter/facts/solaris/virtual.rb +1 -1
  85. data/lib/facter/facts/windows/dhcp_servers.rb +1 -0
  86. data/lib/facter/facts/windows/interfaces.rb +1 -0
  87. data/lib/facter/facts/windows/memory/system/available.rb +1 -1
  88. data/lib/facter/facts/windows/memory/system/available_bytes.rb +1 -1
  89. data/lib/facter/facts/windows/memory/system/total.rb +1 -1
  90. data/lib/facter/facts/windows/memory/system/total_bytes.rb +1 -1
  91. data/lib/facter/facts/windows/memory/system/used.rb +1 -1
  92. data/lib/facter/facts/windows/os/release.rb +1 -1
  93. data/lib/facter/framework/cli/cli.rb +1 -1
  94. data/lib/facter/framework/core/cache_manager.rb +1 -1
  95. data/lib/facter/framework/core/fact_loaders/external_fact_loader.rb +4 -2
  96. data/lib/facter/framework/core/fact_loaders/fact_loader.rb +16 -0
  97. data/lib/facter/framework/core/fact_manager.rb +14 -2
  98. data/lib/facter/framework/core/file_loader.rb +6 -2
  99. data/lib/facter/framework/core/options/option_store.rb +2 -2
  100. data/lib/facter/framework/logging/logger.rb +3 -3
  101. data/lib/facter/models/fact_collection.rb +11 -1
  102. data/lib/facter/models/loaded_fact.rb +2 -1
  103. data/lib/facter/resolvers/aio_agent_version.rb +1 -1
  104. data/lib/facter/resolvers/aix/architecture_resolver.rb +3 -3
  105. data/lib/facter/resolvers/aix/disks.rb +4 -4
  106. data/lib/facter/resolvers/aix/filesystem_resolver.rb +1 -1
  107. data/lib/facter/resolvers/aix/hardware_resolver.rb +2 -2
  108. data/lib/facter/resolvers/aix/memory.rb +2 -2
  109. data/lib/facter/resolvers/aix/mountpoints.rb +4 -4
  110. data/lib/facter/resolvers/aix/networking_resolver.rb +3 -2
  111. data/lib/facter/resolvers/aix/partitions.rb +5 -5
  112. data/lib/facter/resolvers/aix/processors.rb +3 -3
  113. data/lib/facter/resolvers/aix/serialnumber.rb +1 -1
  114. data/lib/facter/resolvers/base_resolver.rb +3 -0
  115. data/lib/facter/resolvers/cloud.rb +1 -1
  116. data/lib/facter/resolvers/containers.rb +3 -3
  117. data/lib/facter/resolvers/debian_version.rb +1 -1
  118. data/lib/facter/resolvers/disk_resolver.rb +2 -2
  119. data/lib/facter/resolvers/dmi_resolver.rb +1 -1
  120. data/lib/facter/resolvers/ec2.rb +3 -1
  121. data/lib/facter/resolvers/eos_release_resolver.rb +1 -1
  122. data/lib/facter/resolvers/filesystems_resolver.rb +1 -1
  123. data/lib/facter/resolvers/fips_enabled_resolver.rb +1 -1
  124. data/lib/facter/resolvers/freebsd/geom_resolver.rb +1 -1
  125. data/lib/facter/resolvers/freebsd/swap_memory_resolver.rb +3 -2
  126. data/lib/facter/resolvers/freebsd/system_memory_resolver.rb +2 -1
  127. data/lib/facter/resolvers/freebsd/virtual_resolver.rb +45 -0
  128. data/lib/facter/resolvers/gce.rb +1 -1
  129. data/lib/facter/resolvers/hostname_resolver.rb +67 -20
  130. data/lib/facter/resolvers/linux/docker_uptime.rb +1 -1
  131. data/lib/facter/resolvers/linux/load_averages.rb +1 -1
  132. data/lib/facter/resolvers/load_averages.rb +3 -2
  133. data/lib/facter/resolvers/macosx/mountpoints_resolver.rb +7 -7
  134. data/lib/facter/resolvers/macosx/system_profiler_resolver.rb +3 -3
  135. data/lib/facter/resolvers/memory_resolver.rb +1 -1
  136. data/lib/facter/resolvers/mountpoints_resolver.rb +8 -8
  137. data/lib/facter/resolvers/networking_linux_resolver.rb +183 -85
  138. data/lib/facter/resolvers/networking_resolver.rb +8 -5
  139. data/lib/facter/resolvers/open_vz.rb +1 -3
  140. data/lib/facter/resolvers/os_release_resolver.rb +1 -1
  141. data/lib/facter/resolvers/partitions.rb +5 -5
  142. data/lib/facter/resolvers/processors_resolver.rb +2 -2
  143. data/lib/facter/resolvers/redhat_release_resolver.rb +1 -1
  144. data/lib/facter/resolvers/selinux_resolver.rb +3 -3
  145. data/lib/facter/resolvers/solaris/disks.rb +1 -1
  146. data/lib/facter/resolvers/solaris/memory.rb +2 -2
  147. data/lib/facter/resolvers/solaris/mountpoints.rb +11 -10
  148. data/lib/facter/resolvers/solaris/networking.rb +49 -41
  149. data/lib/facter/resolvers/solaris/os_release.rb +1 -1
  150. data/lib/facter/resolvers/ssh_resolver.rb +3 -2
  151. data/lib/facter/resolvers/suse_release_resolver.rb +1 -1
  152. data/lib/facter/resolvers/uptime_resolver.rb +2 -2
  153. data/lib/facter/resolvers/windows/aio_agent_version.rb +1 -1
  154. data/lib/facter/resolvers/windows/dmi_bios_resolver.rb +1 -1
  155. data/lib/facter/resolvers/windows/dmi_computersystem_resolver.rb +1 -1
  156. data/lib/facter/resolvers/windows/memory_resolver.rb +4 -0
  157. data/lib/facter/resolvers/windows/networking_resolver.rb +3 -3
  158. data/lib/facter/resolvers/windows/processors_resolver.rb +1 -1
  159. data/lib/facter/resolvers/windows/ssh.rb +2 -2
  160. data/lib/facter/resolvers/windows/uptime_resolver.rb +1 -1
  161. data/lib/facter/resolvers/windows/virtualization_resolver.rb +1 -1
  162. data/lib/facter/resolvers/windows/win_os_description_resolver.rb +1 -1
  163. data/lib/facter/resolvers/xen.rb +1 -1
  164. data/lib/facter/util/aix/info_extractor.rb +24 -0
  165. data/lib/facter/util/aix/odm_query.rb +46 -0
  166. data/lib/facter/util/api_debugger.rb +33 -29
  167. data/lib/facter/util/facts/facts_utils.rb +14 -0
  168. data/lib/facter/util/facts/unit_converter.rb +61 -0
  169. data/lib/facter/util/facts/uptime_parser.rb +128 -0
  170. data/lib/facter/util/facts/virtual_detector.rb +90 -0
  171. data/lib/facter/util/facts/windows_release_finder.rb +55 -0
  172. data/lib/facter/{resolvers/macosx/utils → util/macosx}/system_profile_executor.rb +1 -1
  173. data/lib/facter/util/resolvers/aws_token.rb +37 -0
  174. data/lib/facter/{resolvers/utils → util/resolvers}/ffi/load_averages.rb +2 -2
  175. data/lib/facter/util/resolvers/filesystem_helper.rb +47 -0
  176. data/lib/facter/util/resolvers/fingerprint.rb +15 -0
  177. data/lib/facter/{resolvers/utils → util/resolvers}/http.rb +17 -10
  178. data/lib/facter/util/resolvers/networking.rb +90 -0
  179. data/lib/facter/util/resolvers/networking/dhcp.rb +21 -0
  180. data/lib/facter/util/resolvers/networking/networking.rb +109 -0
  181. data/lib/facter/util/resolvers/networking/primary_interface.rb +82 -0
  182. data/lib/facter/util/resolvers/ssh.rb +17 -0
  183. data/lib/facter/util/resolvers/ssh_helper.rb +31 -0
  184. data/lib/facter/{resolvers/utils → util/resolvers}/uptime_helper.rb +2 -2
  185. data/lib/facter/{framework/utils → util}/utils.rb +0 -0
  186. data/lib/facter/util/windows/win32ole.rb +30 -0
  187. data/lib/facter/version.rb +1 -1
  188. metadata +29 -41
  189. data/lib/facter/facts/aix/puppet_version.rb +0 -15
  190. data/lib/facter/facts/freebsd/puppet_version.rb +0 -15
  191. data/lib/facter/facts/linux/puppet_version.rb +0 -15
  192. data/lib/facter/facts/macosx/puppet_version.rb +0 -15
  193. data/lib/facter/facts/solaris/puppet_version.rb +0 -15
  194. data/lib/facter/facts/windows/puppet_version.rb +0 -15
  195. data/lib/facter/facts_utils/facts_utils.rb +0 -12
  196. data/lib/facter/facts_utils/unit_converter.rb +0 -59
  197. data/lib/facter/facts_utils/uptime_parser.rb +0 -124
  198. data/lib/facter/facts_utils/virtual_detector.rb +0 -78
  199. data/lib/facter/facts_utils/windows_release_finder.rb +0 -51
  200. data/lib/facter/resolvers/aix/utils/info_extractor.rb +0 -20
  201. data/lib/facter/resolvers/aix/utils/odm_query.rb +0 -42
  202. data/lib/facter/resolvers/puppet_version_resolver.rb +0 -26
  203. data/lib/facter/resolvers/utils/filesystem_helper.rb +0 -43
  204. data/lib/facter/resolvers/utils/fingerprint.rb +0 -11
  205. data/lib/facter/resolvers/utils/networking.rb +0 -88
  206. data/lib/facter/resolvers/utils/ssh.rb +0 -13
  207. data/lib/facter/resolvers/utils/ssh_helper.rb +0 -27
  208. data/lib/facter/resolvers/windows/utils/win32ole.rb +0 -24
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Facter
4
+ module Util
5
+ module Resolvers
6
+ module Networking
7
+ module PrimaryInterface
8
+ @log ||= Log.new(self)
9
+
10
+ class << self
11
+ ROUTE_TABLE_MAPPING = {
12
+ 'Iface' => 0,
13
+ 'Destination' => 1,
14
+ 'Gateway' => 2,
15
+ 'Flags' => 3,
16
+ 'RefCnt' => 4,
17
+ 'Use' => 5,
18
+ 'Metric' => 6,
19
+ 'Mask' => 7,
20
+ 'MTU' => 8,
21
+ 'Window' => 9,
22
+ 'IRTT' => 10
23
+ }.freeze
24
+
25
+ def read_from_route
26
+ return if Facter::Core::Execution.which('route').nil?
27
+
28
+ result = Facter::Core::Execution.execute('route -n get default', logger: @log)
29
+
30
+ result.match(/interface: (.+)/)&.captures&.first
31
+ end
32
+
33
+ def read_from_proc_route
34
+ content = Facter::Util::FileHelper.safe_read('/proc/net/route', '')
35
+
36
+ content.each_line.with_index do |line, index|
37
+ next if index.zero?
38
+
39
+ route = line.strip.split("\t")
40
+ if route.count > 7 &&
41
+ route[ROUTE_TABLE_MAPPING['Destination']] == '00000000' &&
42
+ route[ROUTE_TABLE_MAPPING['Mask']] == '00000000'
43
+ return route[ROUTE_TABLE_MAPPING['Iface']]
44
+ end
45
+ end
46
+
47
+ nil
48
+ end
49
+
50
+ def read_from_ip_route
51
+ return if Facter::Core::Execution.which('ip').nil?
52
+
53
+ output = Facter::Core::Execution.execute('ip route show default', logger: @log)
54
+ primary_interface = nil
55
+ output.each_line do |line|
56
+ primary_interface = line.strip.split(' ')[4] if line.start_with?('default')
57
+ end
58
+
59
+ primary_interface
60
+ end
61
+
62
+ def find_in_interfaces(interfaces)
63
+ interfaces.each do |iface_name, interface|
64
+ interface[:bindings]&.each do |binding|
65
+ return iface_name unless Facter::Util::Resolvers::Networking.ignored_ip_address(binding[:address])
66
+ end
67
+
68
+ next unless interface[:bindings6]
69
+
70
+ interface[:bindings6].each do |binding|
71
+ return iface_name unless Facter::Util::Resolvers::Networking.ignored_ip_address(binding[:address])
72
+ end
73
+ end
74
+
75
+ nil
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Facter
4
+ module Util
5
+ module Resolvers
6
+ class Ssh
7
+ attr_accessor :fingerprint, :type, :key, :name
8
+ def initialize(fingerprint, type, key, name)
9
+ @fingerprint = fingerprint
10
+ @type = type
11
+ @key = key
12
+ @name = name
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'base64'
4
+ require 'digest/sha1'
5
+
6
+ module Facter
7
+ module Util
8
+ module Resolvers
9
+ class SshHelper
10
+ class << self
11
+ SSH_NAME = { 'ssh-dss' => 'dsa', 'ecdsa-sha2-nistp256' => 'ecdsa',
12
+ 'ssh-ed25519' => 'ed25519', 'ssh-rsa' => 'rsa' }.freeze
13
+ SSH_FINGERPRINT = { 'rsa' => 1, 'dsa' => 2, 'ecdsa' => 3, 'ed25519' => 4 }.freeze
14
+
15
+ def create_ssh(key_type, key)
16
+ key_name = SSH_NAME[key_type]
17
+ return unless key_name
18
+
19
+ decoded_key = Base64.decode64(key)
20
+ ssh_fp = SSH_FINGERPRINT[key_name]
21
+ sha1 = "SSHFP #{ssh_fp} 1 #{Digest::SHA1.new.update(decoded_key)}"
22
+ sha256 = "SSHFP #{ssh_fp} 2 #{Digest::SHA2.new.update(decoded_key)}"
23
+
24
+ fingerprint = Facter::Util::Resolvers::FingerPrint.new(sha1, sha256)
25
+ Facter::Util::Resolvers::Ssh.new(fingerprint, key_type, key, key_name)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Facter
4
- module Resolvers
5
- module Utils
4
+ module Util
5
+ module Resolvers
6
6
  module UptimeHelper
7
7
  class << self
8
8
  def create_uptime_hash(seconds)
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'win32ole'
4
+
5
+ module Facter
6
+ module Util
7
+ module Windows
8
+ class Win32Ole
9
+ RPC_C_IMP_LEVEL_IMPERSONATE = 3
10
+
11
+ def initialize
12
+ locator = WIN32OLE.new('WbemScripting.SWbemLocator')
13
+ @conn = locator.ConnectServer('.', 'root\\cimv2')
14
+ @conn.Security_.ImpersonationLevel = RPC_C_IMP_LEVEL_IMPERSONATE
15
+ end
16
+
17
+ def return_first(query)
18
+ result = exec_query(query)
19
+ return result.to_enum.first if result
20
+
21
+ nil
22
+ end
23
+
24
+ def exec_query(query)
25
+ @conn.execquery(query)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Facter
4
- VERSION = '4.0.46' unless defined?(VERSION)
4
+ VERSION = '4.0.47' unless defined?(VERSION)
5
5
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.46
4
+ version: 4.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-13 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: coveralls
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -179,6 +165,8 @@ extensions: []
179
165
  extra_rdoc_files: []
180
166
  files:
181
167
  - bin/facter
168
+ - lib/docs/generate.rb
169
+ - lib/docs/template.erb
182
170
  - lib/facter.rb
183
171
  - lib/facter/config.rb
184
172
  - lib/facter/custom_facts/core/aggregate.rb
@@ -274,7 +262,6 @@ files:
274
262
  - lib/facter/facts/aix/processors/isa.rb
275
263
  - lib/facter/facts/aix/processors/models.rb
276
264
  - lib/facter/facts/aix/processors/speed.rb
277
- - lib/facter/facts/aix/puppet_version.rb
278
265
  - lib/facter/facts/aix/ruby/platform.rb
279
266
  - lib/facter/facts/aix/ruby/sitedir.rb
280
267
  - lib/facter/facts/aix/ruby/version.rb
@@ -319,6 +306,7 @@ files:
319
306
  - lib/facter/facts/freebsd/identity/privileged.rb
320
307
  - lib/facter/facts/freebsd/identity/uid.rb
321
308
  - lib/facter/facts/freebsd/identity/user.rb
309
+ - lib/facter/facts/freebsd/is_virtual.rb
322
310
  - lib/facter/facts/freebsd/kernel.rb
323
311
  - lib/facter/facts/freebsd/kernelrelease.rb
324
312
  - lib/facter/facts/freebsd/memory/swap/available.rb
@@ -366,7 +354,6 @@ files:
366
354
  - lib/facter/facts/freebsd/processors/isa.rb
367
355
  - lib/facter/facts/freebsd/processors/models.rb
368
356
  - lib/facter/facts/freebsd/processors/speed.rb
369
- - lib/facter/facts/freebsd/puppet_version.rb
370
357
  - lib/facter/facts/freebsd/ruby/platform.rb
371
358
  - lib/facter/facts/freebsd/ruby/sitedir.rb
372
359
  - lib/facter/facts/freebsd/ruby/version.rb
@@ -378,6 +365,7 @@ files:
378
365
  - lib/facter/facts/freebsd/system_uptime/seconds.rb
379
366
  - lib/facter/facts/freebsd/system_uptime/uptime.rb
380
367
  - lib/facter/facts/freebsd/timezone.rb
368
+ - lib/facter/facts/freebsd/virtual.rb
381
369
  - lib/facter/facts/freebsd/zfs_featurenumbers.rb
382
370
  - lib/facter/facts/freebsd/zfs_version.rb
383
371
  - lib/facter/facts/freebsd/zpool_featureflags.rb
@@ -491,7 +479,6 @@ files:
491
479
  - lib/facter/facts/linux/processors/models.rb
492
480
  - lib/facter/facts/linux/processors/physicalcount.rb
493
481
  - lib/facter/facts/linux/processors/speed.rb
494
- - lib/facter/facts/linux/puppet_version.rb
495
482
  - lib/facter/facts/linux/ruby/platform.rb
496
483
  - lib/facter/facts/linux/ruby/sitedir.rb
497
484
  - lib/facter/facts/linux/ruby/version.rb
@@ -577,7 +564,6 @@ files:
577
564
  - lib/facter/facts/macosx/processors/models.rb
578
565
  - lib/facter/facts/macosx/processors/physicalcount.rb
579
566
  - lib/facter/facts/macosx/processors/speed.rb
580
- - lib/facter/facts/macosx/puppet_version.rb
581
567
  - lib/facter/facts/macosx/ruby/platform.rb
582
568
  - lib/facter/facts/macosx/ruby/sitedir.rb
583
569
  - lib/facter/facts/macosx/ruby/version.rb
@@ -704,7 +690,6 @@ files:
704
690
  - lib/facter/facts/solaris/processors/models.rb
705
691
  - lib/facter/facts/solaris/processors/physicalcount.rb
706
692
  - lib/facter/facts/solaris/processors/speed.rb
707
- - lib/facter/facts/solaris/puppet_version.rb
708
693
  - lib/facter/facts/solaris/ruby/platform.rb
709
694
  - lib/facter/facts/solaris/ruby/sitedir.rb
710
695
  - lib/facter/facts/solaris/ruby/version.rb
@@ -796,7 +781,6 @@ files:
796
781
  - lib/facter/facts/windows/processors/isa.rb
797
782
  - lib/facter/facts/windows/processors/models.rb
798
783
  - lib/facter/facts/windows/processors/physicalcount.rb
799
- - lib/facter/facts/windows/puppet_version.rb
800
784
  - lib/facter/facts/windows/ruby/platform.rb
801
785
  - lib/facter/facts/windows/ruby/sitedir.rb
802
786
  - lib/facter/facts/windows/ruby/version.rb
@@ -811,11 +795,6 @@ files:
811
795
  - lib/facter/facts/windows/timezone.rb
812
796
  - lib/facter/facts/windows/virtualization/is_virtual.rb
813
797
  - lib/facter/facts/windows/virtualization/virtual.rb
814
- - lib/facter/facts_utils/facts_utils.rb
815
- - lib/facter/facts_utils/unit_converter.rb
816
- - lib/facter/facts_utils/uptime_parser.rb
817
- - lib/facter/facts_utils/virtual_detector.rb
818
- - lib/facter/facts_utils/windows_release_finder.rb
819
798
  - lib/facter/framework/benchmarking/timer.rb
820
799
  - lib/facter/framework/cli/cli.rb
821
800
  - lib/facter/framework/cli/cli_launcher.rb
@@ -849,7 +828,6 @@ files:
849
828
  - lib/facter/framework/logging/logger.rb
850
829
  - lib/facter/framework/logging/logger_helper.rb
851
830
  - lib/facter/framework/parsers/query_parser.rb
852
- - lib/facter/framework/utils/utils.rb
853
831
  - lib/facter/models/fact_collection.rb
854
832
  - lib/facter/models/loaded_fact.rb
855
833
  - lib/facter/models/resolved_fact.rb
@@ -870,8 +848,6 @@ files:
870
848
  - lib/facter/resolvers/aix/partitions.rb
871
849
  - lib/facter/resolvers/aix/processors.rb
872
850
  - lib/facter/resolvers/aix/serialnumber.rb
873
- - lib/facter/resolvers/aix/utils/info_extractor.rb
874
- - lib/facter/resolvers/aix/utils/odm_query.rb
875
851
  - lib/facter/resolvers/augeas_resolver.rb
876
852
  - lib/facter/resolvers/base_resolver.rb
877
853
  - lib/facter/resolvers/bsd/ffi/ffi_helper.rb
@@ -894,6 +870,7 @@ files:
894
870
  - lib/facter/resolvers/freebsd/processors.rb
895
871
  - lib/facter/resolvers/freebsd/swap_memory_resolver.rb
896
872
  - lib/facter/resolvers/freebsd/system_memory_resolver.rb
873
+ - lib/facter/resolvers/freebsd/virtual_resolver.rb
897
874
  - lib/facter/resolvers/gce.rb
898
875
  - lib/facter/resolvers/hostname_resolver.rb
899
876
  - lib/facter/resolvers/identity_resolver.rb
@@ -911,7 +888,6 @@ files:
911
888
  - lib/facter/resolvers/macosx/swap_memory_resolver.rb
912
889
  - lib/facter/resolvers/macosx/system_memory_resolver.rb
913
890
  - lib/facter/resolvers/macosx/system_profiler_resolver.rb
914
- - lib/facter/resolvers/macosx/utils/system_profile_executor.rb
915
891
  - lib/facter/resolvers/memory_resolver.rb
916
892
  - lib/facter/resolvers/mountpoints_resolver.rb
917
893
  - lib/facter/resolvers/networking_linux_resolver.rb
@@ -921,7 +897,6 @@ files:
921
897
  - lib/facter/resolvers/partitions.rb
922
898
  - lib/facter/resolvers/path_resolver.rb
923
899
  - lib/facter/resolvers/processors_resolver.rb
924
- - lib/facter/resolvers/puppet_version_resolver.rb
925
900
  - lib/facter/resolvers/redhat_release_resolver.rb
926
901
  - lib/facter/resolvers/ruby_resolver.rb
927
902
  - lib/facter/resolvers/selinux_resolver.rb
@@ -947,14 +922,6 @@ files:
947
922
  - lib/facter/resolvers/timezone_resolver.rb
948
923
  - lib/facter/resolvers/uname_resolver.rb
949
924
  - lib/facter/resolvers/uptime_resolver.rb
950
- - lib/facter/resolvers/utils/ffi/load_averages.rb
951
- - lib/facter/resolvers/utils/filesystem_helper.rb
952
- - lib/facter/resolvers/utils/fingerprint.rb
953
- - lib/facter/resolvers/utils/http.rb
954
- - lib/facter/resolvers/utils/networking.rb
955
- - lib/facter/resolvers/utils/ssh.rb
956
- - lib/facter/resolvers/utils/ssh_helper.rb
957
- - lib/facter/resolvers/utils/uptime_helper.rb
958
925
  - lib/facter/resolvers/virt_what.rb
959
926
  - lib/facter/resolvers/vmware.rb
960
927
  - lib/facter/resolvers/windows/aio_agent_version.rb
@@ -984,7 +951,6 @@ files:
984
951
  - lib/facter/resolvers/windows/ssh.rb
985
952
  - lib/facter/resolvers/windows/system32_resolver.rb
986
953
  - lib/facter/resolvers/windows/uptime_resolver.rb
987
- - lib/facter/resolvers/windows/utils/win32ole.rb
988
954
  - lib/facter/resolvers/windows/virtualization_resolver.rb
989
955
  - lib/facter/resolvers/windows/win_os_description_resolver.rb
990
956
  - lib/facter/resolvers/wpar_resolver.rb
@@ -992,8 +958,30 @@ files:
992
958
  - lib/facter/resolvers/zfs.rb
993
959
  - lib/facter/resolvers/zpool.rb
994
960
  - lib/facter/templates/man.erb
961
+ - lib/facter/util/aix/info_extractor.rb
962
+ - lib/facter/util/aix/odm_query.rb
995
963
  - lib/facter/util/api_debugger.rb
964
+ - lib/facter/util/facts/facts_utils.rb
965
+ - lib/facter/util/facts/unit_converter.rb
966
+ - lib/facter/util/facts/uptime_parser.rb
967
+ - lib/facter/util/facts/virtual_detector.rb
968
+ - lib/facter/util/facts/windows_release_finder.rb
996
969
  - lib/facter/util/file_helper.rb
970
+ - lib/facter/util/macosx/system_profile_executor.rb
971
+ - lib/facter/util/resolvers/aws_token.rb
972
+ - lib/facter/util/resolvers/ffi/load_averages.rb
973
+ - lib/facter/util/resolvers/filesystem_helper.rb
974
+ - lib/facter/util/resolvers/fingerprint.rb
975
+ - lib/facter/util/resolvers/http.rb
976
+ - lib/facter/util/resolvers/networking.rb
977
+ - lib/facter/util/resolvers/networking/dhcp.rb
978
+ - lib/facter/util/resolvers/networking/networking.rb
979
+ - lib/facter/util/resolvers/networking/primary_interface.rb
980
+ - lib/facter/util/resolvers/ssh.rb
981
+ - lib/facter/util/resolvers/ssh_helper.rb
982
+ - lib/facter/util/resolvers/uptime_helper.rb
983
+ - lib/facter/util/utils.rb
984
+ - lib/facter/util/windows/win32ole.rb
997
985
  - lib/facter/version.rb
998
986
  homepage:
999
987
  licenses:
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Facts
4
- module Aix
5
- class PuppetVersion
6
- FACT_NAME = 'puppetversion'
7
-
8
- def call_the_resolver
9
- fact_value = Facter::Resolvers::PuppetVersionResolver.resolve(:puppetversion)
10
-
11
- Facter::ResolvedFact.new(FACT_NAME, fact_value)
12
- end
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Facts
4
- module Freebsd
5
- class PuppetVersion
6
- FACT_NAME = 'puppetversion'
7
-
8
- def call_the_resolver
9
- fact_value = Facter::Resolvers::PuppetVersionResolver.resolve(:puppetversion)
10
-
11
- Facter::ResolvedFact.new(FACT_NAME, fact_value)
12
- end
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Facts
4
- module Linux
5
- class PuppetVersion
6
- FACT_NAME = 'puppetversion'
7
-
8
- def call_the_resolver
9
- fact_value = Facter::Resolvers::PuppetVersionResolver.resolve(:puppetversion)
10
-
11
- Facter::ResolvedFact.new(FACT_NAME, fact_value)
12
- end
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Facts
4
- module Macosx
5
- class PuppetVersion
6
- FACT_NAME = 'puppetversion'
7
-
8
- def call_the_resolver
9
- fact_value = Facter::Resolvers::PuppetVersionResolver.resolve(:puppetversion)
10
-
11
- Facter::ResolvedFact.new(FACT_NAME, fact_value)
12
- end
13
- end
14
- end
15
- end