facter 4.0.47 → 4.0.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/lib/docs/generate_cli.rb +7 -0
  3. data/lib/facter.rb +76 -43
  4. data/lib/facter/config.rb +21 -9
  5. data/lib/facter/custom_facts/core/aggregate.rb +16 -0
  6. data/lib/facter/custom_facts/core/execution/base.rb +3 -2
  7. data/lib/facter/custom_facts/core/execution/popen3.rb +47 -0
  8. data/lib/facter/custom_facts/core/resolvable.rb +11 -0
  9. data/lib/facter/custom_facts/util/fact.rb +22 -3
  10. data/lib/facter/custom_facts/util/resolution.rb +3 -1
  11. data/lib/facter/facts/aix/disks.rb +1 -1
  12. data/lib/facter/facts/aix/ssh.rb +1 -1
  13. data/lib/facter/facts/aix/sshalgorithmkey.rb +1 -1
  14. data/lib/facter/facts/aix/sshfp_algorithm.rb +1 -1
  15. data/lib/facter/facts/alpine/os/release.rb +29 -0
  16. data/lib/facter/facts/amzn/lsbdistcodename.rb +16 -0
  17. data/lib/facter/facts/amzn/lsbdistdescription.rb +16 -0
  18. data/lib/facter/facts/amzn/lsbdistid.rb +16 -0
  19. data/lib/facter/facts/amzn/os/distro/codename.rb +24 -0
  20. data/lib/facter/facts/amzn/os/distro/description.rb +21 -0
  21. data/lib/facter/facts/amzn/os/distro/id.rb +21 -0
  22. data/lib/facter/facts/amzn/os/distro/release.rb +32 -0
  23. data/lib/facter/facts/amzn/os/release.rb +29 -0
  24. data/lib/facter/facts/devuan/os/distro/release.rb +36 -0
  25. data/lib/facter/facts/devuan/os/release.rb +29 -0
  26. data/lib/facter/facts/freebsd/ssh.rb +1 -1
  27. data/lib/facter/facts/freebsd/sshalgorithmkey.rb +1 -1
  28. data/lib/facter/facts/freebsd/sshfp_algorithm.rb +1 -1
  29. data/lib/facter/facts/gentoo/os/release.rb +29 -0
  30. data/lib/facter/facts/linux/az_metadata.rb +27 -0
  31. data/lib/facter/facts/linux/cloud/provider.rb +17 -0
  32. data/lib/facter/facts/linux/dhcp_servers.rb +2 -2
  33. data/lib/facter/facts/linux/disks.rb +1 -1
  34. data/lib/facter/facts/linux/interfaces.rb +1 -1
  35. data/lib/facter/facts/linux/ipaddress6_interfaces.rb +1 -1
  36. data/lib/facter/facts/linux/ipaddress_interfaces.rb +1 -1
  37. data/lib/facter/facts/linux/macaddress_interfaces.rb +1 -1
  38. data/lib/facter/facts/linux/mtu_interfaces.rb +1 -1
  39. data/lib/facter/facts/linux/netmask6_interfaces.rb +1 -1
  40. data/lib/facter/facts/linux/netmask_interfaces.rb +1 -1
  41. data/lib/facter/facts/linux/network6_interfaces.rb +1 -1
  42. data/lib/facter/facts/linux/network_interfaces.rb +1 -1
  43. data/lib/facter/facts/linux/networking/dhcp.rb +1 -1
  44. data/lib/facter/facts/linux/networking/domain.rb +1 -1
  45. data/lib/facter/facts/linux/networking/fqdn.rb +1 -1
  46. data/lib/facter/facts/linux/networking/hostname.rb +1 -1
  47. data/lib/facter/facts/linux/networking/interfaces.rb +1 -1
  48. data/lib/facter/facts/linux/networking/ip.rb +1 -1
  49. data/lib/facter/facts/linux/networking/ip6.rb +1 -1
  50. data/lib/facter/facts/linux/networking/mac.rb +1 -1
  51. data/lib/facter/facts/linux/networking/mtu.rb +1 -1
  52. data/lib/facter/facts/linux/networking/netmask.rb +1 -1
  53. data/lib/facter/facts/linux/networking/netmask6.rb +1 -1
  54. data/lib/facter/facts/linux/networking/network.rb +1 -1
  55. data/lib/facter/facts/linux/networking/network6.rb +1 -1
  56. data/lib/facter/facts/linux/networking/primary.rb +1 -1
  57. data/lib/facter/facts/linux/networking/scope6.rb +1 -1
  58. data/lib/facter/facts/linux/os/family.rb +4 -2
  59. data/lib/facter/facts/linux/scope6_interfaces.rb +1 -1
  60. data/lib/facter/facts/linux/ssh.rb +1 -1
  61. data/lib/facter/facts/linux/sshalgorithmkey.rb +1 -1
  62. data/lib/facter/facts/linux/sshfp_algorithm.rb +1 -1
  63. data/lib/facter/facts/linuxmint/os/name.rb +18 -0
  64. data/lib/facter/facts/linuxmint/os/release.rb +35 -0
  65. data/lib/facter/facts/macosx/ssh.rb +1 -1
  66. data/lib/facter/facts/macosx/sshalgorithmkey.rb +1 -1
  67. data/lib/facter/facts/macosx/sshfp_algorithm.rb +1 -1
  68. data/lib/facter/facts/mageia/os/release.rb +36 -0
  69. data/lib/facter/facts/meego/os/release.rb +29 -0
  70. data/lib/facter/facts/oel/os/release.rb +29 -0
  71. data/lib/facter/facts/ol/os/release.rb +29 -0
  72. data/lib/facter/facts/openwrt/os/release.rb +35 -0
  73. data/lib/facter/facts/ovs/os/release.rb +29 -0
  74. data/lib/facter/facts/photon/os/release.rb +45 -0
  75. data/lib/facter/facts/rhel/lsbdistcodename.rb +16 -0
  76. data/lib/facter/facts/rhel/lsbdistdescription.rb +16 -0
  77. data/lib/facter/facts/rhel/lsbdistid.rb +16 -0
  78. data/lib/facter/facts/rhel/os/distro/codename.rb +2 -4
  79. data/lib/facter/facts/rhel/os/distro/description.rb +2 -4
  80. data/lib/facter/facts/rhel/os/distro/id.rb +2 -4
  81. data/lib/facter/facts/rhel/os/distro/release.rb +13 -12
  82. data/lib/facter/facts/rhel/os/release.rb +1 -8
  83. data/lib/facter/facts/slackware/os/release.rb +35 -0
  84. data/lib/facter/facts/sles/lsbdistcodename.rb +16 -0
  85. data/lib/facter/facts/sles/lsbdistdescription.rb +16 -0
  86. data/lib/facter/facts/sles/lsbdistid.rb +16 -0
  87. data/lib/facter/facts/sles/os/distro/codename.rb +3 -4
  88. data/lib/facter/facts/sles/os/distro/description.rb +2 -5
  89. data/lib/facter/facts/sles/os/distro/id.rb +6 -5
  90. data/lib/facter/facts/sles/os/distro/release.rb +17 -12
  91. data/lib/facter/facts/solaris/disks.rb +1 -1
  92. data/lib/facter/facts/solaris/ssh.rb +1 -1
  93. data/lib/facter/facts/solaris/sshalgorithmkey.rb +1 -1
  94. data/lib/facter/facts/solaris/sshfp_algorithm.rb +1 -1
  95. data/lib/facter/facts/ubuntu/lsbdistrelease.rb +2 -2
  96. data/lib/facter/facts/windows/az_metadata.rb +27 -0
  97. data/lib/facter/facts/windows/cloud/provider.rb +17 -0
  98. data/lib/facter/facts/windows/networking/fqdn.rb +1 -1
  99. data/lib/facter/framework/cli/cli.rb +6 -8
  100. data/lib/facter/framework/config/config_reader.rb +9 -0
  101. data/lib/facter/framework/config/fact_groups.rb +28 -2
  102. data/lib/facter/framework/core/cache_manager.rb +5 -1
  103. data/lib/facter/framework/core/fact_filter.rb +3 -3
  104. data/lib/facter/framework/core/fact_loaders/external_fact_loader.rb +0 -4
  105. data/lib/facter/framework/core/fact_loaders/fact_loader.rb +2 -1
  106. data/lib/facter/framework/core/fact_manager.rb +5 -3
  107. data/lib/facter/framework/core/options.rb +1 -2
  108. data/lib/facter/framework/core/options/option_store.rb +11 -5
  109. data/lib/facter/framework/detector/os_detector.rb +8 -0
  110. data/lib/facter/framework/logging/logger.rb +4 -4
  111. data/lib/facter/framework/parsers/query_parser.rb +13 -6
  112. data/lib/facter/resolvers/aio_agent_version.rb +1 -1
  113. data/lib/facter/resolvers/aix/{architecture_resolver.rb → architecture.rb} +1 -1
  114. data/lib/facter/resolvers/aix/disks.rb +1 -1
  115. data/lib/facter/resolvers/aix/ffi/ffi.rb +63 -0
  116. data/lib/facter/resolvers/aix/ffi/ffi_helper.rb +146 -20
  117. data/lib/facter/resolvers/aix/ffi/structs.rb +69 -0
  118. data/lib/facter/resolvers/aix/{filesystem_resolver.rb → filesystem.rb} +1 -1
  119. data/lib/facter/resolvers/aix/{hardware_resolver.rb → hardware.rb} +1 -1
  120. data/lib/facter/resolvers/aix/{load_averages_resolver.rb → load_averages.rb} +2 -2
  121. data/lib/facter/resolvers/aix/memory.rb +1 -1
  122. data/lib/facter/resolvers/aix/mountpoints.rb +1 -1
  123. data/lib/facter/resolvers/aix/{networking_resolver.rb → networking.rb} +9 -16
  124. data/lib/facter/resolvers/aix/nim.rb +1 -1
  125. data/lib/facter/resolvers/aix/os_level.rb +1 -1
  126. data/lib/facter/resolvers/aix/partitions.rb +1 -1
  127. data/lib/facter/resolvers/aix/processors.rb +1 -1
  128. data/lib/facter/resolvers/aix/serialnumber.rb +1 -1
  129. data/lib/facter/resolvers/{augeas_resolver.rb → augeas.rb} +1 -1
  130. data/lib/facter/resolvers/az.rb +39 -0
  131. data/lib/facter/resolvers/base_resolver.rb +4 -4
  132. data/lib/facter/resolvers/bsd/processors.rb +1 -1
  133. data/lib/facter/resolvers/containers.rb +1 -1
  134. data/lib/facter/resolvers/debian_version.rb +1 -1
  135. data/lib/facter/resolvers/{disk_resolver.rb → disk.rb} +1 -1
  136. data/lib/facter/resolvers/{dmi_resolver.rb → dmi.rb} +1 -1
  137. data/lib/facter/resolvers/dmi_decode.rb +1 -1
  138. data/lib/facter/resolvers/ec2.rb +1 -1
  139. data/lib/facter/resolvers/{eos_release_resolver.rb → eos_release.rb} +1 -1
  140. data/lib/facter/resolvers/{facterversion_resolver.rb → facterversion.rb} +1 -1
  141. data/lib/facter/resolvers/{filesystems_resolver.rb → filesystems.rb} +1 -1
  142. data/lib/facter/resolvers/{fips_enabled_resolver.rb → fips_enabled.rb} +1 -1
  143. data/lib/facter/resolvers/freebsd/{dmi_resolver.rb → dmi.rb} +1 -1
  144. data/lib/facter/resolvers/freebsd/{freebsd_version_resolver.rb → freebsd_version.rb} +1 -1
  145. data/lib/facter/resolvers/freebsd/{geom_resolver.rb → geom.rb} +1 -1
  146. data/lib/facter/resolvers/freebsd/processors.rb +1 -1
  147. data/lib/facter/resolvers/freebsd/{swap_memory_resolver.rb → swap_memory.rb} +1 -1
  148. data/lib/facter/resolvers/freebsd/{system_memory_resolver.rb → system_memory.rb} +1 -1
  149. data/lib/facter/resolvers/freebsd/{virtual_resolver.rb → virtual.rb} +1 -1
  150. data/lib/facter/resolvers/gce.rb +1 -1
  151. data/lib/facter/resolvers/{hostname_resolver.rb → hostname.rb} +1 -1
  152. data/lib/facter/resolvers/{identity_resolver.rb → identity.rb} +1 -1
  153. data/lib/facter/resolvers/linux/docker_uptime.rb +1 -1
  154. data/lib/facter/resolvers/linux/hostname.rb +115 -0
  155. data/lib/facter/resolvers/linux/load_averages.rb +1 -1
  156. data/lib/facter/resolvers/linux/networking.rb +106 -0
  157. data/lib/facter/resolvers/load_averages.rb +1 -1
  158. data/lib/facter/resolvers/{lpar_resolver.rb → lpar.rb} +1 -1
  159. data/lib/facter/resolvers/{lsb_release_resolver.rb → lsb_release.rb} +1 -1
  160. data/lib/facter/resolvers/lspci.rb +1 -1
  161. data/lib/facter/resolvers/macosx/{dmi_resolver.rb → dmi.rb} +1 -1
  162. data/lib/facter/resolvers/macosx/{filesystems_resolver.rb → filesystems.rb} +1 -1
  163. data/lib/facter/resolvers/macosx/{load_averages_resolver.rb → load_averages.rb} +1 -1
  164. data/lib/facter/resolvers/macosx/{mountpoints_resolver.rb → mountpoints.rb} +1 -1
  165. data/lib/facter/resolvers/macosx/{processor_resolver.rb → processor.rb} +1 -1
  166. data/lib/facter/resolvers/macosx/{swap_memory_resolver.rb → swap_memory.rb} +1 -1
  167. data/lib/facter/resolvers/macosx/{system_memory_resolver.rb → system_memory.rb} +1 -1
  168. data/lib/facter/resolvers/macosx/{system_profiler_resolver.rb → system_profiler.rb} +1 -1
  169. data/lib/facter/resolvers/{memory_resolver.rb → memory.rb} +1 -1
  170. data/lib/facter/resolvers/{mountpoints_resolver.rb → mountpoints.rb} +1 -1
  171. data/lib/facter/resolvers/{networking_resolver.rb → networking.rb} +1 -1
  172. data/lib/facter/resolvers/open_vz.rb +1 -1
  173. data/lib/facter/resolvers/{os_release_resolver.rb → os_release.rb} +1 -1
  174. data/lib/facter/resolvers/partitions.rb +1 -1
  175. data/lib/facter/resolvers/{path_resolver.rb → path.rb} +1 -1
  176. data/lib/facter/resolvers/{processors_resolver.rb → processors.rb} +1 -1
  177. data/lib/facter/resolvers/redhat_release.rb +71 -0
  178. data/lib/facter/resolvers/release_from_first_line.rb +41 -0
  179. data/lib/facter/resolvers/{ruby_resolver.rb → ruby.rb} +1 -1
  180. data/lib/facter/resolvers/{selinux_resolver.rb → selinux.rb} +1 -1
  181. data/lib/facter/resolvers/solaris/disks.rb +1 -1
  182. data/lib/facter/resolvers/solaris/dmi.rb +1 -1
  183. data/lib/facter/resolvers/solaris/dmi_sparc.rb +1 -1
  184. data/lib/facter/resolvers/solaris/ffi/functions.rb +1 -1
  185. data/lib/facter/resolvers/solaris/filesystems.rb +1 -1
  186. data/lib/facter/resolvers/solaris/ipaddress.rb +1 -1
  187. data/lib/facter/resolvers/solaris/ldom.rb +1 -1
  188. data/lib/facter/resolvers/solaris/memory.rb +1 -1
  189. data/lib/facter/resolvers/solaris/mountpoints.rb +1 -1
  190. data/lib/facter/resolvers/solaris/networking.rb +1 -1
  191. data/lib/facter/resolvers/solaris/os_release.rb +1 -1
  192. data/lib/facter/resolvers/solaris/processors.rb +1 -1
  193. data/lib/facter/resolvers/solaris/zone.rb +1 -1
  194. data/lib/facter/resolvers/solaris/zone_name.rb +1 -1
  195. data/lib/facter/resolvers/specific_release_file.rb +35 -0
  196. data/lib/facter/resolvers/{ssh_resolver.rb → ssh.rb} +2 -2
  197. data/lib/facter/resolvers/{suse_release_resolver.rb → suse_release.rb} +1 -1
  198. data/lib/facter/resolvers/{sw_vers_resolver.rb → sw_vers.rb} +1 -1
  199. data/lib/facter/resolvers/{timezone_resolver.rb → timezone.rb} +1 -1
  200. data/lib/facter/resolvers/{uname_resolver.rb → uname.rb} +1 -1
  201. data/lib/facter/resolvers/{uptime_resolver.rb → uptime.rb} +1 -1
  202. data/lib/facter/resolvers/virt_what.rb +1 -1
  203. data/lib/facter/resolvers/vmware.rb +1 -1
  204. data/lib/facter/resolvers/windows/aio_agent_version.rb +1 -1
  205. data/lib/facter/resolvers/windows/{dmi_bios_resolver.rb → dmi_bios.rb} +1 -1
  206. data/lib/facter/resolvers/windows/{dmi_computersystem_resolver.rb → dmi_computersystem.rb} +1 -1
  207. data/lib/facter/resolvers/windows/ffi/network_utils.rb +1 -2
  208. data/lib/facter/resolvers/windows/{fips_resolver.rb → fips.rb} +1 -1
  209. data/lib/facter/resolvers/windows/{hardware_architecture_resolver.rb → hardware_architecture.rb} +1 -1
  210. data/lib/facter/resolvers/windows/{identity_resolver.rb → identity.rb} +1 -1
  211. data/lib/facter/resolvers/windows/{kernel_resolver.rb → kernel.rb} +1 -1
  212. data/lib/facter/resolvers/windows/{memory_resolver.rb → memory.rb} +1 -1
  213. data/lib/facter/resolvers/windows/{netkvm_resolver.rb → netkvm.rb} +1 -1
  214. data/lib/facter/resolvers/windows/{networking_resolver.rb → networking.rb} +19 -2
  215. data/lib/facter/resolvers/windows/{processors_resolver.rb → processors.rb} +1 -1
  216. data/lib/facter/resolvers/windows/{product_release_resolver.rb → product_release.rb} +1 -1
  217. data/lib/facter/resolvers/windows/ssh.rb +1 -1
  218. data/lib/facter/resolvers/windows/{system32_resolver.rb → system32.rb} +1 -1
  219. data/lib/facter/resolvers/windows/{uptime_resolver.rb → uptime.rb} +1 -1
  220. data/lib/facter/resolvers/windows/{virtualization_resolver.rb → virtualization.rb} +1 -1
  221. data/lib/facter/resolvers/windows/{win_os_description_resolver.rb → win_os_description.rb} +1 -1
  222. data/lib/facter/resolvers/{wpar_resolver.rb → wpar.rb} +1 -1
  223. data/lib/facter/resolvers/xen.rb +1 -1
  224. data/lib/facter/resolvers/zfs.rb +1 -1
  225. data/lib/facter/resolvers/zpool.rb +1 -1
  226. data/lib/facter/templates/man.erb +8 -0
  227. data/lib/facter/util/facts/facts_utils.rb +33 -0
  228. data/lib/facter/util/facts/unit_converter.rb +11 -4
  229. data/lib/facter/util/linux/dhcp.rb +86 -0
  230. data/lib/facter/util/linux/routing_table.rb +60 -0
  231. data/lib/facter/util/linux/socket_parser.rb +114 -0
  232. data/lib/facter/util/resolvers/ffi/hostname.rb +70 -0
  233. data/lib/facter/util/utils.rb +0 -4
  234. data/lib/facter/version.rb +1 -1
  235. metadata +124 -83
  236. data/lib/facter/facts/linux/cloud.rb +0 -15
  237. data/lib/facter/resolvers/cloud.rb +0 -39
  238. data/lib/facter/resolvers/networking_linux_resolver.rb +0 -258
  239. data/lib/facter/resolvers/redhat_release_resolver.rb +0 -55
  240. data/lib/facter/util/resolvers/networking.rb +0 -90
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ffi'
4
+
5
+ module Facter
6
+ module Util
7
+ module Resolvers
8
+ module Ffi
9
+ class AddrInfo < ::FFI::Struct
10
+ layout :ai_flags, :int,
11
+ :ai_family, :int,
12
+ :ai_socketype, :int,
13
+ :ai_protocol, :int,
14
+ :ai_addrlen, :uint,
15
+ :ai_addr, :pointer,
16
+ :ai_canonname, :string,
17
+ :ai_next, :pointer
18
+ end
19
+
20
+ module Hostname
21
+ HOST_NAME_MAX = 64
22
+
23
+ extend ::FFI::Library
24
+ ffi_lib ::FFI::Library::LIBC
25
+
26
+ attach_function :getaddrinfo, %i[string string pointer pointer], :int
27
+ attach_function :gethostname, %i[pointer int], :int
28
+ attach_function :freeaddrinfo, [:pointer], :void
29
+
30
+ def self.getffihostname
31
+ raw_hostname = ::FFI::MemoryPointer.new(:char, HOST_NAME_MAX)
32
+
33
+ res = Hostname.gethostname(raw_hostname, HOST_NAME_MAX)
34
+ return unless res.zero?
35
+
36
+ raw_hostname.read_string
37
+ end
38
+
39
+ def self.getffiaddrinfo(hostname) # rubocop:disable Metrics/AbcSize
40
+ ret = FFI::MemoryPointer.new(:pointer)
41
+
42
+ hints = Facter::Util::Resolvers::Ffi::AddrInfo.new
43
+ hints[:ai_family] = Socket::AF_UNSPEC
44
+ hints[:ai_socketype] = Socket::SOCK_STREAM
45
+ hints[:ai_flags] = Socket::AI_CANONNAME
46
+
47
+ res = Hostname.getaddrinfo(hostname, '', hints.to_ptr, ret)
48
+ log = Log.new(self)
49
+ log.debug("FFI Getaddrinfo finished with exit status: #{res}")
50
+ log.debug("FFI Getaddrinfo returned an AddrInfo struct at address: #{ret}")
51
+ return unless res.zero?
52
+
53
+ return if ret == FFI::Pointer::NULL || ret.read_pointer == FFI::Pointer::NULL
54
+
55
+ begin
56
+ addr = Facter::Util::Resolvers::Ffi::AddrInfo.new(ret.read_pointer)
57
+ name = addr[:ai_canonname]
58
+ log.debug("FFI AddrInfo struct has the fqdn: #{name}")
59
+ return if !name || hostname == name
60
+
61
+ name
62
+ ensure
63
+ Hostname.freeaddrinfo(ret.read_pointer)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -12,10 +12,6 @@ module Facter
12
12
  end
