facter 4.0.47 → 4.0.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docs/generate_cli.rb +7 -0
- data/lib/facter.rb +76 -43
- data/lib/facter/config.rb +21 -9
- data/lib/facter/custom_facts/core/aggregate.rb +16 -0
- data/lib/facter/custom_facts/core/execution/base.rb +3 -2
- data/lib/facter/custom_facts/core/execution/popen3.rb +47 -0
- data/lib/facter/custom_facts/core/resolvable.rb +11 -0
- data/lib/facter/custom_facts/util/fact.rb +22 -3
- data/lib/facter/custom_facts/util/resolution.rb +3 -1
- data/lib/facter/facts/aix/disks.rb +1 -1
- data/lib/facter/facts/aix/ssh.rb +1 -1
- data/lib/facter/facts/aix/sshalgorithmkey.rb +1 -1
- data/lib/facter/facts/aix/sshfp_algorithm.rb +1 -1
- data/lib/facter/facts/alpine/os/release.rb +29 -0
- data/lib/facter/facts/amzn/lsbdistcodename.rb +16 -0
- data/lib/facter/facts/amzn/lsbdistdescription.rb +16 -0
- data/lib/facter/facts/amzn/lsbdistid.rb +16 -0
- data/lib/facter/facts/amzn/os/distro/codename.rb +24 -0
- data/lib/facter/facts/amzn/os/distro/description.rb +21 -0
- data/lib/facter/facts/amzn/os/distro/id.rb +21 -0
- data/lib/facter/facts/amzn/os/distro/release.rb +32 -0
- data/lib/facter/facts/amzn/os/release.rb +29 -0
- data/lib/facter/facts/devuan/os/distro/release.rb +36 -0
- data/lib/facter/facts/devuan/os/release.rb +29 -0
- data/lib/facter/facts/freebsd/ssh.rb +1 -1
- data/lib/facter/facts/freebsd/sshalgorithmkey.rb +1 -1
- data/lib/facter/facts/freebsd/sshfp_algorithm.rb +1 -1
- data/lib/facter/facts/gentoo/os/release.rb +29 -0
- data/lib/facter/facts/linux/az_metadata.rb +27 -0
- data/lib/facter/facts/linux/cloud/provider.rb +17 -0
- data/lib/facter/facts/linux/dhcp_servers.rb +2 -2
- data/lib/facter/facts/linux/disks.rb +1 -1
- data/lib/facter/facts/linux/interfaces.rb +1 -1
- data/lib/facter/facts/linux/ipaddress6_interfaces.rb +1 -1
- data/lib/facter/facts/linux/ipaddress_interfaces.rb +1 -1
- data/lib/facter/facts/linux/macaddress_interfaces.rb +1 -1
- data/lib/facter/facts/linux/mtu_interfaces.rb +1 -1
- data/lib/facter/facts/linux/netmask6_interfaces.rb +1 -1
- data/lib/facter/facts/linux/netmask_interfaces.rb +1 -1
- data/lib/facter/facts/linux/network6_interfaces.rb +1 -1
- data/lib/facter/facts/linux/network_interfaces.rb +1 -1
- data/lib/facter/facts/linux/networking/dhcp.rb +1 -1
- data/lib/facter/facts/linux/networking/domain.rb +1 -1
- data/lib/facter/facts/linux/networking/fqdn.rb +1 -1
- data/lib/facter/facts/linux/networking/hostname.rb +1 -1
- data/lib/facter/facts/linux/networking/interfaces.rb +1 -1
- data/lib/facter/facts/linux/networking/ip.rb +1 -1
- data/lib/facter/facts/linux/networking/ip6.rb +1 -1
- data/lib/facter/facts/linux/networking/mac.rb +1 -1
- data/lib/facter/facts/linux/networking/mtu.rb +1 -1
- data/lib/facter/facts/linux/networking/netmask.rb +1 -1
- data/lib/facter/facts/linux/networking/netmask6.rb +1 -1
- data/lib/facter/facts/linux/networking/network.rb +1 -1
- data/lib/facter/facts/linux/networking/network6.rb +1 -1
- data/lib/facter/facts/linux/networking/primary.rb +1 -1
- data/lib/facter/facts/linux/networking/scope6.rb +1 -1
- data/lib/facter/facts/linux/os/family.rb +4 -2
- data/lib/facter/facts/linux/scope6_interfaces.rb +1 -1
- data/lib/facter/facts/linux/ssh.rb +1 -1
- data/lib/facter/facts/linux/sshalgorithmkey.rb +1 -1
- data/lib/facter/facts/linux/sshfp_algorithm.rb +1 -1
- data/lib/facter/facts/linuxmint/os/name.rb +18 -0
- data/lib/facter/facts/linuxmint/os/release.rb +35 -0
- data/lib/facter/facts/macosx/ssh.rb +1 -1
- data/lib/facter/facts/macosx/sshalgorithmkey.rb +1 -1
- data/lib/facter/facts/macosx/sshfp_algorithm.rb +1 -1
- data/lib/facter/facts/mageia/os/release.rb +36 -0
- data/lib/facter/facts/meego/os/release.rb +29 -0
- data/lib/facter/facts/oel/os/release.rb +29 -0
- data/lib/facter/facts/ol/os/release.rb +29 -0
- data/lib/facter/facts/openwrt/os/release.rb +35 -0
- data/lib/facter/facts/ovs/os/release.rb +29 -0
- data/lib/facter/facts/photon/os/release.rb +45 -0
- data/lib/facter/facts/rhel/lsbdistcodename.rb +16 -0
- data/lib/facter/facts/rhel/lsbdistdescription.rb +16 -0
- data/lib/facter/facts/rhel/lsbdistid.rb +16 -0
- data/lib/facter/facts/rhel/os/distro/codename.rb +2 -4
- data/lib/facter/facts/rhel/os/distro/description.rb +2 -4
- data/lib/facter/facts/rhel/os/distro/id.rb +2 -4
- data/lib/facter/facts/rhel/os/distro/release.rb +13 -12
- data/lib/facter/facts/rhel/os/release.rb +1 -8
- data/lib/facter/facts/slackware/os/release.rb +35 -0
- data/lib/facter/facts/sles/lsbdistcodename.rb +16 -0
- data/lib/facter/facts/sles/lsbdistdescription.rb +16 -0
- data/lib/facter/facts/sles/lsbdistid.rb +16 -0
- data/lib/facter/facts/sles/os/distro/codename.rb +3 -4
- data/lib/facter/facts/sles/os/distro/description.rb +2 -5
- data/lib/facter/facts/sles/os/distro/id.rb +6 -5
- data/lib/facter/facts/sles/os/distro/release.rb +17 -12
- data/lib/facter/facts/solaris/disks.rb +1 -1
- data/lib/facter/facts/solaris/ssh.rb +1 -1
- data/lib/facter/facts/solaris/sshalgorithmkey.rb +1 -1
- data/lib/facter/facts/solaris/sshfp_algorithm.rb +1 -1
- data/lib/facter/facts/ubuntu/lsbdistrelease.rb +2 -2
- data/lib/facter/facts/windows/az_metadata.rb +27 -0
- data/lib/facter/facts/windows/cloud/provider.rb +17 -0
- data/lib/facter/facts/windows/networking/fqdn.rb +1 -1
- data/lib/facter/framework/cli/cli.rb +6 -8
- data/lib/facter/framework/config/config_reader.rb +9 -0
- data/lib/facter/framework/config/fact_groups.rb +28 -2
- data/lib/facter/framework/core/cache_manager.rb +5 -1
- data/lib/facter/framework/core/fact_filter.rb +3 -3
- data/lib/facter/framework/core/fact_loaders/external_fact_loader.rb +0 -4
- data/lib/facter/framework/core/fact_loaders/fact_loader.rb +2 -1
- data/lib/facter/framework/core/fact_manager.rb +5 -3
- data/lib/facter/framework/core/options.rb +1 -2
- data/lib/facter/framework/core/options/option_store.rb +11 -5
- data/lib/facter/framework/detector/os_detector.rb +8 -0
- data/lib/facter/framework/logging/logger.rb +4 -4
- data/lib/facter/framework/parsers/query_parser.rb +13 -6
- data/lib/facter/resolvers/aio_agent_version.rb +1 -1
- data/lib/facter/resolvers/aix/{architecture_resolver.rb → architecture.rb} +1 -1
- data/lib/facter/resolvers/aix/disks.rb +1 -1
- data/lib/facter/resolvers/aix/ffi/ffi.rb +63 -0
- data/lib/facter/resolvers/aix/ffi/ffi_helper.rb +146 -20
- data/lib/facter/resolvers/aix/ffi/structs.rb +69 -0
- data/lib/facter/resolvers/aix/{filesystem_resolver.rb → filesystem.rb} +1 -1
- data/lib/facter/resolvers/aix/{hardware_resolver.rb → hardware.rb} +1 -1
- data/lib/facter/resolvers/aix/{load_averages_resolver.rb → load_averages.rb} +2 -2
- data/lib/facter/resolvers/aix/memory.rb +1 -1
- data/lib/facter/resolvers/aix/mountpoints.rb +1 -1
- data/lib/facter/resolvers/aix/{networking_resolver.rb → networking.rb} +9 -16
- data/lib/facter/resolvers/aix/nim.rb +1 -1
- data/lib/facter/resolvers/aix/os_level.rb +1 -1
- data/lib/facter/resolvers/aix/partitions.rb +1 -1
- data/lib/facter/resolvers/aix/processors.rb +1 -1
- data/lib/facter/resolvers/aix/serialnumber.rb +1 -1
- data/lib/facter/resolvers/{augeas_resolver.rb → augeas.rb} +1 -1
- data/lib/facter/resolvers/az.rb +39 -0
- data/lib/facter/resolvers/base_resolver.rb +4 -4
- data/lib/facter/resolvers/bsd/processors.rb +1 -1
- data/lib/facter/resolvers/containers.rb +1 -1
- data/lib/facter/resolvers/debian_version.rb +1 -1
- data/lib/facter/resolvers/{disk_resolver.rb → disk.rb} +1 -1
- data/lib/facter/resolvers/{dmi_resolver.rb → dmi.rb} +1 -1
- data/lib/facter/resolvers/dmi_decode.rb +1 -1
- data/lib/facter/resolvers/ec2.rb +1 -1
- data/lib/facter/resolvers/{eos_release_resolver.rb → eos_release.rb} +1 -1
- data/lib/facter/resolvers/{facterversion_resolver.rb → facterversion.rb} +1 -1
- data/lib/facter/resolvers/{filesystems_resolver.rb → filesystems.rb} +1 -1
- data/lib/facter/resolvers/{fips_enabled_resolver.rb → fips_enabled.rb} +1 -1
- data/lib/facter/resolvers/freebsd/{dmi_resolver.rb → dmi.rb} +1 -1
- data/lib/facter/resolvers/freebsd/{freebsd_version_resolver.rb → freebsd_version.rb} +1 -1
- data/lib/facter/resolvers/freebsd/{geom_resolver.rb → geom.rb} +1 -1
- data/lib/facter/resolvers/freebsd/processors.rb +1 -1
- data/lib/facter/resolvers/freebsd/{swap_memory_resolver.rb → swap_memory.rb} +1 -1
- data/lib/facter/resolvers/freebsd/{system_memory_resolver.rb → system_memory.rb} +1 -1
- data/lib/facter/resolvers/freebsd/{virtual_resolver.rb → virtual.rb} +1 -1
- data/lib/facter/resolvers/gce.rb +1 -1
- data/lib/facter/resolvers/{hostname_resolver.rb → hostname.rb} +1 -1
- data/lib/facter/resolvers/{identity_resolver.rb → identity.rb} +1 -1
- data/lib/facter/resolvers/linux/docker_uptime.rb +1 -1
- data/lib/facter/resolvers/linux/hostname.rb +115 -0
- data/lib/facter/resolvers/linux/load_averages.rb +1 -1
- data/lib/facter/resolvers/linux/networking.rb +106 -0
- data/lib/facter/resolvers/load_averages.rb +1 -1
- data/lib/facter/resolvers/{lpar_resolver.rb → lpar.rb} +1 -1
- data/lib/facter/resolvers/{lsb_release_resolver.rb → lsb_release.rb} +1 -1
- data/lib/facter/resolvers/lspci.rb +1 -1
- data/lib/facter/resolvers/macosx/{dmi_resolver.rb → dmi.rb} +1 -1
- data/lib/facter/resolvers/macosx/{filesystems_resolver.rb → filesystems.rb} +1 -1
- data/lib/facter/resolvers/macosx/{load_averages_resolver.rb → load_averages.rb} +1 -1
- data/lib/facter/resolvers/macosx/{mountpoints_resolver.rb → mountpoints.rb} +1 -1
- data/lib/facter/resolvers/macosx/{processor_resolver.rb → processor.rb} +1 -1
- data/lib/facter/resolvers/macosx/{swap_memory_resolver.rb → swap_memory.rb} +1 -1
- data/lib/facter/resolvers/macosx/{system_memory_resolver.rb → system_memory.rb} +1 -1
- data/lib/facter/resolvers/macosx/{system_profiler_resolver.rb → system_profiler.rb} +1 -1
- data/lib/facter/resolvers/{memory_resolver.rb → memory.rb} +1 -1
- data/lib/facter/resolvers/{mountpoints_resolver.rb → mountpoints.rb} +1 -1
- data/lib/facter/resolvers/{networking_resolver.rb → networking.rb} +1 -1
- data/lib/facter/resolvers/open_vz.rb +1 -1
- data/lib/facter/resolvers/{os_release_resolver.rb → os_release.rb} +1 -1
- data/lib/facter/resolvers/partitions.rb +1 -1
- data/lib/facter/resolvers/{path_resolver.rb → path.rb} +1 -1
- data/lib/facter/resolvers/{processors_resolver.rb → processors.rb} +1 -1
- data/lib/facter/resolvers/redhat_release.rb +71 -0
- data/lib/facter/resolvers/release_from_first_line.rb +41 -0
- data/lib/facter/resolvers/{ruby_resolver.rb → ruby.rb} +1 -1
- data/lib/facter/resolvers/{selinux_resolver.rb → selinux.rb} +1 -1
- data/lib/facter/resolvers/solaris/disks.rb +1 -1
- data/lib/facter/resolvers/solaris/dmi.rb +1 -1
- data/lib/facter/resolvers/solaris/dmi_sparc.rb +1 -1
- data/lib/facter/resolvers/solaris/ffi/functions.rb +1 -1
- data/lib/facter/resolvers/solaris/filesystems.rb +1 -1
- data/lib/facter/resolvers/solaris/ipaddress.rb +1 -1
- data/lib/facter/resolvers/solaris/ldom.rb +1 -1
- data/lib/facter/resolvers/solaris/memory.rb +1 -1
- data/lib/facter/resolvers/solaris/mountpoints.rb +1 -1
- data/lib/facter/resolvers/solaris/networking.rb +1 -1
- data/lib/facter/resolvers/solaris/os_release.rb +1 -1
- data/lib/facter/resolvers/solaris/processors.rb +1 -1
- data/lib/facter/resolvers/solaris/zone.rb +1 -1
- data/lib/facter/resolvers/solaris/zone_name.rb +1 -1
- data/lib/facter/resolvers/specific_release_file.rb +35 -0
- data/lib/facter/resolvers/{ssh_resolver.rb → ssh.rb} +2 -2
- data/lib/facter/resolvers/{suse_release_resolver.rb → suse_release.rb} +1 -1
- data/lib/facter/resolvers/{sw_vers_resolver.rb → sw_vers.rb} +1 -1
- data/lib/facter/resolvers/{timezone_resolver.rb → timezone.rb} +1 -1
- data/lib/facter/resolvers/{uname_resolver.rb → uname.rb} +1 -1
- data/lib/facter/resolvers/{uptime_resolver.rb → uptime.rb} +1 -1
- data/lib/facter/resolvers/virt_what.rb +1 -1
- data/lib/facter/resolvers/vmware.rb +1 -1
- data/lib/facter/resolvers/windows/aio_agent_version.rb +1 -1
- data/lib/facter/resolvers/windows/{dmi_bios_resolver.rb → dmi_bios.rb} +1 -1
- data/lib/facter/resolvers/windows/{dmi_computersystem_resolver.rb → dmi_computersystem.rb} +1 -1
- data/lib/facter/resolvers/windows/ffi/network_utils.rb +1 -2
- data/lib/facter/resolvers/windows/{fips_resolver.rb → fips.rb} +1 -1
- data/lib/facter/resolvers/windows/{hardware_architecture_resolver.rb → hardware_architecture.rb} +1 -1
- data/lib/facter/resolvers/windows/{identity_resolver.rb → identity.rb} +1 -1
- data/lib/facter/resolvers/windows/{kernel_resolver.rb → kernel.rb} +1 -1
- data/lib/facter/resolvers/windows/{memory_resolver.rb → memory.rb} +1 -1
- data/lib/facter/resolvers/windows/{netkvm_resolver.rb → netkvm.rb} +1 -1
- data/lib/facter/resolvers/windows/{networking_resolver.rb → networking.rb} +19 -2
- data/lib/facter/resolvers/windows/{processors_resolver.rb → processors.rb} +1 -1
- data/lib/facter/resolvers/windows/{product_release_resolver.rb → product_release.rb} +1 -1
- data/lib/facter/resolvers/windows/ssh.rb +1 -1
- data/lib/facter/resolvers/windows/{system32_resolver.rb → system32.rb} +1 -1
- data/lib/facter/resolvers/windows/{uptime_resolver.rb → uptime.rb} +1 -1
- data/lib/facter/resolvers/windows/{virtualization_resolver.rb → virtualization.rb} +1 -1
- data/lib/facter/resolvers/windows/{win_os_description_resolver.rb → win_os_description.rb} +1 -1
- data/lib/facter/resolvers/{wpar_resolver.rb → wpar.rb} +1 -1
- data/lib/facter/resolvers/xen.rb +1 -1
- data/lib/facter/resolvers/zfs.rb +1 -1
- data/lib/facter/resolvers/zpool.rb +1 -1
- data/lib/facter/templates/man.erb +8 -0
- data/lib/facter/util/facts/facts_utils.rb +33 -0
- data/lib/facter/util/facts/unit_converter.rb +11 -4
- data/lib/facter/util/linux/dhcp.rb +86 -0
- data/lib/facter/util/linux/routing_table.rb +60 -0
- data/lib/facter/util/linux/socket_parser.rb +114 -0
- data/lib/facter/util/resolvers/ffi/hostname.rb +70 -0
- data/lib/facter/util/utils.rb +0 -4
- data/lib/facter/version.rb +1 -1
- metadata +124 -83
- data/lib/facter/facts/linux/cloud.rb +0 -15
- data/lib/facter/resolvers/cloud.rb +0 -39
- data/lib/facter/resolvers/networking_linux_resolver.rb +0 -258
- data/lib/facter/resolvers/redhat_release_resolver.rb +0 -55
- 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
|
data/lib/facter/util/utils.rb
CHANGED
data/lib/facter/version.rb
CHANGED
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.
|
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:
|
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/
|
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/
|
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/
|
841
|
-
- lib/facter/resolvers/aix/
|
842
|
-
- lib/facter/resolvers/aix/
|
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/
|
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/
|
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/
|
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/
|
863
|
-
- lib/facter/resolvers/
|
864
|
-
- lib/facter/resolvers/
|
865
|
-
- lib/facter/resolvers/
|
866
|
-
- lib/facter/resolvers/freebsd/
|
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/
|
869
|
-
- lib/facter/resolvers/freebsd/
|
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/
|
872
|
-
- lib/facter/resolvers/freebsd/
|
873
|
-
- lib/facter/resolvers/freebsd/
|
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/
|
876
|
-
- lib/facter/resolvers/
|
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/
|
881
|
-
- lib/facter/resolvers/
|
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/
|
884
|
-
- lib/facter/resolvers/macosx/
|
885
|
-
- lib/facter/resolvers/macosx/
|
886
|
-
- lib/facter/resolvers/macosx/
|
887
|
-
- lib/facter/resolvers/macosx/
|
888
|
-
- lib/facter/resolvers/macosx/
|
889
|
-
- lib/facter/resolvers/macosx/
|
890
|
-
- lib/facter/resolvers/macosx/
|
891
|
-
- lib/facter/resolvers/
|
892
|
-
- lib/facter/resolvers/
|
893
|
-
- lib/facter/resolvers/
|
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/
|
932
|
+
- lib/facter/resolvers/os_release.rb
|
897
933
|
- lib/facter/resolvers/partitions.rb
|
898
|
-
- lib/facter/resolvers/
|
899
|
-
- lib/facter/resolvers/
|
900
|
-
- lib/facter/resolvers/
|
901
|
-
- lib/facter/resolvers/
|
902
|
-
- lib/facter/resolvers/
|
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/
|
920
|
-
- lib/facter/resolvers/
|
921
|
-
- lib/facter/resolvers/
|
922
|
-
- lib/facter/resolvers/
|
923
|
-
- lib/facter/resolvers/
|
924
|
-
- lib/facter/resolvers/
|
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/
|
929
|
-
- lib/facter/resolvers/windows/
|
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/
|
943
|
-
- lib/facter/resolvers/windows/
|
944
|
-
- lib/facter/resolvers/windows/
|
945
|
-
- lib/facter/resolvers/windows/
|
946
|
-
- lib/facter/resolvers/windows/
|
947
|
-
- lib/facter/resolvers/windows/
|
948
|
-
- lib/facter/resolvers/windows/
|
949
|
-
- lib/facter/resolvers/windows/
|
950
|
-
- lib/facter/resolvers/windows/
|
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/
|
953
|
-
- lib/facter/resolvers/windows/
|
954
|
-
- lib/facter/resolvers/windows/
|
955
|
-
- lib/facter/resolvers/windows/
|
956
|
-
- lib/facter/resolvers/
|
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.
|
1046
|
+
rubygems_version: 3.0.0
|
1006
1047
|
signing_key:
|
1007
1048
|
specification_version: 4
|
1008
1049
|
summary: New version of Facter
|