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
@@ -1,10 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"aio_agent_version": "8.6.0",
|
3
|
-
"architecture": "x64",
|
4
|
-
"dhcp_servers": {
|
5
|
-
"Ethernet": "10.0.2.2",
|
6
|
-
"system": "10.0.2.2"
|
7
|
-
},
|
8
3
|
"dmi": {
|
9
4
|
"manufacturer": "innotek GmbH",
|
10
5
|
"product": {
|
@@ -13,38 +8,24 @@
|
|
13
8
|
"uuid": "F2FE13B6-2E77-4300-B709-3654FF7B6063"
|
14
9
|
}
|
15
10
|
},
|
16
|
-
"domain": "example.com",
|
17
11
|
"env_windows_installdir": "C:\\Program Files\\Puppet Labs\\Puppet",
|
18
12
|
"facterversion": "4.7.0",
|
19
13
|
"fips_enabled": false,
|
20
|
-
"fqdn": "foo.example.com",
|
21
|
-
"hardwareisa": "x64",
|
22
|
-
"hardwaremodel": "x86_64",
|
23
|
-
"hostname": "foo",
|
24
14
|
"hypervisors": {
|
25
15
|
"virtualbox": {
|
26
16
|
"revision": "161095",
|
27
17
|
"version": "7.0.14"
|
28
18
|
}
|
29
19
|
},
|
30
|
-
"id": "FOO\\vagrant",
|
31
20
|
"identity": {
|
32
21
|
"privileged": true,
|
33
22
|
"user": "FOO\\vagrant"
|
34
23
|
},
|
35
|
-
"interfaces": "Ethernet",
|
36
|
-
"ipaddress": "10.0.2.15",
|
37
|
-
"ipaddress6": "fe80::8d97:e947:bec7:8686",
|
38
|
-
"ipaddress6_Ethernet": "fe80::8d97:e947:bec7:8686",
|
39
|
-
"ipaddress_Ethernet": "10.0.2.15",
|
40
24
|
"is_virtual": true,
|
41
25
|
"kernel": "windows",
|
42
26
|
"kernelmajversion": "10.0",
|
43
27
|
"kernelrelease": "10.0.20348",
|
44
28
|
"kernelversion": "10.0.20348",
|
45
|
-
"macaddress": "08:00:27:E7:59:F0",
|
46
|
-
"macaddress_Ethernet": "08:00:27:E7:59:F0",
|
47
|
-
"manufacturer": "innotek GmbH",
|
48
29
|
"memory": {
|
49
30
|
"system": {
|
50
31
|
"available": "957.90 MiB",
|
@@ -56,19 +37,6 @@
|
|
56
37
|
"used_bytes": 1125953536
|
57
38
|
}
|
58
39
|
},
|
59
|
-
"memoryfree": "957.90 MiB",
|
60
|
-
"memoryfree_mb": 957.8984375,
|
61
|
-
"memorysize": "1.98 GiB",
|
62
|
-
"memorysize_mb": 2031.69140625,
|
63
|
-
"mtu_Ethernet": 1500,
|
64
|
-
"netmask": "255.255.255.0",
|
65
|
-
"netmask6": "ffff:ffff:ffff:ffff::",
|
66
|
-
"netmask6_Ethernet": "ffff:ffff:ffff:ffff::",
|
67
|
-
"netmask_Ethernet": "255.255.255.0",
|
68
|
-
"network": "10.0.2.0",
|
69
|
-
"network6": "fe80::",
|
70
|
-
"network6_Ethernet": "fe80::",
|
71
|
-
"network_Ethernet": "10.0.2.0",
|
72
40
|
"networking": {
|
73
41
|
"dhcp": "10.0.2.2",
|
74
42
|
"domain": "example.com",
|
@@ -114,9 +82,6 @@
|
|
114
82
|
"primary": "Ethernet",
|
115
83
|
"scope6": "link"
|
116
84
|
},
|
117
|
-
"operatingsystem": "windows",
|
118
|
-
"operatingsystemmajrelease": "2022",
|
119
|
-
"operatingsystemrelease": "2022",
|
120
85
|
"os": {
|
121
86
|
"architecture": "x64",
|
122
87
|
"family": "windows",
|
@@ -135,11 +100,7 @@
|
|
135
100
|
"system32": "C:\\Windows\\system32"
|
136
101
|
}
|
137
102
|
},
|
138
|
-
"osfamily": "windows",
|
139
103
|
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\OpenSSH-Win64;C:\\Users\\vagrant\\AppData\\Local\\Microsoft\\WindowsApps",
|
140
|
-
"physicalprocessorcount": 1,
|
141
|
-
"processor0": "Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz",
|
142
|
-
"processorcount": 2,
|
143
104
|
"processors": {
|
144
105
|
"cores": 2,
|
145
106
|
"count": 2,
|
@@ -150,19 +111,13 @@
|
|
150
111
|
"physicalcount": 1,
|
151
112
|
"threads": 1
|
152
113
|
},
|
153
|
-
"productname": "VirtualBox",
|
154
114
|
"puppetversion": "8.6.0",
|
155
115
|
"ruby": {
|
156
116
|
"platform": "x64-mingw32",
|
157
117
|
"sitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
158
118
|
"version": "3.2.3"
|
159
119
|
},
|
160
|
-
"rubyplatform": "x64-mingw32",
|
161
|
-
"rubysitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
162
|
-
"rubyversion": "3.2.3",
|
163
|
-
"scope6": "link",
|
164
120
|
"scope6_Ethernet": "link",
|
165
|
-
"serialnumber": "0",
|
166
121
|
"ssh": {
|
167
122
|
"dsa": {
|
168
123
|
"fingerprints": {
|
@@ -197,15 +152,6 @@
|
|
197
152
|
"type": "ssh-rsa"
|
198
153
|
}
|
199
154
|
},
|
200
|
-
"sshdsakey": "AAAAB3NzaC1kc3MAAACBAOmczeAhgWVjwzCJYyJ38DOE98Xiaw45rmEULqbq6c2iy9YgTEp2DRl/AmOQNosKg1+e/DtrHgqWdIHQplipyOCd6wbJ131Z3PgmMcJqy4XAyhZcaa2wkHdUic0P+7qD1HengkIgquuizJzPKnX1klM2e1QgUeuXZT/ULRW9vI8NAAAAFQD/jjjBCL+7QwI+8iQYAKtp5rW/dwAAAIEAsVXIkqYxA9PgeklIXuchjvTsIAnzFeixSa5p51xCTDBll91QEFX3OtzK3Vp2puJDXBvwymuPnBCaW31AepDnWv4m3YmFWd3s6ZIp8qPbi1UfhkoIH11gwcz4kQT5h6gBbA717d+1DAAw9W6174Ju1dKdoqg86ZNtA5QfgBZ06xwAAACBANZ1rECCGE2HVWbxDBHf6mAv5yoBRNUbPWQ3DYM5qLdYhqPCFmcRdaxIjOtCuqutviphOYEdEWY//jR86GkPGJZeK5Sg6+ol0eZTDNox933GeNuuLTg57F77ODTfeEpYgPNTlklG+MI/V0xjpgiaN+aqfyCmPUh6X0m+epYNXLIJ",
|
201
|
-
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKdzf7SfxY+LVZayjebjV98AK/c7sFT6rOvVu1pKJyaAGKJvERyVlay9aUOo5EZbGqud61jYpLXrAlGuOQZyWeg=",
|
202
|
-
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIPOwOYrxf49nywRDLItAiMup1peRQkpfykjDknfisRzq",
|
203
|
-
"sshfp_dsa": "SSHFP 2 1 2cbf142ec3e5298f32eb0fcccf139ce09d42e534\nSSHFP 2 2 7c39b6025bf87f7828dac9370dc4374061fa9b643e1fdcaf86ba55cea66b831a",
|
204
|
-
"sshfp_ecdsa": "SSHFP 3 1 3bd1e5d4b841b0150d1d9d1ae1e926c0f8c01baf\nSSHFP 3 2 f49774b85c325c1b3a03ca07d43b59bc0483c1bed307e1e0eda8146a7f8a32d3",
|
205
|
-
"sshfp_ed25519": "SSHFP 4 1 d90c588d7e89b743439d6bbde8cbf68de80f554c\nSSHFP 4 2 4a3633cdbef6f2e3d7aebacb4cd127890cdb0d05a8fffa36047a2da574008117",
|
206
|
-
"sshfp_rsa": "SSHFP 1 1 c9f7a8861f449e575242f99981ed7580d609f86c\nSSHFP 1 2 5f9ff10646bb92e2f762c650f1f4486331b2848960ab8519031f1fdf1bd92d19",
|
207
|
-
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDQfE6HJW1DZInpdu3xQG1ok0bY+IK2Jhfk3kGd087eE8nuzm1O0JLe5A9elSLCe1I63MTxadw/ZI48DiAnd4q8MckaqU2bE7ycfO1N6KLvBIZ6bmlWR+XpW/0rxLD3aP/lvuu7R731PdgfH5APDyyqYLVdPI1JdvfopJf/55gJqjdZkNE4S5OGUqXEuiwPYL56OgNntwqvoRDvOLQ8DDPNlcz/PGR0tIxhakUM7cPhkBYSZWvTnoJQCJcyx9OE7li9dH0ZnfQ2wezm0cro2Nh3enRN0yeHZ69CvWMoMbotxlKDdM0Gyn7rEvP/9JVr9Mll9UjqO8qbFJYc4E0QjmMQNrEjH9d+F8JsavMh9azZ9f4X2vY83A658RnbweJIscITmIeqPiyyoWLDDJ5XniatYTfpMXKk5SpkvRf7l/LzywK0NsCRioOppOw+mxHcsuDgPYiCmkLq7LYbC6FMZc/PtqpA+UNnxxTsnOfTtIfSyrkIo+LdBPcpxtkiBCZ5AFU=",
|
208
|
-
"system32": "C:\\Windows\\system32",
|
209
155
|
"system_uptime": {
|
210
156
|
"days": 0,
|
211
157
|
"hours": 0,
|
@@ -213,15 +159,5 @@
|
|
213
159
|
"uptime": "0:06 hours"
|
214
160
|
},
|
215
161
|
"timezone": "Coordinated Universal Time",
|
216
|
-
"
|
217
|
-
"uptime_days": 0,
|
218
|
-
"uptime_hours": 0,
|
219
|
-
"uptime_seconds": 376,
|
220
|
-
"uuid": "F2FE13B6-2E77-4300-B709-3654FF7B6063",
|
221
|
-
"virtual": "virtualbox",
|
222
|
-
"windows_display_version": "21H2",
|
223
|
-
"windows_edition_id": "ServerStandardEval",
|
224
|
-
"windows_installation_type": "Server Core",
|
225
|
-
"windows_product_name": "Windows Server 2022 Standard Evaluation",
|
226
|
-
"windows_release_id": "21H2"
|
162
|
+
"virtual": "virtualbox"
|
227
163
|
}
|
data/facts/Vagrantfile
CHANGED
@@ -72,38 +72,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
72
72
|
host.vm.provision 'shell', path: 'get_facts.sh'
|
73
73
|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
74
74
|
end
|
75
|
-
config.vm.define 'centos-7-x86_64', autostart: false do |host|
|
76
|
-
host.vm.box = 'centos/7'
|
77
|
-
host.vm.network :private_network, ip: '10.0.0.2'
|
78
|
-
host.vm.synced_folder '.', '/vagrant', nfs: true, nfs_udp: false
|
79
|
-
host.vm.provision 'shell', inline: 'yum -y install ruby-devel gcc wget net-tools'
|
80
|
-
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
81
|
-
host.vm.provision 'shell', path: 'get_facts.sh'
|
82
|
-
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
83
|
-
end
|
84
|
-
config.vm.define 'centos-8-x86_64', autostart: false do |host|
|
85
|
-
host.vm.box = 'centos/8'
|
86
|
-
host.vm.synced_folder '.', '/vagrant'
|
87
|
-
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
88
|
-
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
89
|
-
host.vm.provision 'shell', path: 'get_facts.sh'
|
90
|
-
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
91
|
-
host.vbguest.auto_update = true
|
92
|
-
end
|
93
|
-
# images are at https://cloud.centos.org/centos/8-stream/x86_64/images/
|
94
|
-
# (check for version updates periodically)
|
95
|
-
# facts land as centos-8-x86_64.facts
|
96
|
-
config.vm.define 'centos-stream8-x86_64', autostart: false do |host|
|
97
|
-
host.vm.box = 'centos/stream8'
|
98
|
-
host.vm.box_url = 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20240513.0.x86_64.vagrant-virtualbox.box'
|
99
|
-
host.vm.synced_folder '.', '/vagrant'
|
100
|
-
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
101
|
-
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
102
|
-
host.vm.provision 'shell', path: 'get_facts.sh'
|
103
|
-
# commented to allow manual retrieval of facts
|
104
|
-
# host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
105
|
-
host.vbguest.auto_update = true
|
106
|
-
end
|
107
75
|
# images are at https://cloud.centos.org/centos/9-stream/x86_64/images/
|
108
76
|
# can be imported with `vagrant box add --name centos/stream9 $url` you can also
|
109
77
|
# use the host.vm.box_url below
|
data/facts/get_facts.sh
CHANGED
@@ -75,7 +75,7 @@ case "${osfamily}" in
|
|
75
75
|
if yum install -y puppet-agent-${puppet_agent_version}; then
|
76
76
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter os.name | tr '[:upper:]' '[:lower:]')-$(facter os.release.major)-$(facter os.hardware).facts"
|
77
77
|
mkdir -p $(dirname ${output_file})
|
78
|
-
facter --
|
78
|
+
facter --puppet --json | tee ${output_file}
|
79
79
|
fi
|
80
80
|
done
|
81
81
|
yum remove -y puppet8-release
|
@@ -93,7 +93,7 @@ case "${osfamily}" in
|
|
93
93
|
if apt_install puppet-agent=${puppet_agent_version}*; then
|
94
94
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter os.name | tr '[:upper:]' '[:lower:]')-$(facter os.release.major)-$(facter os.hardware).facts"
|
95
95
|
mkdir -p $(dirname ${output_file})
|
96
|
-
facter --
|
96
|
+
facter --puppet --json | tee ${output_file}
|
97
97
|
fi
|
98
98
|
done
|
99
99
|
apt-get -y remove --purge puppet8-release
|
@@ -107,7 +107,7 @@ case "${osfamily}" in
|
|
107
107
|
apt_install ruby rubygems ruby-dev puppet facter
|
108
108
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
|
109
109
|
mkdir -p $(dirname ${output_file})
|
110
|
-
facter --
|
110
|
+
facter --puppet --json | tee ${output_file}
|
111
111
|
fi
|
112
112
|
;;
|
113
113
|
'FreeBSD')
|
@@ -124,7 +124,7 @@ case "${osfamily}" in
|
|
124
124
|
[ "${hardwaremodel}" = 'amd64' ] && hardwaremodel=x86_64
|
125
125
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-${hardwaremodel}.facts"
|
126
126
|
mkdir -p $(dirname ${output_file})
|
127
|
-
[ ! -f ${output_file} ] && facter --
|
127
|
+
[ ! -f ${output_file} ] && facter --puppet --json | tee ${output_file}
|
128
128
|
done
|
129
129
|
;;
|
130
130
|
'OpenBSD')
|
@@ -133,7 +133,7 @@ case "${osfamily}" in
|
|
133
133
|
# Vagrant box should already have puppet & facter installed
|
134
134
|
output_file="/vagrant/$(facter --version | cut -d. -f1-2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemrelease)-${hardwaremodel}.facts"
|
135
135
|
mkdir -p $(dirname ${output_file})
|
136
|
-
[ ! -f ${output_file} ] && facter --
|
136
|
+
[ ! -f ${output_file} ] && facter --puppet --json | tee ${output_file}
|
137
137
|
;;
|
138
138
|
'Suse')
|
139
139
|
# install deps that we need later for gem based setup
|
@@ -149,7 +149,7 @@ case "${osfamily}" in
|
|
149
149
|
if zypper --gpg-auto-import-keys --non-interactive install puppet-agent-${puppet_agent_version}; then
|
150
150
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
|
151
151
|
mkdir -p $(dirname ${output_file})
|
152
|
-
facter --
|
152
|
+
facter --puppet --json | tee ${output_file}
|
153
153
|
fi
|
154
154
|
done
|
155
155
|
zypper --non-interactive remove puppet8-release
|
@@ -159,13 +159,13 @@ case "${osfamily}" in
|
|
159
159
|
pacman --sync --refresh --sysupgrade --noconfirm ruby ruby-bundler base-devel dnsutils facter augeas
|
160
160
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter hardwaremodel).facts"
|
161
161
|
mkdir -p $(dirname ${output_file})
|
162
|
-
facter --
|
162
|
+
facter --puppet --json | tee ${output_file}
|
163
163
|
;;
|
164
164
|
'Gentoo')
|
165
165
|
emerge -vq1 dev-lang/ruby dev-ruby/bundler app-admin/puppet dev-ruby/facter sys-apps/dmidecode app-admin/augeas
|
166
166
|
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter hardwaremodel).facts"
|
167
167
|
mkdir -p $(dirname ${output_file})
|
168
|
-
facter --
|
168
|
+
facter --puppet --json | tee ${output_file}
|
169
169
|
esac
|
170
170
|
|
171
171
|
# this lower section relies on the ruby version and facter version that came
|
@@ -214,6 +214,6 @@ for version in 4.2.14 4.3.0 4.4.3 4.5.2 4.6.0 4.7.0; do
|
|
214
214
|
fi
|
215
215
|
mkdir -p $(dirname $output_file)
|
216
216
|
echo $version | grep -q -E '^1\.' &&
|
217
|
-
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --
|
218
|
-
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --
|
217
|
+
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --json | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
|
218
|
+
FACTER_GEM_VERSION="~> ${version}" bundle exec facter --json | tee $output_file
|
219
219
|
done
|
data/facts/windows_get_facts.ps1
CHANGED
@@ -88,7 +88,7 @@ foreach ($pupAgentVer in $puppetAgentVersions) {
|
|
88
88
|
# the domain name will fallback to the hypervisor's domain.
|
89
89
|
$env:FACTER_fqdn = $fqdn
|
90
90
|
|
91
|
-
$facterArgs = @("
|
91
|
+
$facterArgs = @("--json", "--puppet")
|
92
92
|
$facterProcess = Start-Process -FilePath $facterBin -ArgumentList $facterArgs -Wait -PassThru -RedirectStandardOutput "X:\$facterVer\$Os-$Osmaj-$Hw.facts"
|
93
93
|
if ($facterProcess.ExitCode -ne 0) {
|
94
94
|
Write-Host "Facter failed."
|
data/lib/facterdb/bin.rb
CHANGED
data/lib/facterdb/version.rb
CHANGED
data/lib/facterdb.rb
CHANGED
@@ -78,37 +78,6 @@ module FacterDB
|
|
78
78
|
(external_fact_files + default_fact_files).uniq
|
79
79
|
end
|
80
80
|
|
81
|
-
# @deprecated Use {.get_facts} instead.
|
82
|
-
def self.get_os_facts(facter_version = '*', filter = [])
|
83
|
-
if facter_version == '*'
|
84
|
-
if filter.is_a?(Array)
|
85
|
-
filter_str = filter.map { |f| f.map { |k, v| "#{k}=#{v}" }.join(' and ') }.join(' or ')
|
86
|
-
elsif filter.is_a?(Hash)
|
87
|
-
filter_str = filter.map { |k, v| "#{k}=#{v}" }.join(' and ')
|
88
|
-
elsif filter.is_a?(String)
|
89
|
-
filter_str = filter
|
90
|
-
else
|
91
|
-
raise 'filter must be either an Array a Hash or a String'
|
92
|
-
end
|
93
|
-
elsif filter.is_a?(Array)
|
94
|
-
filter_str = "facterversion=/^#{facter_version}/ and (#{filter.map do |f|
|
95
|
-
f.map do |k, v|
|
96
|
-
"#{k}=#{v}"
|
97
|
-
end.join(' and ')
|
98
|
-
end.join(' or ')})"
|
99
|
-
elsif filter.is_a?(Hash)
|
100
|
-
filter_str = "facterversion=/^#{facter_version}/ and (#{filter.map { |k, v| "#{k}=#{v}" }.join(' and ')})"
|
101
|
-
elsif filter.is_a?(String)
|
102
|
-
filter_str = "facterversion=/^#{facter_version}/ and (#{filter})"
|
103
|
-
else
|
104
|
-
raise 'filter must be either an Array a Hash or a String'
|
105
|
-
end
|
106
|
-
|
107
|
-
warn "[DEPRECATION] `get_os_facts` is deprecated. Please use `get_facts(#{filter_str})` instead."
|
108
|
-
|
109
|
-
get_facts(filter_str)
|
110
|
-
end
|
111
|
-
|
112
81
|
# @return [String] the string filter
|
113
82
|
# @param filter [Object] The filter to convert to jgrep string
|
114
83
|
def self.generate_filter_str(filter = nil)
|
data/spec/facter_db_spec.rb
CHANGED
@@ -197,91 +197,6 @@ describe FacterDB do
|
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
200
|
-
describe '.get_os_facts' do
|
201
|
-
subject(:result) { FacterDB.get_os_facts(facter_version, filter) }
|
202
|
-
|
203
|
-
before do
|
204
|
-
object = defined?(Warning) ? Warning : Kernel
|
205
|
-
allow(object).to receive(:warn).and_call_original
|
206
|
-
allow(object).to receive(:warn).with(a_string_matching(/`get_os_facts` is deprecated/))
|
207
|
-
end
|
208
|
-
|
209
|
-
context 'without parameters' do
|
210
|
-
subject(:result) { FacterDB.get_os_facts }
|
211
|
-
|
212
|
-
include_examples 'returns a result'
|
213
|
-
end
|
214
|
-
|
215
|
-
context 'when matching all Facter versions' do
|
216
|
-
let(:facter_version) { '*' }
|
217
|
-
|
218
|
-
context 'with an Array filter' do
|
219
|
-
let(:filter) { [{ osfamily: 'Debian' }] }
|
220
|
-
|
221
|
-
include_examples 'returns a result'
|
222
|
-
end
|
223
|
-
|
224
|
-
context 'with a Hash filter' do
|
225
|
-
let(:filter) { { osfamily: 'Debian' } }
|
226
|
-
|
227
|
-
include_examples 'returns a result'
|
228
|
-
end
|
229
|
-
|
230
|
-
context 'with a String filter' do
|
231
|
-
let(:filter) { 'osfamily=Debian' }
|
232
|
-
|
233
|
-
include_examples 'returns a result'
|
234
|
-
end
|
235
|
-
|
236
|
-
context 'with a filter of an unsupported type' do
|
237
|
-
let(:filter) { true }
|
238
|
-
|
239
|
-
it 'raises an error' do
|
240
|
-
expect { result }.to raise_error(/filter must be either/)
|
241
|
-
end
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
context 'when matching a specific facter version' do
|
246
|
-
let(:facter_version) { '4.0.52' }
|
247
|
-
|
248
|
-
shared_examples 'returns only the specified version' do
|
249
|
-
it 'only includes fact sets for the specified version' do
|
250
|
-
expect(result).to all(include(facterversion: match(/^4\.0/)))
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
254
|
-
context 'with an Array filter' do
|
255
|
-
let(:filter) { [{ osfamily: 'Debian' }] }
|
256
|
-
|
257
|
-
include_examples 'returns a result'
|
258
|
-
include_examples 'returns only the specified version'
|
259
|
-
end
|
260
|
-
|
261
|
-
context 'with a Hash filter' do
|
262
|
-
let(:filter) { { osfamily: 'Debian' } }
|
263
|
-
|
264
|
-
include_examples 'returns a result'
|
265
|
-
include_examples 'returns only the specified version'
|
266
|
-
end
|
267
|
-
|
268
|
-
context 'with a String filter' do
|
269
|
-
let(:filter) { 'osfamily=Debian' }
|
270
|
-
|
271
|
-
include_examples 'returns a result'
|
272
|
-
include_examples 'returns only the specified version'
|
273
|
-
end
|
274
|
-
|
275
|
-
context 'with a filter of an unsupported type' do
|
276
|
-
let(:filter) { true }
|
277
|
-
|
278
|
-
it 'raises an error' do
|
279
|
-
expect { result }.to raise_error(/filter must be either/)
|
280
|
-
end
|
281
|
-
end
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
200
|
describe '.valid_filters?' do
|
286
201
|
it 'invalid and false' do
|
287
202
|
expect(FacterDB.valid_filters?('and')).to be_falsey
|
@@ -302,11 +217,11 @@ describe FacterDB do
|
|
302
217
|
end
|
303
218
|
|
304
219
|
it 'with hash' do
|
305
|
-
expect(FacterDB.generate_filter_str({
|
220
|
+
expect(FacterDB.generate_filter_str({ kernel: 'Linux' })).to eq('kernel=Linux')
|
306
221
|
end
|
307
222
|
|
308
223
|
it 'with Array' do
|
309
|
-
expect(FacterDB.generate_filter_str([
|
224
|
+
expect(FacterDB.generate_filter_str([kernel: 'Linux'])).to eq('(kernel=Linux)')
|
310
225
|
end
|
311
226
|
|
312
227
|
it 'empty' do
|
@@ -349,19 +264,19 @@ describe FacterDB do
|
|
349
264
|
end
|
350
265
|
|
351
266
|
context 'with an Array filter' do
|
352
|
-
let(:filter) { [
|
267
|
+
let(:filter) { [kernel: 'Linux'] }
|
353
268
|
|
354
269
|
include_examples 'returns a result'
|
355
270
|
end
|
356
271
|
|
357
272
|
context 'with a Hash filter' do
|
358
|
-
let(:filter) { {
|
273
|
+
let(:filter) { { kernel: 'Linux' } }
|
359
274
|
|
360
275
|
include_examples 'returns a result'
|
361
276
|
end
|
362
277
|
|
363
278
|
context 'with a String filter' do
|
364
|
-
let(:filter) { '
|
279
|
+
let(:filter) { 'kernel=Linux' }
|
365
280
|
|
366
281
|
include_examples 'returns a result'
|
367
282
|
end
|
data/spec/facts_spec.rb
CHANGED
@@ -98,8 +98,8 @@ describe 'Default Facts' do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
it 'contains the legacy ipaddress fact' do
|
102
|
-
expect(content['ipaddress']).to
|
101
|
+
it 'does not contains the legacy ipaddress fact' do
|
102
|
+
expect(content['ipaddress']).to be_nil
|
103
103
|
end
|
104
104
|
|
105
105
|
it 'contains no facts from puppetlabs/stdlib' do
|
@@ -110,6 +110,25 @@ describe 'Default Facts' do
|
|
110
110
|
expect(content['puppet_server']).to be_nil
|
111
111
|
expect(content['pe_version']).to be_nil
|
112
112
|
expect(content['package_provider']).to be_nil
|
113
|
+
expect(content['is_pe']).to be_nil
|
114
|
+
expect(content['pe_major_version']).to be_nil
|
115
|
+
expect(content['pe_minor_version']).to be_nil
|
116
|
+
expect(content['pe_patch_version']).to be_nil
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'contains no facts from puppetlabs/puppet_agent' do
|
120
|
+
expect(content['env_temp_variable']).to be_nil
|
121
|
+
expect(content['puppet_agent_appdata']).to be_nil
|
122
|
+
expect(content['puppet_agent_pid']).to be_nil
|
123
|
+
expect(content['puppet_runmode']).to be_nil
|
124
|
+
expect(content['puppet_ssldir']).to be_nil
|
125
|
+
expect(content['puppet_digest_algorithm']).to be_nil
|
126
|
+
expect(content['puppet_config']).to be_nil
|
127
|
+
expect(content['puppet_stringify_facts']).to be_nil
|
128
|
+
expect(content['puppet_sslpaths']).to be_nil
|
129
|
+
expect(content['puppet_master_server']).to be_nil
|
130
|
+
expect(content['puppet_confdir']).to be_nil
|
131
|
+
expect(content['puppet_client_datadir']).to be_nil
|
113
132
|
end
|
114
133
|
|
115
134
|
it 'contains no facts from puppet/systemd' do
|
@@ -125,6 +144,42 @@ describe 'Default Facts' do
|
|
125
144
|
expect(content['os']['name']).to not_be_nil.and not_be_empty
|
126
145
|
expect(content['os']['hardware']).to not_be_nil.and not_be_empty
|
127
146
|
end
|
147
|
+
|
148
|
+
it 'does not contain a legacy hostname, domain and fqdn fact' do
|
149
|
+
expect(content['hostname']).to be_nil
|
150
|
+
expect(content['fqdn']).to be_nil
|
151
|
+
expect(content['domain']).to be_nil
|
152
|
+
end
|
153
|
+
|
154
|
+
it 'does not contain the legacy osfamily fact' do
|
155
|
+
expect(content['osfamily']).to be_nil
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'does not contain the legacy operatingsystem fact' do
|
159
|
+
expect(content['operatingsystem']).to be_nil
|
160
|
+
end
|
161
|
+
|
162
|
+
# those facts aren't default in Open Source Puppet/Facter core
|
163
|
+
it 'does not contain the PE facts' do
|
164
|
+
expect(content['pe_patch']).to be_nil
|
165
|
+
expect(content['puppet_inventory_metadata']).to be_nil
|
166
|
+
end
|
167
|
+
|
168
|
+
it 'does not contain random facts from known modules' do
|
169
|
+
expect(content['selinux_python_command']).to be_nil
|
170
|
+
expect(content['mysql_server_id']).to be_nil
|
171
|
+
expect(content['stage']).to be_nil
|
172
|
+
expect(content['virt_libvirt']).to be_nil
|
173
|
+
expect(content['function_number']).to be_nil
|
174
|
+
expect(content['classification']).to be_nil
|
175
|
+
expect(content['who2bug']).to be_nil
|
176
|
+
expect(content['prometheus_alert_manager_running']).to be_nil
|
177
|
+
expect(content['docker_home_dirs']).to be_nil
|
178
|
+
expect(content['aio_agent_build']).to be_nil
|
179
|
+
expect(content['python2_version']).to be_nil
|
180
|
+
expect(content['python_version']).to be_nil
|
181
|
+
expect(content['puppet_agent_pid']).to be_nil
|
182
|
+
end
|
128
183
|
end
|
129
184
|
end
|
130
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facterdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -111,6 +111,7 @@ email:
|
|
111
111
|
- voxpupuli@groups.io
|
112
112
|
executables:
|
113
113
|
- facterdb
|
114
|
+
- legacy-facts-striper
|
114
115
|
extensions: []
|
115
116
|
extra_rdoc_files: []
|
116
117
|
files:
|
@@ -130,6 +131,7 @@ files:
|
|
130
131
|
- README.md
|
131
132
|
- Rakefile
|
132
133
|
- bin/facterdb
|
134
|
+
- bin/legacy-facts-striper
|
133
135
|
- database/list_arch_os_facter.md
|
134
136
|
- database/list_facter_os_arch.md
|
135
137
|
- database/list_os_arch_facter.md
|
@@ -152,15 +154,12 @@ files:
|
|
152
154
|
- facterdb.gemspec
|
153
155
|
- facts/4.0/almalinux-8-x86_64.facts
|
154
156
|
- facts/4.0/almalinux-9-x86_64.facts
|
155
|
-
- facts/4.0/centos-7-x86_64.facts
|
156
|
-
- facts/4.0/centos-8-x86_64.facts
|
157
157
|
- facts/4.0/debian-11-x86_64.facts
|
158
158
|
- facts/4.0/freebsd-11-x86_64.facts
|
159
159
|
- facts/4.0/freebsd-12-x86_64.facts
|
160
160
|
- facts/4.0/freebsd-13-x86_64.facts
|
161
161
|
- facts/4.0/opensuse-15-x86_64.facts
|
162
162
|
- facts/4.0/oraclelinux-7-x86_64.facts
|
163
|
-
- facts/4.0/redhat-7-x86_64.facts
|
164
163
|
- facts/4.0/redhat-8-x86_64.facts
|
165
164
|
- facts/4.0/rocky-8-x86_64.facts
|
166
165
|
- facts/4.0/rocky-9-x86_64.facts
|
@@ -172,8 +171,6 @@ files:
|
|
172
171
|
- facts/4.0/ubuntu-21.10-x86_64.facts
|
173
172
|
- facts/4.1/almalinux-8-x86_64.facts
|
174
173
|
- facts/4.1/almalinux-9-x86_64.facts
|
175
|
-
- facts/4.1/centos-7-x86_64.facts
|
176
|
-
- facts/4.1/centos-8-x86_64.facts
|
177
174
|
- facts/4.1/debian-11-x86_64.facts
|
178
175
|
- facts/4.1/freebsd-11-x86_64.facts
|
179
176
|
- facts/4.1/freebsd-12-x86_64.facts
|
@@ -190,8 +187,6 @@ files:
|
|
190
187
|
- facts/4.2/almalinux-9-x86_64.facts
|
191
188
|
- facts/4.2/amazon-2022-x86_64.facts
|
192
189
|
- facts/4.2/archlinux-x86_64.facts
|
193
|
-
- facts/4.2/centos-7-x86_64.facts
|
194
|
-
- facts/4.2/centos-8-x86_64.facts
|
195
190
|
- facts/4.2/centos-9-x86_64.facts
|
196
191
|
- facts/4.2/darwin-20-x86_64.facts
|
197
192
|
- facts/4.2/debian-11-x86_64.facts
|
@@ -210,7 +205,6 @@ files:
|
|
210
205
|
- facts/4.2/oraclelinux-8-x86_64.facts
|
211
206
|
- facts/4.2/oraclelinux-9-x86_64.facts
|
212
207
|
- facts/4.2/popos-21.10-x86_64.facts
|
213
|
-
- facts/4.2/redhat-7-x86_64.facts
|
214
208
|
- facts/4.2/redhat-8-x86_64.facts
|
215
209
|
- facts/4.2/redhat-9-x86_64.facts
|
216
210
|
- facts/4.2/rocky-8-x86_64.facts
|
@@ -237,8 +231,6 @@ files:
|
|
237
231
|
- facts/4.3/almalinux-8-x86_64.facts
|
238
232
|
- facts/4.3/almalinux-9-x86_64.facts
|
239
233
|
- facts/4.3/archlinux-x86_64.facts
|
240
|
-
- facts/4.3/centos-7-x86_64.facts
|
241
|
-
- facts/4.3/centos-8-x86_64.facts
|
242
234
|
- facts/4.3/centos-9-x86_64.facts
|
243
235
|
- facts/4.3/debian-11-x86_64.facts
|
244
236
|
- facts/4.3/debian-12-i386.facts
|
@@ -273,8 +265,6 @@ files:
|
|
273
265
|
- facts/4.4/almalinux-8-x86_64.facts
|
274
266
|
- facts/4.4/almalinux-9-x86_64.facts
|
275
267
|
- facts/4.4/archlinux-x86_64.facts
|
276
|
-
- facts/4.4/centos-7-x86_64.facts
|
277
|
-
- facts/4.4/centos-8-x86_64.facts
|
278
268
|
- facts/4.4/centos-9-x86_64.facts
|
279
269
|
- facts/4.4/debian-11-x86_64.facts
|
280
270
|
- facts/4.4/debian-12-i386.facts
|
@@ -310,8 +300,6 @@ files:
|
|
310
300
|
- facts/4.5/almalinux-9-x86_64.facts
|
311
301
|
- facts/4.5/amazon-2-x86_64.facts
|
312
302
|
- facts/4.5/archlinux-x86_64.facts
|
313
|
-
- facts/4.5/centos-7-x86_64.facts
|
314
|
-
- facts/4.5/centos-8-x86_64.facts
|
315
303
|
- facts/4.5/centos-9-x86_64.facts
|
316
304
|
- facts/4.5/debian-11-x86_64.facts
|
317
305
|
- facts/4.5/debian-12-x86_64.facts
|
@@ -339,7 +327,6 @@ files:
|
|
339
327
|
- facts/4.6/almalinux-8-x86_64.facts
|
340
328
|
- facts/4.6/almalinux-9-x86_64.facts
|
341
329
|
- facts/4.6/archlinux-x86_64.facts
|
342
|
-
- facts/4.6/centos-8-x86_64.facts
|
343
330
|
- facts/4.6/centos-9-x86_64.facts
|
344
331
|
- facts/4.6/debian-11-x86_64.facts
|
345
332
|
- facts/4.6/debian-12-x86_64.facts
|
@@ -362,7 +349,6 @@ files:
|
|
362
349
|
- facts/4.7/almalinux-8-x86_64.facts
|
363
350
|
- facts/4.7/almalinux-9-x86_64.facts
|
364
351
|
- facts/4.7/archlinux-x86_64.facts
|
365
|
-
- facts/4.7/centos-8-x86_64.facts
|
366
352
|
- facts/4.7/centos-9-x86_64.facts
|
367
353
|
- facts/4.7/debian-11-x86_64.facts
|
368
354
|
- facts/4.7/debian-12-x86_64.facts
|
@@ -432,7 +418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
432
418
|
- !ruby/object:Gem::Version
|
433
419
|
version: '0'
|
434
420
|
requirements: []
|
435
|
-
rubygems_version: 3.5.
|
421
|
+
rubygems_version: 3.5.11
|
436
422
|
signing_key:
|
437
423
|
specification_version: 4
|
438
424
|
summary: A Database of OS facts provided by Facter
|