13
13
  end
14
14
 
15
- def self.deep_copy(obj)
16
- Marshal.load(Marshal.dump(obj))
17
- end
18
-
19
15
  def self.split_user_query(user_query)
20
16
  queries = user_query.split('.')
21
17
  queries.map! { |query| query =~ /^[0-9]+$/ ? query.to_i : query }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Facter
4
- VERSION = '4.0.47' unless defined?(VERSION)
4
+ VERSION = '4.0.52' 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.47
4
+ version: 4.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: coveralls
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.8.23
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.8.23
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +80,20 @@ dependencies:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
82
  version: '1.38'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.17.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.17.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sys-filesystem
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -166,6 +166,7 @@ extra_rdoc_files: []
166
166
  files:
167
167
  - bin/facter
168
168
  - lib/docs/generate.rb
169
+ - lib/docs/generate_cli.rb
169
170
  - lib/docs/template.erb
170
171
  - lib/facter.rb
171
172
  - lib/facter/config.rb
@@ -173,6 +174,7 @@ files:
173
174
  - lib/facter/custom_facts/core/directed_graph.rb
174
175
  - lib/facter/custom_facts/core/execution.rb
175
176
  - lib/facter/custom_facts/core/execution/base.rb
177
+ - lib/facter/custom_facts/core/execution/popen3.rb
176
178
  - lib/facter/custom_facts/core/execution/posix.rb
