facterdb 2.1.0 → 3.1.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 +10 -11
- data/CHANGELOG.md +24 -0
- data/bin/legacy-facts-striper +138 -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 -88
- data/facts/4.0/almalinux-9-x86_64.facts +0 -84
- data/facts/4.0/debian-11-x86_64.facts +0 -86
- data/facts/4.0/freebsd-11-x86_64.facts +0 -54
- data/facts/4.0/freebsd-12-x86_64.facts +0 -54
- data/facts/4.0/freebsd-13-x86_64.facts +0 -54
- data/facts/4.0/opensuse-15-x86_64.facts +0 -81
- data/facts/4.0/oraclelinux-7-x86_64.facts +1 -104
- data/facts/4.0/redhat-8-x86_64.facts +0 -89
- data/facts/4.0/rocky-8-x86_64.facts +0 -79
- data/facts/4.0/rocky-9-x86_64.facts +0 -89
- data/facts/4.0/scientific-7-x86_64.facts +1 -105
- data/facts/4.0/solaris-11-sun4v.facts +0 -46
- data/facts/4.0/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.0/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.0/ubuntu-21.04-x86_64.facts +0 -88
- data/facts/4.0/ubuntu-21.10-x86_64.facts +0 -88
- data/facts/4.1/almalinux-8-x86_64.facts +0 -88
- data/facts/4.1/almalinux-9-x86_64.facts +0 -84
- data/facts/4.1/debian-11-x86_64.facts +0 -86
- data/facts/4.1/freebsd-11-x86_64.facts +0 -54
- data/facts/4.1/freebsd-12-x86_64.facts +0 -54
- data/facts/4.1/freebsd-13-x86_64.facts +0 -54
- data/facts/4.1/opensuse-15-x86_64.facts +0 -81
- data/facts/4.1/redhat-8-x86_64.facts +0 -89
- data/facts/4.1/rocky-8-x86_64.facts +0 -79
- data/facts/4.1/rocky-9-x86_64.facts +0 -89
- data/facts/4.1/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.1/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.1/ubuntu-21.04-x86_64.facts +0 -88
- data/facts/4.1/ubuntu-21.10-x86_64.facts +0 -88
- data/facts/4.2/almalinux-8-x86_64.facts +0 -84
- data/facts/4.2/almalinux-9-x86_64.facts +0 -84
- data/facts/4.2/amazon-2022-x86_64.facts +0 -7
- data/facts/4.2/archlinux-x86_64.facts +0 -80
- data/facts/4.2/centos-9-x86_64.facts +0 -87
- data/facts/4.2/darwin-20-x86_64.facts +1 -101
- data/facts/4.2/debian-11-x86_64.facts +0 -84
- data/facts/4.2/debian-12-i386.facts +0 -84
- data/facts/4.2/debian-12-x86_64.facts +0 -84
- data/facts/4.2/fedora-36-x86_64.facts +0 -88
- data/facts/4.2/fedora-37-x86_64.facts +0 -88
- data/facts/4.2/fedora-38-x86_64.facts +0 -87
- data/facts/4.2/fedora-39-x86_64.facts +0 -87
- data/facts/4.2/freebsd-11-x86_64.facts +0 -54
- data/facts/4.2/freebsd-12-x86_64.facts +0 -54
- data/facts/4.2/freebsd-13-x86_64.facts +0 -54
- data/facts/4.2/gentoo-2-x86_64.facts +0 -90
- data/facts/4.2/opensuse-15-x86_64.facts +0 -81
- data/facts/4.2/oraclelinux-7-x86_64.facts +0 -98
- data/facts/4.2/oraclelinux-8-x86_64.facts +0 -96
- 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 -89
- data/facts/4.2/redhat-9-x86_64.facts +0 -89
- data/facts/4.2/rocky-8-x86_64.facts +0 -79
- data/facts/4.2/rocky-9-x86_64.facts +0 -89
- data/facts/4.2/scientific-7-x86_64.facts +0 -98
- data/facts/4.2/sles-12-x86_64.facts +0 -81
- data/facts/4.2/sles-15-x86_64.facts +0 -85
- data/facts/4.2/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.2/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.2/ubuntu-21.04-x86_64.facts +0 -88
- data/facts/4.2/ubuntu-21.10-x86_64.facts +0 -88
- data/facts/4.2/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.2/ubuntu-22.10-x86_64.facts +0 -88
- data/facts/4.2/windows-10-x86_64.facts +1 -57
- data/facts/4.2/windows-11-x86_64.facts +1 -57
- data/facts/4.2/windows-2012 r2-x86_64.facts +1 -55
- data/facts/4.2/windows-2012-x86_64.facts +1 -94
- data/facts/4.2/windows-2016-core-x86_64.facts +1 -95
- data/facts/4.2/windows-2016-x86_64.facts +1 -95
- data/facts/4.2/windows-2019-core-x86_64.facts +1 -56
- data/facts/4.2/windows-2019-x86_64.facts +1 -56
- data/facts/4.2/windows-2022-core-x86_64.facts +1 -57
- data/facts/4.2/windows-2022-x86_64.facts +1 -57
- data/facts/4.3/almalinux-8-x86_64.facts +0 -84
- data/facts/4.3/almalinux-9-x86_64.facts +0 -84
- data/facts/4.3/archlinux-x86_64.facts +0 -80
- data/facts/4.3/centos-9-x86_64.facts +0 -87
- data/facts/4.3/debian-11-x86_64.facts +0 -84
- data/facts/4.3/debian-12-i386.facts +0 -84
- data/facts/4.3/debian-12-x86_64.facts +0 -84
- data/facts/4.3/fedora-36-x86_64.facts +0 -88
- data/facts/4.3/fedora-37-x86_64.facts +0 -88
- data/facts/4.3/fedora-38-x86_64.facts +0 -87
- data/facts/4.3/fedora-39-x86_64.facts +0 -87
- data/facts/4.3/freebsd-13-x86_64.facts +0 -58
- data/facts/4.3/gentoo-2-x86_64.facts +0 -90
- data/facts/4.3/opensuse-15-x86_64.facts +0 -81
- data/facts/4.3/oraclelinux-8-x86_64.facts +0 -93
- data/facts/4.3/oraclelinux-9-x86_64.facts +0 -85
- data/facts/4.3/redhat-8-x86_64.facts +0 -89
- data/facts/4.3/redhat-9-x86_64.facts +0 -89
- data/facts/4.3/rocky-8-x86_64.facts +0 -89
- data/facts/4.3/rocky-9-x86_64.facts +0 -89
- data/facts/4.3/sles-12-x86_64.facts +0 -88
- data/facts/4.3/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.3/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.3/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.3/windows-10-x86_64.facts +1 -65
- data/facts/4.3/windows-11-x86_64.facts +1 -65
- data/facts/4.3/windows-2012 r2-x86_64.facts +2 -56
- data/facts/4.3/windows-2012-x86_64.facts +1 -55
- data/facts/4.3/windows-2016-core-x86_64.facts +1 -56
- data/facts/4.3/windows-2016-x86_64.facts +1 -56
- data/facts/4.3/windows-2019-core-x86_64.facts +1 -56
- data/facts/4.3/windows-2019-x86_64.facts +1 -64
- data/facts/4.3/windows-2022-core-x86_64.facts +1 -57
- data/facts/4.3/windows-2022-x86_64.facts +1 -65
- data/facts/4.4/almalinux-8-x86_64.facts +0 -84
- data/facts/4.4/almalinux-9-x86_64.facts +0 -84
- data/facts/4.4/archlinux-x86_64.facts +0 -80
- data/facts/4.4/centos-9-x86_64.facts +0 -87
- data/facts/4.4/debian-11-x86_64.facts +0 -84
- data/facts/4.4/debian-12-i386.facts +0 -84
- data/facts/4.4/debian-12-x86_64.facts +0 -84
- data/facts/4.4/fedora-36-x86_64.facts +0 -88
- data/facts/4.4/fedora-37-x86_64.facts +0 -88
- data/facts/4.4/fedora-38-x86_64.facts +0 -87
- data/facts/4.4/fedora-39-x86_64.facts +0 -87
- data/facts/4.4/freebsd-13-x86_64.facts +0 -56
- data/facts/4.4/gentoo-2-x86_64.facts +0 -90
- data/facts/4.4/opensuse-15-x86_64.facts +0 -81
- data/facts/4.4/oraclelinux-8-x86_64.facts +0 -93
- data/facts/4.4/oraclelinux-9-x86_64.facts +0 -85
- data/facts/4.4/redhat-8-x86_64.facts +0 -89
- data/facts/4.4/redhat-9-x86_64.facts +0 -89
- data/facts/4.4/rocky-8-x86_64.facts +0 -89
- data/facts/4.4/rocky-9-x86_64.facts +0 -89
- data/facts/4.4/sles-12-x86_64.facts +0 -88
- data/facts/4.4/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.4/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.4/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.4/windows-10-x86_64.facts +1 -65
- data/facts/4.4/windows-11-x86_64.facts +1 -65
- data/facts/4.4/windows-2012 r2-x86_64.facts +1 -55
- data/facts/4.4/windows-2012-x86_64.facts +1 -55
- data/facts/4.4/windows-2016-core-x86_64.facts +1 -56
- data/facts/4.4/windows-2016-x86_64.facts +2 -57
- data/facts/4.4/windows-2019-core-x86_64.facts +1 -56
- data/facts/4.4/windows-2019-x86_64.facts +1 -64
- data/facts/4.4/windows-2022-core-x86_64.facts +1 -57
- data/facts/4.4/windows-2022-x86_64.facts +1 -65
- data/facts/4.5/almalinux-8-x86_64.facts +0 -84
- data/facts/4.5/almalinux-9-x86_64.facts +0 -84
- data/facts/4.5/amazon-2-x86_64.facts +0 -80
- data/facts/4.5/archlinux-x86_64.facts +0 -80
- data/facts/4.5/centos-9-x86_64.facts +0 -87
- data/facts/4.5/debian-11-x86_64.facts +0 -84
- data/facts/4.5/debian-12-x86_64.facts +0 -84
- data/facts/4.5/fedora-36-x86_64.facts +0 -88
- data/facts/4.5/fedora-37-x86_64.facts +0 -88
- data/facts/4.5/fedora-38-x86_64.facts +0 -87
- data/facts/4.5/fedora-39-x86_64.facts +0 -87
- data/facts/4.5/freebsd-12-x86_64.facts +0 -58
- data/facts/4.5/freebsd-13-x86_64.facts +0 -58
- data/facts/4.5/gentoo-2-x86_64.facts +0 -90
- data/facts/4.5/opensuse-15-x86_64.facts +0 -81
- data/facts/4.5/oraclelinux-8-x86_64.facts +0 -93
- data/facts/4.5/oraclelinux-9-x86_64.facts +0 -85
- data/facts/4.5/redhat-8-x86_64.facts +0 -89
- data/facts/4.5/redhat-9-x86_64.facts +0 -89
- data/facts/4.5/rocky-8-x86_64.facts +0 -89
- data/facts/4.5/rocky-9-x86_64.facts +0 -89
- data/facts/4.5/ubuntu-18.04-x86_64.facts +0 -88
- data/facts/4.5/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.5/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.5/windows-10-x86_64.facts +1 -65
- data/facts/4.5/windows-11-x86_64.facts +1 -65
- data/facts/4.5/windows-2019-x86_64.facts +1 -64
- data/facts/4.5/windows-2022-x86_64.facts +1 -65
- data/facts/4.6/almalinux-8-x86_64.facts +0 -84
- data/facts/4.6/almalinux-9-x86_64.facts +0 -84
- data/facts/4.6/archlinux-x86_64.facts +0 -80
- data/facts/4.6/centos-9-x86_64.facts +0 -87
- data/facts/4.6/debian-11-x86_64.facts +0 -84
- data/facts/4.6/debian-12-x86_64.facts +0 -84
- data/facts/4.6/fedora-36-x86_64.facts +0 -88
- data/facts/4.6/fedora-37-x86_64.facts +0 -88
- data/facts/4.6/fedora-38-x86_64.facts +0 -87
- data/facts/4.6/fedora-39-x86_64.facts +0 -87
- data/facts/4.6/gentoo-2-x86_64.facts +0 -90
- data/facts/4.6/oraclelinux-8-x86_64.facts +0 -93
- data/facts/4.6/oraclelinux-9-x86_64.facts +0 -85
- data/facts/4.6/redhat-8-x86_64.facts +0 -89
- data/facts/4.6/redhat-9-x86_64.facts +0 -89
- data/facts/4.6/rocky-9-x86_64.facts +0 -89
- data/facts/4.6/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.6/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.6/windows-10-x86_64.facts +1 -65
- data/facts/4.6/windows-11-x86_64.facts +1 -65
- data/facts/4.6/windows-2019-x86_64.facts +1 -64
- data/facts/4.6/windows-2022-x86_64.facts +1 -65
- data/facts/4.7/almalinux-8-x86_64.facts +0 -84
- data/facts/4.7/almalinux-9-x86_64.facts +0 -84
- data/facts/4.7/archlinux-x86_64.facts +0 -80
- data/facts/4.7/centos-9-x86_64.facts +0 -87
- data/facts/4.7/debian-11-x86_64.facts +0 -84
- data/facts/4.7/debian-12-x86_64.facts +0 -84
- data/facts/4.7/fedora-36-x86_64.facts +0 -88
- data/facts/4.7/fedora-37-x86_64.facts +0 -88
- data/facts/4.7/fedora-38-x86_64.facts +0 -87
- data/facts/4.7/fedora-39-x86_64.facts +0 -87
- data/facts/4.7/gentoo-2-x86_64.facts +0 -90
- data/facts/4.7/openbsd-7-x86_64.facts +0 -39
- data/facts/4.7/opensuse-15-x86_64.facts +0 -81
- data/facts/4.7/oraclelinux-8-x86_64.facts +0 -93
- data/facts/4.7/oraclelinux-9-x86_64.facts +0 -85
- data/facts/4.7/redhat-8-x86_64.facts +0 -89
- data/facts/4.7/redhat-9-x86_64.facts +0 -89
- data/facts/4.7/rocky-9-x86_64.facts +0 -89
- data/facts/4.7/ubuntu-20.04-x86_64.facts +0 -88
- data/facts/4.7/ubuntu-22.04-x86_64.facts +0 -86
- data/facts/4.7/windows-10-x86_64.facts +1 -65
- data/facts/4.7/windows-11-x86_64.facts +1 -65
- data/facts/4.7/windows-2019-x86_64.facts +1 -64
- data/facts/4.7/windows-2022-x86_64.facts +1 -65
- 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 +57 -2
- metadata +5 -19
- 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: 6be4d1e81886d8e5cba7d905c3f1cbd162fef871a63d511a508076a9d1c211c7
|
4
|
+
data.tar.gz: 517a08e7aae0226c23c53e97b7507cef374f07dd766bcb05e2a0757e45896553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c1a32edd96e2605e3334491042efa3df49a06bf1290195591441ba4e1419918bd454f0f2ed67181882d666b6aba6568169b9a735e01280d29d3da9380f33963
|
7
|
+
data.tar.gz: 8a6f84ee27f1fea0f94c36858a1a02df11fd78d0276c5e5cdb6d54762191cc561724ec0f51b44a741fb3fc80ca6ce0dfc82baae492bec014a8e4a0bb7aa305e4
|
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-
|
3
|
+
# on 2024-06-12 14:45:50 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
|
@@ -71,21 +71,21 @@ RSpec/DescribedClass:
|
|
71
71
|
Exclude:
|
72
72
|
- 'spec/facter_db_spec.rb'
|
73
73
|
|
74
|
-
# Offense count:
|
74
|
+
# Offense count: 5
|
75
75
|
# Configuration parameters: CountAsOne.
|
76
76
|
RSpec/ExampleLength:
|
77
|
-
Max:
|
77
|
+
Max: 13
|
78
78
|
|
79
|
-
# Offense count:
|
79
|
+
# Offense count: 8
|
80
80
|
RSpec/MultipleExpectations:
|
81
|
-
Max:
|
81
|
+
Max: 13
|
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.
|
@@ -187,7 +186,7 @@ Style/SymbolProc:
|
|
187
186
|
Exclude:
|
188
187
|
- 'Rakefile'
|
189
188
|
|
190
|
-
# Offense count:
|
189
|
+
# Offense count: 5
|
191
190
|
# This cop supports safe autocorrection (--autocorrect).
|
192
191
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
193
192
|
# URISchemes: http, https
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.1.0](https://rubygems.org/gems/facterdb/versions/3.1.0) (2024-06-14)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/3.0.0...3.1.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Cleanup legacy facts leftovers [\#370](https://github.com/voxpupuli/facterdb/pull/370) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- Purge custom facts [\#371](https://github.com/voxpupuli/facterdb/pull/371) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
|
15
|
+
## [3.0.0](https://rubygems.org/gems/facterdb/versions/3.0.0) (2024-06-10)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.1.0...3.0.0)
|
18
|
+
|
19
|
+
**Breaking changes:**
|
20
|
+
|
21
|
+
- Drop deprecated self.get\_os\_facts\(\) [\#365](https://github.com/voxpupuli/facterdb/pull/365) ([bastelfreak](https://github.com/bastelfreak))
|
22
|
+
- Remove EoL CentOS 8 factsets [\#361](https://github.com/voxpupuli/facterdb/pull/361) ([bastelfreak](https://github.com/bastelfreak))
|
23
|
+
- Remove EoL CentOS 7 factsets [\#360](https://github.com/voxpupuli/facterdb/pull/360) ([bastelfreak](https://github.com/bastelfreak))
|
24
|
+
- Remove deprecated RedHat 7 facts [\#359](https://github.com/voxpupuli/facterdb/pull/359) ([bastelfreak](https://github.com/bastelfreak))
|
25
|
+
- Remove Legacy Facts [\#266](https://github.com/voxpupuli/facterdb/pull/266) ([smortex](https://github.com/smortex))
|
26
|
+
|
3
27
|
## [2.1.0](https://rubygems.org/gems/facterdb/versions/2.1.0) (2024-06-08)
|
4
28
|
|
5
29
|
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.0.1...2.1.0)
|
@@ -0,0 +1,138 @@
|
|
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
|
+
dhcp_servers
|
25
|
+
domain
|
26
|
+
fqdn
|
27
|
+
gid
|
28
|
+
hardwareisa
|
29
|
+
hardwaremodel
|
30
|
+
hostname
|
31
|
+
id
|
32
|
+
interfaces
|
33
|
+
ipaddress_.*
|
34
|
+
ipaddress6_.*
|
35
|
+
lsbdistcodename
|
36
|
+
lsbdistdescription
|
37
|
+
lsbdistid
|
38
|
+
lsbdistrelease
|
39
|
+
lsbmajdistrelease
|
40
|
+
lsbminordistrelease
|
41
|
+
lsbrelease
|
42
|
+
macaddress_.*
|
43
|
+
macosx_buildversion
|
44
|
+
macosx_productname
|
45
|
+
macosx_productversion
|
46
|
+
macosx_productversion_major
|
47
|
+
macosx_productversion_minor
|
48
|
+
manufacturer
|
49
|
+
memoryfree
|
50
|
+
memoryfree_mb
|
51
|
+
memorysize
|
52
|
+
memorysize_mb
|
53
|
+
mtu_.*
|
54
|
+
netmask6_.*
|
55
|
+
netmask_.*
|
56
|
+
network6_.*
|
57
|
+
network_.*
|
58
|
+
operatingsystem
|
59
|
+
operatingsystemmajrelease
|
60
|
+
operatingsystemrelease
|
61
|
+
osfamily
|
62
|
+
physicalprocessorcount
|
63
|
+
processor\d+
|
64
|
+
processorcount
|
65
|
+
productname
|
66
|
+
rubyplatform
|
67
|
+
rubysitedir
|
68
|
+
rubyversion
|
69
|
+
sshdsakey
|
70
|
+
sshecdsakey
|
71
|
+
sshed25519key
|
72
|
+
sshfp_dsa
|
73
|
+
sshfp_ecdsa
|
74
|
+
sshfp_ed25519
|
75
|
+
sshfp_rsa
|
76
|
+
sshrsakey
|
77
|
+
scope6
|
78
|
+
selinux
|
79
|
+
selinux_config_mode
|
80
|
+
selinux_config_policy
|
81
|
+
selinux_current_mode
|
82
|
+
selinux_enforced
|
83
|
+
selinux_policyversion
|
84
|
+
serialnumber
|
85
|
+
sp_boot_mode
|
86
|
+
sp_boot_rom_version
|
87
|
+
sp_boot_volume
|
88
|
+
sp_cpu_type
|
89
|
+
sp_current_processor_speed
|
90
|
+
sp_kernel_version
|
91
|
+
sp_l2_cache_core
|
92
|
+
sp_l3_cache
|
93
|
+
sp_local_host_name
|
94
|
+
sp_machine_model
|
95
|
+
sp_machine_name
|
96
|
+
sp_number_processors
|
97
|
+
sp_os_version
|
98
|
+
sp_packages
|
99
|
+
sp_physical_memory
|
100
|
+
sp_platform_uuid
|
101
|
+
sp_secure_vm
|
102
|
+
sp_serial_number
|
103
|
+
sp_smc_version_system
|
104
|
+
sp_uptime
|
105
|
+
sp_user_name
|
106
|
+
swapencrypted
|
107
|
+
swapfree
|
108
|
+
swapfree_mb
|
109
|
+
swapsize
|
110
|
+
swapsize_mb
|
111
|
+
system32
|
112
|
+
uptime
|
113
|
+
uptime_days
|
114
|
+
uptime_hours
|
115
|
+
uptime_seconds
|
116
|
+
uuid
|
117
|
+
windows_display_version
|
118
|
+
windows_edition_id
|
119
|
+
windows_installation_type
|
120
|
+
windows_product_name
|
121
|
+
windows_release_id
|
122
|
+
xendomains
|
123
|
+
zonename
|
124
|
+
].map { |re| Regexp.new("\\A#{re}\\z") }
|
125
|
+
|
126
|
+
if ARGV.empty?
|
127
|
+
warn "usage: #{$PROGRAM_NAME} facts..."
|
128
|
+
exit(1)
|
129
|
+
end
|
130
|
+
|
131
|
+
ARGV.each do |filename|
|
132
|
+
puts filename
|
133
|
+
facts = JSON.parse(File.read(filename))
|
134
|
+
facts.delete_if do |key|
|
135
|
+
LEGACY_FACTS.any? { |legacy_fact| key.match(legacy_fact) }
|
136
|
+
end
|
137
|
+
File.write(filename, "#{JSON.pretty_generate(facts)}\n")
|
138
|
+
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
|