facterdb 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +5 -6
- data/CHANGELOG.md +12 -0
- data/bin/legacy-facts-striper +127 -0
- data/database/list_arch_os_facter.md +6 -16
- data/database/list_facter_os_arch.md +211 -227
- data/database/list_os_arch_facter.md +45 -56
- data/database/list_os_facter_arch.md +210 -229
- data/database/table.md +0 -3
- data/facts/4.0/almalinux-8-x86_64.facts +0 -63
- data/facts/4.0/almalinux-9-x86_64.facts +0 -59
- data/facts/4.0/debian-11-x86_64.facts +0 -58
- data/facts/4.0/freebsd-11-x86_64.facts +0 -42
- data/facts/4.0/freebsd-12-x86_64.facts +0 -42
- data/facts/4.0/freebsd-13-x86_64.facts +0 -42
- data/facts/4.0/opensuse-15-x86_64.facts +0 -54
- data/facts/4.0/oraclelinux-7-x86_64.facts +23 -16
- data/facts/4.0/redhat-8-x86_64.facts +0 -64
- data/facts/4.0/rocky-8-x86_64.facts +0 -60
- data/facts/4.0/rocky-9-x86_64.facts +0 -64
- data/facts/4.0/scientific-7-x86_64.facts +23 -16
- data/facts/4.0/solaris-11-sun4v.facts +0 -6
- data/facts/4.0/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.0/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.0/ubuntu-21.04-x86_64.facts +0 -60
- data/facts/4.0/ubuntu-21.10-x86_64.facts +0 -60
- data/facts/4.1/almalinux-8-x86_64.facts +0 -63
- data/facts/4.1/almalinux-9-x86_64.facts +0 -59
- data/facts/4.1/debian-11-x86_64.facts +0 -58
- data/facts/4.1/freebsd-11-x86_64.facts +0 -42
- data/facts/4.1/freebsd-12-x86_64.facts +0 -42
- data/facts/4.1/freebsd-13-x86_64.facts +0 -42
- data/facts/4.1/opensuse-15-x86_64.facts +0 -54
- data/facts/4.1/redhat-8-x86_64.facts +0 -64
- data/facts/4.1/rocky-8-x86_64.facts +0 -60
- data/facts/4.1/rocky-9-x86_64.facts +0 -64
- data/facts/4.1/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.1/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.1/ubuntu-21.04-x86_64.facts +0 -60
- data/facts/4.1/ubuntu-21.10-x86_64.facts +0 -60
- data/facts/4.2/almalinux-8-x86_64.facts +0 -59
- data/facts/4.2/almalinux-9-x86_64.facts +0 -59
- data/facts/4.2/amazon-2022-x86_64.facts +0 -7
- data/facts/4.2/archlinux-x86_64.facts +0 -54
- data/facts/4.2/centos-9-x86_64.facts +0 -62
- data/facts/4.2/darwin-20-x86_64.facts +1 -63
- data/facts/4.2/debian-11-x86_64.facts +0 -58
- data/facts/4.2/debian-12-i386.facts +0 -58
- data/facts/4.2/debian-12-x86_64.facts +0 -58
- data/facts/4.2/fedora-36-x86_64.facts +0 -63
- data/facts/4.2/fedora-37-x86_64.facts +0 -63
- data/facts/4.2/fedora-38-x86_64.facts +0 -62
- data/facts/4.2/fedora-39-x86_64.facts +0 -62
- data/facts/4.2/freebsd-11-x86_64.facts +0 -42
- data/facts/4.2/freebsd-12-x86_64.facts +0 -42
- data/facts/4.2/freebsd-13-x86_64.facts +0 -42
- data/facts/4.2/gentoo-2-x86_64.facts +0 -65
- data/facts/4.2/opensuse-15-x86_64.facts +0 -54
- data/facts/4.2/oraclelinux-7-x86_64.facts +0 -63
- data/facts/4.2/oraclelinux-8-x86_64.facts +0 -63
- data/facts/4.2/oraclelinux-9-x86_64.facts +0 -12
- data/facts/4.2/popos-21.10-x86_64.facts +0 -36
- data/facts/4.2/redhat-8-x86_64.facts +0 -64
- data/facts/4.2/redhat-9-x86_64.facts +0 -64
- data/facts/4.2/rocky-8-x86_64.facts +0 -60
- data/facts/4.2/rocky-9-x86_64.facts +0 -64
- data/facts/4.2/scientific-7-x86_64.facts +0 -63
- data/facts/4.2/sles-12-x86_64.facts +0 -54
- data/facts/4.2/sles-15-x86_64.facts +0 -58
- data/facts/4.2/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.2/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.2/ubuntu-21.04-x86_64.facts +0 -60
- data/facts/4.2/ubuntu-21.10-x86_64.facts +0 -60
- data/facts/4.2/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.2/ubuntu-22.10-x86_64.facts +0 -60
- data/facts/4.2/windows-10-x86_64.facts +1 -44
- data/facts/4.2/windows-11-x86_64.facts +1 -44
- data/facts/4.2/windows-2012 r2-x86_64.facts +1 -42
- data/facts/4.2/windows-2012-x86_64.facts +7 -42
- data/facts/4.2/windows-2016-core-x86_64.facts +7 -43
- data/facts/4.2/windows-2016-x86_64.facts +7 -43
- data/facts/4.2/windows-2019-core-x86_64.facts +1 -43
- data/facts/4.2/windows-2019-x86_64.facts +1 -43
- data/facts/4.2/windows-2022-core-x86_64.facts +1 -44
- data/facts/4.2/windows-2022-x86_64.facts +1 -44
- data/facts/4.3/almalinux-8-x86_64.facts +0 -59
- data/facts/4.3/almalinux-9-x86_64.facts +0 -59
- data/facts/4.3/archlinux-x86_64.facts +0 -54
- data/facts/4.3/centos-9-x86_64.facts +0 -62
- data/facts/4.3/debian-11-x86_64.facts +0 -58
- data/facts/4.3/debian-12-i386.facts +0 -58
- data/facts/4.3/debian-12-x86_64.facts +0 -58
- data/facts/4.3/fedora-36-x86_64.facts +0 -63
- data/facts/4.3/fedora-37-x86_64.facts +0 -63
- data/facts/4.3/fedora-38-x86_64.facts +0 -62
- data/facts/4.3/fedora-39-x86_64.facts +0 -62
- data/facts/4.3/freebsd-13-x86_64.facts +0 -43
- data/facts/4.3/gentoo-2-x86_64.facts +0 -65
- data/facts/4.3/opensuse-15-x86_64.facts +0 -54
- data/facts/4.3/oraclelinux-8-x86_64.facts +0 -68
- data/facts/4.3/oraclelinux-9-x86_64.facts +0 -60
- data/facts/4.3/redhat-8-x86_64.facts +0 -64
- data/facts/4.3/redhat-9-x86_64.facts +0 -64
- data/facts/4.3/rocky-8-x86_64.facts +0 -64
- data/facts/4.3/rocky-9-x86_64.facts +0 -64
- data/facts/4.3/sles-12-x86_64.facts +0 -61
- data/facts/4.3/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.3/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.3/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.3/windows-10-x86_64.facts +1 -44
- data/facts/4.3/windows-11-x86_64.facts +1 -44
- data/facts/4.3/windows-2012 r2-x86_64.facts +2 -43
- data/facts/4.3/windows-2012-x86_64.facts +1 -42
- data/facts/4.3/windows-2016-core-x86_64.facts +1 -43
- data/facts/4.3/windows-2016-x86_64.facts +1 -43
- data/facts/4.3/windows-2019-core-x86_64.facts +1 -43
- data/facts/4.3/windows-2019-x86_64.facts +1 -43
- data/facts/4.3/windows-2022-core-x86_64.facts +1 -44
- data/facts/4.3/windows-2022-x86_64.facts +1 -44
- data/facts/4.4/almalinux-8-x86_64.facts +0 -59
- data/facts/4.4/almalinux-9-x86_64.facts +0 -59
- data/facts/4.4/archlinux-x86_64.facts +0 -54
- data/facts/4.4/centos-9-x86_64.facts +0 -62
- data/facts/4.4/debian-11-x86_64.facts +0 -58
- data/facts/4.4/debian-12-i386.facts +0 -58
- data/facts/4.4/debian-12-x86_64.facts +0 -58
- data/facts/4.4/fedora-36-x86_64.facts +0 -63
- data/facts/4.4/fedora-37-x86_64.facts +0 -63
- data/facts/4.4/fedora-38-x86_64.facts +0 -62
- data/facts/4.4/fedora-39-x86_64.facts +0 -62
- data/facts/4.4/freebsd-13-x86_64.facts +0 -41
- data/facts/4.4/gentoo-2-x86_64.facts +0 -65
- data/facts/4.4/opensuse-15-x86_64.facts +0 -54
- data/facts/4.4/oraclelinux-8-x86_64.facts +0 -68
- data/facts/4.4/oraclelinux-9-x86_64.facts +0 -60
- data/facts/4.4/redhat-8-x86_64.facts +0 -64
- data/facts/4.4/redhat-9-x86_64.facts +0 -64
- data/facts/4.4/rocky-8-x86_64.facts +0 -64
- data/facts/4.4/rocky-9-x86_64.facts +0 -64
- data/facts/4.4/sles-12-x86_64.facts +0 -61
- data/facts/4.4/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.4/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.4/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.4/windows-10-x86_64.facts +1 -44
- data/facts/4.4/windows-11-x86_64.facts +1 -44
- data/facts/4.4/windows-2012 r2-x86_64.facts +1 -42
- data/facts/4.4/windows-2012-x86_64.facts +1 -42
- data/facts/4.4/windows-2016-core-x86_64.facts +1 -43
- data/facts/4.4/windows-2016-x86_64.facts +2 -44
- data/facts/4.4/windows-2019-core-x86_64.facts +1 -43
- data/facts/4.4/windows-2019-x86_64.facts +1 -43
- data/facts/4.4/windows-2022-core-x86_64.facts +1 -44
- data/facts/4.4/windows-2022-x86_64.facts +1 -44
- data/facts/4.5/almalinux-8-x86_64.facts +0 -59
- data/facts/4.5/almalinux-9-x86_64.facts +0 -59
- data/facts/4.5/amazon-2-x86_64.facts +0 -54
- data/facts/4.5/archlinux-x86_64.facts +0 -54
- data/facts/4.5/centos-9-x86_64.facts +0 -62
- data/facts/4.5/debian-11-x86_64.facts +0 -58
- data/facts/4.5/debian-12-x86_64.facts +0 -58
- data/facts/4.5/fedora-36-x86_64.facts +0 -63
- data/facts/4.5/fedora-37-x86_64.facts +0 -63
- data/facts/4.5/fedora-38-x86_64.facts +0 -62
- data/facts/4.5/fedora-39-x86_64.facts +0 -62
- data/facts/4.5/freebsd-12-x86_64.facts +0 -43
- data/facts/4.5/freebsd-13-x86_64.facts +0 -43
- data/facts/4.5/gentoo-2-x86_64.facts +0 -65
- data/facts/4.5/opensuse-15-x86_64.facts +0 -54
- data/facts/4.5/oraclelinux-8-x86_64.facts +0 -68
- data/facts/4.5/oraclelinux-9-x86_64.facts +0 -60
- data/facts/4.5/redhat-8-x86_64.facts +0 -64
- data/facts/4.5/redhat-9-x86_64.facts +0 -64
- data/facts/4.5/rocky-8-x86_64.facts +0 -64
- data/facts/4.5/rocky-9-x86_64.facts +0 -64
- data/facts/4.5/ubuntu-18.04-x86_64.facts +0 -60
- data/facts/4.5/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.5/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.5/windows-10-x86_64.facts +1 -44
- data/facts/4.5/windows-11-x86_64.facts +1 -44
- data/facts/4.5/windows-2019-x86_64.facts +1 -43
- data/facts/4.5/windows-2022-x86_64.facts +1 -44
- data/facts/4.6/almalinux-8-x86_64.facts +0 -59
- data/facts/4.6/almalinux-9-x86_64.facts +0 -59
- data/facts/4.6/archlinux-x86_64.facts +0 -54
- data/facts/4.6/centos-9-x86_64.facts +0 -62
- data/facts/4.6/debian-11-x86_64.facts +0 -58
- data/facts/4.6/debian-12-x86_64.facts +0 -58
- data/facts/4.6/fedora-36-x86_64.facts +0 -63
- data/facts/4.6/fedora-37-x86_64.facts +0 -63
- data/facts/4.6/fedora-38-x86_64.facts +0 -62
- data/facts/4.6/fedora-39-x86_64.facts +0 -62
- data/facts/4.6/gentoo-2-x86_64.facts +0 -65
- data/facts/4.6/oraclelinux-8-x86_64.facts +0 -68
- data/facts/4.6/oraclelinux-9-x86_64.facts +0 -60
- data/facts/4.6/redhat-8-x86_64.facts +0 -64
- data/facts/4.6/redhat-9-x86_64.facts +0 -64
- data/facts/4.6/rocky-9-x86_64.facts +0 -64
- data/facts/4.6/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.6/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.6/windows-10-x86_64.facts +1 -44
- data/facts/4.6/windows-11-x86_64.facts +1 -44
- data/facts/4.6/windows-2019-x86_64.facts +1 -43
- data/facts/4.6/windows-2022-x86_64.facts +1 -44
- data/facts/4.7/almalinux-8-x86_64.facts +0 -59
- data/facts/4.7/almalinux-9-x86_64.facts +0 -59
- data/facts/4.7/archlinux-x86_64.facts +0 -54
- data/facts/4.7/centos-9-x86_64.facts +0 -62
- data/facts/4.7/debian-11-x86_64.facts +0 -58
- data/facts/4.7/debian-12-x86_64.facts +0 -58
- data/facts/4.7/fedora-36-x86_64.facts +0 -63
- data/facts/4.7/fedora-37-x86_64.facts +0 -63
- data/facts/4.7/fedora-38-x86_64.facts +0 -62
- data/facts/4.7/fedora-39-x86_64.facts +0 -62
- data/facts/4.7/gentoo-2-x86_64.facts +0 -65
- data/facts/4.7/openbsd-7-x86_64.facts +0 -31
- data/facts/4.7/opensuse-15-x86_64.facts +0 -54
- data/facts/4.7/oraclelinux-8-x86_64.facts +0 -68
- data/facts/4.7/oraclelinux-9-x86_64.facts +0 -60
- data/facts/4.7/redhat-8-x86_64.facts +0 -64
- data/facts/4.7/redhat-9-x86_64.facts +0 -64
- data/facts/4.7/rocky-9-x86_64.facts +0 -64
- data/facts/4.7/ubuntu-20.04-x86_64.facts +0 -60
- data/facts/4.7/ubuntu-22.04-x86_64.facts +0 -60
- data/facts/4.7/windows-10-x86_64.facts +1 -44
- data/facts/4.7/windows-11-x86_64.facts +1 -44
- data/facts/4.7/windows-2019-x86_64.facts +1 -43
- data/facts/4.7/windows-2022-x86_64.facts +1 -44
- data/facts/Vagrantfile +0 -32
- data/facts/get_facts.sh +10 -10
- data/facts/windows_get_facts.ps1 +1 -1
- data/lib/facterdb/bin.rb +1 -1
- data/lib/facterdb/version.rb +1 -1
- data/lib/facterdb.rb +0 -31
- data/spec/facter_db_spec.rb +5 -90
- data/spec/facts_spec.rb +16 -2
- metadata +4 -18
- data/facts/4.0/centos-7-x86_64.facts +0 -694
- data/facts/4.0/centos-8-x86_64.facts +0 -512
- data/facts/4.0/redhat-7-x86_64.facts +0 -694
- data/facts/4.1/centos-7-x86_64.facts +0 -582
- data/facts/4.1/centos-8-x86_64.facts +0 -514
- data/facts/4.2/centos-7-x86_64.facts +0 -593
- data/facts/4.2/centos-8-x86_64.facts +0 -521
- data/facts/4.2/redhat-7-x86_64.facts +0 -536
- data/facts/4.3/centos-7-x86_64.facts +0 -592
- data/facts/4.3/centos-8-x86_64.facts +0 -521
- data/facts/4.4/centos-7-x86_64.facts +0 -592
- data/facts/4.4/centos-8-x86_64.facts +0 -521
- data/facts/4.5/centos-7-x86_64.facts +0 -602
- data/facts/4.5/centos-8-x86_64.facts +0 -527
- data/facts/4.6/centos-8-x86_64.facts +0 -529
- data/facts/4.7/centos-8-x86_64.facts +0 -529
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53a466250e52842b1a9fc76c086fe1593619bc5062f8f328d31f55e53502ba0c
|
4
|
+
data.tar.gz: ea834e3ef4301cd337bf701b6a756368fc3f19f4d3e520757668fab823ee6859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdeb267e16c68f4a9838aa20e550cd8acb563b7a4521d54eaa37b06a37aaa5fee63cec197c2bb76462d7733d9630d61720dcb329b97b1a9ce651730bc8c389a1
|
7
|
+
data.tar.gz: f7a9786b5db64fb150de5269dbaaa92e5f491c704bb4db34702db68ff69f00e24f294fbff5dae405a04771c461cee80220ffed879bad0d00e413044c513d3fe6
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-06-08
|
3
|
+
# on 2024-06-10 08:58:13 UTC using RuboCop version 1.63.5.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -63,7 +63,7 @@ RSpec/DescribeClass:
|
|
63
63
|
- '**/spec/views/**/*'
|
64
64
|
- 'spec/facts_spec.rb'
|
65
65
|
|
66
|
-
# Offense count:
|
66
|
+
# Offense count: 10
|
67
67
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
68
68
|
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
|
69
69
|
# SupportedStyles: described_class, explicit
|
@@ -80,12 +80,12 @@ RSpec/ExampleLength:
|
|
80
80
|
RSpec/MultipleExpectations:
|
81
81
|
Max: 7
|
82
82
|
|
83
|
-
# Offense count:
|
83
|
+
# Offense count: 11
|
84
84
|
# Configuration parameters: AllowSubject.
|
85
85
|
RSpec/MultipleMemoizedHelpers:
|
86
86
|
Max: 6
|
87
87
|
|
88
|
-
# Offense count:
|
88
|
+
# Offense count: 3
|
89
89
|
# Configuration parameters: AllowedGroups.
|
90
90
|
RSpec/NestedGroups:
|
91
91
|
Max: 4
|
@@ -98,13 +98,12 @@ RSpec/PredicateMatcher:
|
|
98
98
|
Exclude:
|
99
99
|
- 'spec/facter_db_spec.rb'
|
100
100
|
|
101
|
-
# Offense count:
|
101
|
+
# Offense count: 1
|
102
102
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
103
103
|
# Configuration parameters: MinBranchesCount.
|
104
104
|
Style/CaseLikeIf:
|
105
105
|
Exclude:
|
106
106
|
- 'Rakefile'
|
107
|
-
- 'lib/facterdb.rb'
|
108
107
|
|
109
108
|
# Offense count: 2
|
110
109
|
# Configuration parameters: AllowedConstants.
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.0.0](https://rubygems.org/gems/facterdb/versions/3.0.0) (2024-06-10)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.1.0...3.0.0)
|
6
|
+
|
7
|
+
**Breaking changes:**
|
8
|
+
|
9
|
+
- Drop deprecated self.get\_os\_facts\(\) [\#365](https://github.com/voxpupuli/facterdb/pull/365) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
- Remove EoL CentOS 8 factsets [\#361](https://github.com/voxpupuli/facterdb/pull/361) ([bastelfreak](https://github.com/bastelfreak))
|
11
|
+
- Remove EoL CentOS 7 factsets [\#360](https://github.com/voxpupuli/facterdb/pull/360) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
- Remove deprecated RedHat 7 facts [\#359](https://github.com/voxpupuli/facterdb/pull/359) ([bastelfreak](https://github.com/bastelfreak))
|
13
|
+
- Remove Legacy Facts [\#266](https://github.com/voxpupuli/facterdb/pull/266) ([smortex](https://github.com/smortex))
|
14
|
+
|
3
15
|
## [2.1.0](https://rubygems.org/gems/facterdb/versions/2.1.0) (2024-06-08)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.0.1...2.1.0)
|
@@ -0,0 +1,127 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# This list of legacy fact was obtained from the facter source code:
|
7
|
+
# grep --no-filename -r ALIASES' =' lib | sed -Ee "s/^ *ALIASES = ('|%w\\[)//" -e "s/('|].freeze)\$//" | tr ' ' '\n' | sort | uniq
|
8
|
+
LEGACY_FACTS = %w[
|
9
|
+
architecture
|
10
|
+
augeasversion
|
11
|
+
bios_release_date
|
12
|
+
bios_vendor
|
13
|
+
bios_version
|
14
|
+
blockdevice_.*_model
|
15
|
+
blockdevice_.*_size
|
16
|
+
blockdevice_.*_vendor
|
17
|
+
blockdevices
|
18
|
+
boardassettag
|
19
|
+
boardmanufacturer
|
20
|
+
boardproductname
|
21
|
+
boardserialnumber
|
22
|
+
chassisassettag
|
23
|
+
chassistype
|
24
|
+
domain
|
25
|
+
fqdn
|
26
|
+
gid
|
27
|
+
hardwareisa
|
28
|
+
hardwaremodel
|
29
|
+
hostname
|
30
|
+
id
|
31
|
+
ipaddress
|
32
|
+
ipaddress6
|
33
|
+
lsbdistcodename
|
34
|
+
lsbdistdescription
|
35
|
+
lsbdistid
|
36
|
+
lsbdistrelease
|
37
|
+
lsbmajdistrelease
|
38
|
+
lsbminordistrelease
|
39
|
+
lsbrelease
|
40
|
+
macaddress
|
41
|
+
macosx_buildversion
|
42
|
+
macosx_productname
|
43
|
+
macosx_productversion
|
44
|
+
macosx_productversion_major
|
45
|
+
macosx_productversion_minor
|
46
|
+
manufacturer
|
47
|
+
memoryfree
|
48
|
+
memoryfree_mb
|
49
|
+
memorysize
|
50
|
+
memorysize_mb
|
51
|
+
netmask
|
52
|
+
netmask6
|
53
|
+
network
|
54
|
+
network6
|
55
|
+
operatingsystem
|
56
|
+
operatingsystemmajrelease
|
57
|
+
operatingsystemrelease
|
58
|
+
osfamily
|
59
|
+
physicalprocessorcount
|
60
|
+
processor\d+
|
61
|
+
processorcount
|
62
|
+
productname
|
63
|
+
rubyplatform
|
64
|
+
rubysitedir
|
65
|
+
rubyversion
|
66
|
+
scope6
|
67
|
+
selinux
|
68
|
+
selinux_config_mode
|
69
|
+
selinux_config_policy
|
70
|
+
selinux_current_mode
|
71
|
+
selinux_enforced
|
72
|
+
selinux_policyversion
|
73
|
+
serialnumber
|
74
|
+
sp_boot_mode
|
75
|
+
sp_boot_rom_version
|
76
|
+
sp_boot_volume
|
77
|
+
sp_cpu_type
|
78
|
+
sp_current_processor_speed
|
79
|
+
sp_kernel_version
|
80
|
+
sp_l2_cache_core
|
81
|
+
sp_l3_cache
|
82
|
+
sp_local_host_name
|
83
|
+
sp_machine_model
|
84
|
+
sp_machine_name
|
85
|
+
sp_number_processors
|
86
|
+
sp_os_version
|
87
|
+
sp_packages
|
88
|
+
sp_physical_memory
|
89
|
+
sp_platform_uuid
|
90
|
+
sp_secure_vm
|
91
|
+
sp_serial_number
|
92
|
+
sp_smc_version_system
|
93
|
+
sp_uptime
|
94
|
+
sp_user_name
|
95
|
+
swapencrypted
|
96
|
+
swapfree
|
97
|
+
swapfree_mb
|
98
|
+
swapsize
|
99
|
+
swapsize_mb
|
100
|
+
system32
|
101
|
+
uptime
|
102
|
+
uptime_days
|
103
|
+
uptime_hours
|
104
|
+
uptime_seconds
|
105
|
+
uuid
|
106
|
+
windows_display_version
|
107
|
+
windows_edition_id
|
108
|
+
windows_installation_type
|
109
|
+
windows_product_name
|
110
|
+
windows_release_id
|
111
|
+
xendomains
|
112
|
+
zonename
|
113
|
+
].map { |re| Regexp.new("\\A#{re}\\z") }
|
114
|
+
|
115
|
+
if ARGV.empty?
|
116
|
+
warn "usage: #{$PROGRAM_NAME} facts..."
|
117
|
+
exit(1)
|
118
|
+
end
|
119
|
+
|
120
|
+
ARGV.each do |filename|
|
121
|
+
puts filename
|
122
|
+
facts = JSON.parse(File.read(filename))
|
123
|
+
facts.delete_if do |key|
|
124
|
+
LEGACY_FACTS.any? { |legacy_fact| key.match(legacy_fact) }
|
125
|
+
end
|
126
|
+
File.write(filename, "#{JSON.pretty_generate(facts)}\n")
|
127
|
+
end
|
@@ -2,39 +2,38 @@
|
|
2
2
|
|
3
3
|
# Available Facts Grouped By Arch -> OS
|
4
4
|
|
5
|
-
-
|
5
|
+
- Missing Value
|
6
6
|
- AlmaLinux 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
7
7
|
- AlmaLinux 9: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
8
|
-
- CentOS 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
9
8
|
- Debian 11: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
10
9
|
- FreeBSD 11: 4.0 4.1 4.2
|
11
10
|
- FreeBSD 12: 4.0 4.1 4.2 4.5
|
12
11
|
- FreeBSD 13: 4.0 4.1 4.2 4.3 4.4 4.5
|
13
12
|
- openSUSE 15: 4.0 4.1 4.2 4.3 4.4 4.5 4.7
|
13
|
+
- OracleLinux 7: 4.0 4.2
|
14
14
|
- RedHat 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
15
15
|
- Rocky 8: 4.0 4.1 4.2 4.3 4.4 4.5
|
16
16
|
- Rocky 9: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
17
|
+
- Scientific 7: 4.0 4.2
|
18
|
+
- Solaris 11: 4.0
|
17
19
|
- Ubuntu 18.04: 4.0 4.1 4.2 4.3 4.4 4.5
|
18
20
|
- Ubuntu 20.04: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
|
19
21
|
- Ubuntu 21.04: 4.0 4.1 4.2
|
20
22
|
- Ubuntu 21.10: 4.0 4.1 4.2
|
21
|
-
-
|
23
|
+
- Amazon 2022: 4.2
|
22
24
|
- Archlinux: 4.2 4.3 4.4 4.5 4.6 4.7
|
23
25
|
- CentOS 9: 4.2 4.3 4.4 4.5 4.6 4.7
|
24
26
|
- Darwin 20: 4.2
|
25
|
-
- Debian 12: 4.2 4.3 4.4 4.5 4.6 4.7
|
27
|
+
- Debian 12: 4.2 4.2 4.3 4.3 4.4 4.4 4.5 4.6 4.7
|
26
28
|
- Fedora 36: 4.2 4.3 4.4 4.5 4.6 4.7
|
27
29
|
- Fedora 37: 4.2 4.3 4.4 4.5 4.6 4.7
|
28
30
|
- Fedora 38: 4.2 4.3 4.4 4.5 4.6 4.7
|
29
31
|
- Fedora 39: 4.2 4.3 4.4 4.5 4.6 4.7
|
30
32
|
- Gentoo: 4.2 4.3 4.4 4.5 4.6 4.7
|
31
|
-
- OracleLinux 7: 4.2
|
32
33
|
- OracleLinux 8: 4.2 4.3 4.4 4.5 4.6 4.7
|
33
34
|
- OracleLinux 9: 4.2 4.3 4.4 4.5 4.6 4.7
|
34
35
|
- Pop!_OS 21.10: 4.2
|
35
|
-
- RedHat 7: 4.2
|
36
36
|
- RedHat 9: 4.2 4.3 4.4 4.5 4.6 4.7
|
37
|
-
- Scientific 7: 4.2
|
38
37
|
- SLES 12: 4.2 4.3 4.4
|
39
38
|
- SLES 15: 4.2
|
40
39
|
- Ubuntu 22.04: 4.2 4.3 4.4 4.5 4.6 4.7
|
@@ -51,12 +50,3 @@
|
|
51
50
|
- Windows Server 2022: 4.2 4.3 4.4 4.5 4.6 4.7
|
52
51
|
- Amazon 2: 4.5
|
53
52
|
- OpenBSD 7.5: 4.7
|
54
|
-
- Missing Value
|
55
|
-
- CentOS 7: 4.0
|
56
|
-
- OracleLinux 7: 4.0
|
57
|
-
- RedHat 7: 4.0
|
58
|
-
- Scientific 7: 4.0
|
59
|
-
- Solaris 11: 4.0
|
60
|
-
- Amazon 2022: 4.2
|
61
|
-
- i386
|
62
|
-
- Debian 12: 4.2 4.3 4.4
|