177
179
  - lib/facter/custom_facts/core/execution/windows.rb
178
180
  - lib/facter/custom_facts/core/file_loader.rb
@@ -275,6 +277,15 @@ files:
275
277
  - lib/facter/facts/aix/system_uptime/seconds.rb
276
278
  - lib/facter/facts/aix/system_uptime/uptime.rb
277
279
  - lib/facter/facts/aix/timezone.rb
280
+ - lib/facter/facts/alpine/os/release.rb
281
+ - lib/facter/facts/amzn/lsbdistcodename.rb
282
+ - lib/facter/facts/amzn/lsbdistdescription.rb
283
+ - lib/facter/facts/amzn/lsbdistid.rb
284
+ - lib/facter/facts/amzn/os/distro/codename.rb
285
+ - lib/facter/facts/amzn/os/distro/description.rb
286
+ - lib/facter/facts/amzn/os/distro/id.rb
287
+ - lib/facter/facts/amzn/os/distro/release.rb
288
+ - lib/facter/facts/amzn/os/release.rb
278
289
  - lib/facter/facts/bsd/kernelmajversion.rb
279
290
  - lib/facter/facts/bsd/kernelversion.rb
280
291
  - lib/facter/facts/bsd/load_averages.rb
@@ -291,6 +302,8 @@ files:
291
302
  - lib/facter/facts/debian/os/distro/id.rb
292
303
  - lib/facter/facts/debian/os/distro/release.rb
293
304
  - lib/facter/facts/debian/os/release.rb
305
+ - lib/facter/facts/devuan/os/distro/release.rb
306
+ - lib/facter/facts/devuan/os/release.rb
294
307
  - lib/facter/facts/freebsd/augeas/version.rb
295
308
  - lib/facter/facts/freebsd/disks.rb
296
309
  - lib/facter/facts/freebsd/dmi/bios/release_date.rb
@@ -371,9 +384,11 @@ files:
371
384
  - lib/facter/facts/freebsd/zpool_featureflags.rb
372
385
  - lib/facter/facts/freebsd/zpool_featurenumbers.rb
373
386
  - lib/facter/facts/freebsd/zpool_version.rb
387
+ - lib/facter/facts/gentoo/os/release.rb
374
388
  - lib/facter/facts/linux/aio_agent_version.rb
375
389
  - lib/facter/facts/linux/augeas/version.rb
376
- - lib/facter/facts/linux/cloud.rb
390
+ - lib/facter/facts/linux/az_metadata.rb
391
+ - lib/facter/facts/linux/cloud/provider.rb
377
392
  - lib/facter/facts/linux/dhcp_servers.rb
378
393
  - lib/facter/facts/linux/disks.rb
379
394
  - lib/facter/facts/linux/dmi/bios/release_date.rb
@@ -493,6 +508,8 @@ files:
493
508
  - lib/facter/facts/linux/timezone.rb
494
509
  - lib/facter/facts/linux/virtual.rb
495
510
  - lib/facter/facts/linux/xen.rb
511
+ - lib/facter/facts/linuxmint/os/name.rb
512
+ - lib/facter/facts/linuxmint/os/release.rb
496
513
  - lib/facter/facts/macosx/aio_agent_version.rb
497
514
  - lib/facter/facts/macosx/augeas/version.rb
498
515
  - lib/facter/facts/macosx/dhcp_servers.rb
@@ -598,6 +615,16 @@ files:
598
615
  - lib/facter/facts/macosx/system_uptime/uptime.rb
599
616
  - lib/facter/facts/macosx/timezone.rb
600
617
  - lib/facter/facts/macosx/virtual.rb
618
+ - lib/facter/facts/mageia/os/release.rb
619
+ - lib/facter/facts/meego/os/release.rb
620
+ - lib/facter/facts/oel/os/release.rb
621
+ - lib/facter/facts/ol/os/release.rb
622
+ - lib/facter/facts/openwrt/os/release.rb
623
+ - lib/facter/facts/ovs/os/release.rb
624
+ - lib/facter/facts/photon/os/release.rb
625
+ - lib/facter/facts/rhel/lsbdistcodename.rb
626
+ - lib/facter/facts/rhel/lsbdistdescription.rb
627
+ - lib/facter/facts/rhel/lsbdistid.rb
601
628
  - lib/facter/facts/rhel/os/distro/codename.rb
602
629
  - lib/facter/facts/rhel/os/distro/description.rb
603
630
  - lib/facter/facts/rhel/os/distro/id.rb
@@ -605,6 +632,10 @@ files:
605
632
  - lib/facter/facts/rhel/os/family.rb
606
633
  - lib/facter/facts/rhel/os/name.rb
607
634
  - lib/facter/facts/rhel/os/release.rb
635
+ - lib/facter/facts/slackware/os/release.rb
636
+ - lib/facter/facts/sles/lsbdistcodename.rb
637
+ - lib/facter/facts/sles/lsbdistdescription.rb
638
+ - lib/facter/facts/sles/lsbdistid.rb
608
639
  - lib/facter/facts/sles/os/distro/codename.rb
609
640
  - lib/facter/facts/sles/os/distro/description.rb
610
641
  - lib/facter/facts/sles/os/distro/id.rb
@@ -713,6 +744,8 @@ files:
713
744
  - lib/facter/facts/ubuntu/os/release.rb
714
745
  - lib/facter/facts/windows/aio_agent_version.rb
715
746
  - lib/facter/facts/windows/augeas/version.rb
747
+ - lib/facter/facts/windows/az_metadata.rb
748
+ - lib/facter/facts/windows/cloud/provider.rb
716
749
  - lib/facter/facts/windows/dhcp_servers.rb
717
750
  - lib/facter/facts/windows/dmi/manufacturer.rb
718
751
  - lib/facter/facts/windows/dmi/product/name.rb
@@ -834,72 +867,76 @@ files:
834
867
  - lib/facter/models/searched_fact.rb
835
868
  - lib/facter/patches/sysfilesystem/sys/statvfs.rb
836
869
  - lib/facter/resolvers/aio_agent_version.rb
837
- - lib/facter/resolvers/aix/architecture_resolver.rb
870
+ - lib/facter/resolvers/aix/architecture.rb
838
871
  - lib/facter/resolvers/aix/disks.rb
872
+ - lib/facter/resolvers/aix/ffi/ffi.rb
839
873
  - lib/facter/resolvers/aix/ffi/ffi_helper.rb
840
- - lib/facter/resolvers/aix/filesystem_resolver.rb
841
- - lib/facter/resolvers/aix/hardware_resolver.rb
842
- - lib/facter/resolvers/aix/load_averages_resolver.rb
874
+ - lib/facter/resolvers/aix/ffi/structs.rb
875
+ - lib/facter/resolvers/aix/filesystem.rb
876
+ - lib/facter/resolvers/aix/hardware.rb
877
+ - lib/facter/resolvers/aix/load_averages.rb
843
878
  - lib/facter/resolvers/aix/memory.rb
844
879
  - lib/facter/resolvers/aix/mountpoints.rb
845
- - lib/facter/resolvers/aix/networking_resolver.rb
880
+ - lib/facter/resolvers/aix/networking.rb
846
881
  - lib/facter/resolvers/aix/nim.rb
847
882
  - lib/facter/resolvers/aix/os_level.rb
848
883
  - lib/facter/resolvers/aix/partitions.rb
849
884
  - lib/facter/resolvers/aix/processors.rb
850
885
  - lib/facter/resolvers/aix/serialnumber.rb
851
- - lib/facter/resolvers/augeas_resolver.rb
886
+ - lib/facter/resolvers/augeas.rb
887
+ - lib/facter/resolvers/az.rb
852
888
  - lib/facter/resolvers/base_resolver.rb
853
889
  - lib/facter/resolvers/bsd/ffi/ffi_helper.rb
854
890
  - lib/facter/resolvers/bsd/processors.rb
855
- - lib/facter/resolvers/cloud.rb
856
891
  - lib/facter/resolvers/containers.rb
857
892
  - lib/facter/resolvers/debian_version.rb
858
- - lib/facter/resolvers/disk_resolver.rb
893
+ - lib/facter/resolvers/disk.rb
894
+ - lib/facter/resolvers/dmi.rb
859
895
  - lib/facter/resolvers/dmi_decode.rb
860
- - lib/facter/resolvers/dmi_resolver.rb
861
896
  - lib/facter/resolvers/ec2.rb
862
- - lib/facter/resolvers/eos_release_resolver.rb
863
- - lib/facter/resolvers/facterversion_resolver.rb
864
- - lib/facter/resolvers/filesystems_resolver.rb
865
- - lib/facter/resolvers/fips_enabled_resolver.rb
866
- - lib/facter/resolvers/freebsd/dmi_resolver.rb
897
+ - lib/facter/resolvers/eos_release.rb
898
+ - lib/facter/resolvers/facterversion.rb
899
+ - lib/facter/resolvers/filesystems.rb
900
+ - lib/facter/resolvers/fips_enabled.rb
901
+ - lib/facter/resolvers/freebsd/dmi.rb
867
902
  - lib/facter/resolvers/freebsd/ffi/ffi_helper.rb
868
- - lib/facter/resolvers/freebsd/freebsd_version_resolver.rb
869
- - lib/facter/resolvers/freebsd/geom_resolver.rb
903
+ - lib/facter/resolvers/freebsd/freebsd_version.rb
904
+ - lib/facter/resolvers/freebsd/geom.rb
870
905
  - lib/facter/resolvers/freebsd/processors.rb
871
- - lib/facter/resolvers/freebsd/swap_memory_resolver.rb
872
- - lib/facter/resolvers/freebsd/system_memory_resolver.rb
873
- - lib/facter/resolvers/freebsd/virtual_resolver.rb
906
+ - lib/facter/resolvers/freebsd/swap_memory.rb
907
+ - lib/facter/resolvers/freebsd/system_memory.rb
908
+ - lib/facter/resolvers/freebsd/virtual.rb
874
909
  - lib/facter/resolvers/gce.rb
875
- - lib/facter/resolvers/hostname_resolver.rb
876
- - lib/facter/resolvers/identity_resolver.rb
910
+ - lib/facter/resolvers/hostname.rb
911
+ - lib/facter/resolvers/identity.rb
877
912
  - lib/facter/resolvers/linux/docker_uptime.rb
913
+ - lib/facter/resolvers/linux/hostname.rb
878
914
  - lib/facter/resolvers/linux/load_averages.rb
915
+ - lib/facter/resolvers/linux/networking.rb
879
916
  - lib/facter/resolvers/load_averages.rb
880
- - lib/facter/resolvers/lpar_resolver.rb
881
- - lib/facter/resolvers/lsb_release_resolver.rb
917
+ - lib/facter/resolvers/lpar.rb
918
+ - lib/facter/resolvers/lsb_release.rb
882
919
  - lib/facter/resolvers/lspci.rb
883
- - lib/facter/resolvers/macosx/dmi_resolver.rb
884
- - lib/facter/resolvers/macosx/filesystems_resolver.rb
885
- - lib/facter/resolvers/macosx/load_averages_resolver.rb
886
- - lib/facter/resolvers/macosx/mountpoints_resolver.rb
887
- - lib/facter/resolvers/macosx/processor_resolver.rb
888
- - lib/facter/resolvers/macosx/swap_memory_resolver.rb
889
- - lib/facter/resolvers/macosx/system_memory_resolver.rb
890
- - lib/facter/resolvers/macosx/system_profiler_resolver.rb
891
- - lib/facter/resolvers/memory_resolver.rb
892
- - lib/facter/resolvers/mountpoints_resolver.rb
893
- - lib/facter/resolvers/networking_linux_resolver.rb
894
- - lib/facter/resolvers/networking_resolver.rb
920
+ - lib/facter/resolvers/macosx/dmi.rb
921
+ - lib/facter/resolvers/macosx/filesystems.rb
922
+ - lib/facter/resolvers/macosx/load_averages.rb
923
+ - lib/facter/resolvers/macosx/mountpoints.rb
924
+ - lib/facter/resolvers/macosx/processor.rb
925
+ - lib/facter/resolvers/macosx/swap_memory.rb
926
+ - lib/facter/resolvers/macosx/system_memory.rb
927
+ - lib/facter/resolvers/macosx/system_profiler.rb
928
+ - lib/facter/resolvers/memory.rb
929
+ - lib/facter/resolvers/mountpoints.rb
930
+ - lib/facter/resolvers/networking.rb
895
931
  - lib/facter/resolvers/open_vz.rb
896
- - lib/facter/resolvers/os_release_resolver.rb
932
+ - lib/facter/resolvers/os_release.rb
897
933
  - lib/facter/resolvers/partitions.rb
898
- - lib/facter/resolvers/path_resolver.rb
899
- - lib/facter/resolvers/processors_resolver.rb
900
- - lib/facter/resolvers/redhat_release_resolver.rb
901
- - lib/facter/resolvers/ruby_resolver.rb
902
- - lib/facter/resolvers/selinux_resolver.rb
934
+ - lib/facter/resolvers/path.rb
935
+ - lib/facter/resolvers/processors.rb
936
+ - lib/facter/resolvers/redhat_release.rb
937
+ - lib/facter/resolvers/release_from_first_line.rb
938
+ - lib/facter/resolvers/ruby.rb
939
+ - lib/facter/resolvers/selinux.rb
903
940
  - lib/facter/resolvers/solaris/disks.rb
904
941
  - lib/facter/resolvers/solaris/dmi.rb
905
942
  - lib/facter/resolvers/solaris/dmi_sparc.rb
@@ -916,17 +953,18 @@ files:
916
953
  - lib/facter/resolvers/solaris/processors.rb
917
954
  - lib/facter/resolvers/solaris/zone.rb
918
955
  - lib/facter/resolvers/solaris/zone_name.rb
919
- - lib/facter/resolvers/ssh_resolver.rb
920
- - lib/facter/resolvers/suse_release_resolver.rb
921
- - lib/facter/resolvers/sw_vers_resolver.rb
922
- - lib/facter/resolvers/timezone_resolver.rb
923
- - lib/facter/resolvers/uname_resolver.rb
924
- - lib/facter/resolvers/uptime_resolver.rb
956
+ - lib/facter/resolvers/specific_release_file.rb
957
+ - lib/facter/resolvers/ssh.rb
958
+ - lib/facter/resolvers/suse_release.rb
959
+ - lib/facter/resolvers/sw_vers.rb
960
+ - lib/facter/resolvers/timezone.rb
961
+ - lib/facter/resolvers/uname.rb
962
+ - lib/facter/resolvers/uptime.rb
925
963
  - lib/facter/resolvers/virt_what.rb
926
964
  - lib/facter/resolvers/vmware.rb
927
965
  - lib/facter/resolvers/windows/aio_agent_version.rb
928
- - lib/facter/resolvers/windows/dmi_bios_resolver.rb
929
- - lib/facter/resolvers/windows/dmi_computersystem_resolver.rb
966
+ - lib/facter/resolvers/windows/dmi_bios.rb
967
+ - lib/facter/resolvers/windows/dmi_computersystem.rb
930
968
  - lib/facter/resolvers/windows/ffi/ffi.rb
931
969
  - lib/facter/resolvers/windows/ffi/hardware_ffi.rb
932
970
  - lib/facter/resolvers/windows/ffi/identity_ffi.rb
@@ -939,21 +977,21 @@ files:
939
977
  - lib/facter/resolvers/windows/ffi/performance_information.rb
940
978
  - lib/facter/resolvers/windows/ffi/system32_ffi.rb
941
979
  - lib/facter/resolvers/windows/ffi/system_info.rb
942
- - lib/facter/resolvers/windows/fips_resolver.rb
943
- - lib/facter/resolvers/windows/hardware_architecture_resolver.rb
944
- - lib/facter/resolvers/windows/identity_resolver.rb
945
- - lib/facter/resolvers/windows/kernel_resolver.rb
946
- - lib/facter/resolvers/windows/memory_resolver.rb
947
- - lib/facter/resolvers/windows/netkvm_resolver.rb
948
- - lib/facter/resolvers/windows/networking_resolver.rb
949
- - lib/facter/resolvers/windows/processors_resolver.rb
950
- - lib/facter/resolvers/windows/product_release_resolver.rb
980
+ - lib/facter/resolvers/windows/fips.rb
981
+ - lib/facter/resolvers/windows/hardware_architecture.rb
982
+ - lib/facter/resolvers/windows/identity.rb
983
+ - lib/facter/resolvers/windows/kernel.rb
984
+ - lib/facter/resolvers/windows/memory.rb
985
+ - lib/facter/resolvers/windows/netkvm.rb
986
+ - lib/facter/resolvers/windows/networking.rb
987
+ - lib/facter/resolvers/windows/processors.rb
988
+ - lib/facter/resolvers/windows/product_release.rb
951
989
  - lib/facter/resolvers/windows/ssh.rb
952
- - lib/facter/resolvers/windows/system32_resolver.rb
953
- - lib/facter/resolvers/windows/uptime_resolver.rb
954
- - lib/facter/resolvers/windows/virtualization_resolver.rb
955
- - lib/facter/resolvers/windows/win_os_description_resolver.rb
956
- - lib/facter/resolvers/wpar_resolver.rb
990
+ - lib/facter/resolvers/windows/system32.rb
991
+ - lib/facter/resolvers/windows/uptime.rb
992
+ - lib/facter/resolvers/windows/virtualization.rb
993
+ - lib/facter/resolvers/windows/win_os_description.rb
994
+ - lib/facter/resolvers/wpar.rb
957
995
  - lib/facter/resolvers/xen.rb
958
996
  - lib/facter/resolvers/zfs.rb
959
997
  - lib/facter/resolvers/zpool.rb
@@ -967,13 +1005,16 @@ files:
967
1005
  - lib/facter/util/facts/virtual_detector.rb
968
1006
  - lib/facter/util/facts/windows_release_finder.rb
969
1007
  - lib/facter/util/file_helper.rb
1008
+ - lib/facter/util/linux/dhcp.rb
1009
+ - lib/facter/util/linux/routing_table.rb
1010
+ - lib/facter/util/linux/socket_parser.rb
970
1011
  - lib/facter/util/macosx/system_profile_executor.rb
971
1012
  - lib/facter/util/resolvers/aws_token.rb
1013
+ - lib/facter/util/resolvers/ffi/hostname.rb
972
1014
  - lib/facter/util/resolvers/ffi/load_averages.rb
973
1015
  - lib/facter/util/resolvers/filesystem_helper.rb
974
1016
  - lib/facter/util/resolvers/fingerprint.rb
975
1017
  - lib/facter/util/resolvers/http.rb
976
- - lib/facter/util/resolvers/networking.rb
977
1018
  - lib/facter/util/resolvers/networking/dhcp.rb
978
1019
  - lib/facter/util/resolvers/networking/networking.rb
979
1020
  - lib/facter/util/resolvers/networking/primary_interface.rb
@@ -983,7 +1024,7 @@ files:
983
1024
  - lib/facter/util/utils.rb
984
1025
  - lib/facter/util/windows/win32ole.rb
985
1026
  - lib/facter/version.rb
986
- homepage:
1027
+ homepage: https://github.com/puppetlabs/facter
987
1028
  licenses:
988
1029
  - MIT
989
1030
  metadata: {}
@@ -1002,7 +1043,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1002
1043
  - !ruby/object:Gem::Version
1003
1044
  version: '0'
1004
1045
  requirements: []
1005
- rubygems_version: 3.0.8
1046
+ rubygems_version: 3.0.0
1006
1047
  signing_key:
1007
1048
  specification_version: 4
1008
1049
  summary: New version of Facter