facterdb 4.1.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/pages.yml +2 -2
- data/.github/workflows/release.yml +6 -6
- data/.github/workflows/test.yml +3 -3
- data/.rubocop.yml +0 -3
- data/CHANGELOG.md +31 -0
- data/Gemfile +1 -1
- data/README.md +1 -19
- data/facterdb.gemspec +1 -1
- data/facts/5.1/amazon-2023-x86_64.facts +527 -0
- data/facts/5.1/fedora-42-x86_64.facts +546 -0
- data/facts/5.1/fedora-43-x86_64.facts +597 -0
- data/facts/5.1/freebsd-13-x86_64.facts +440 -0
- data/facts/5.1/freebsd-14-x86_64.facts +440 -0
- data/facts/5.1/opensuse-16-x86_64.facts +290 -0
- data/facts/5.1/oraclelinux-10-x86_64.facts +551 -0
- data/facts/5.1/windows-10-x86_64.facts +173 -0
- data/facts/5.1/windows-11-x86_64.facts +173 -0
- data/facts/5.1/windows-2019-x86_64.facts +167 -0
- data/facts/5.1/windows-2022-x86_64.facts +168 -0
- data/facts/5.1/windows-2025-x86_64.facts +159 -0
- data/facts/5.6/ubuntu-26.04-x86_64.facts +606 -0
- data/facts/Vagrantfile +367 -219
- data/facts/get_facts.sh +12 -3
- data/facts/versions.txt +2 -23
- data/facts/windows_get_facts.ps1 +2 -2
- data/lib/facterdb/version.rb +1 -1
- data/spec/facter_db_spec.rb +2 -2
- metadata +17 -4
data/facts/get_facts.sh
CHANGED
|
@@ -32,7 +32,7 @@ apt_install() {
|
|
|
32
32
|
|
|
33
33
|
if test -f /usr/bin/zypper; then
|
|
34
34
|
zypper --non-interactive --gpg-auto-import-keys refresh
|
|
35
|
-
zypper --non-interactive install ruby-devel
|
|
35
|
+
zypper --non-interactive install ruby-devel augeas
|
|
36
36
|
osfamily='Suse'
|
|
37
37
|
# This is Leap which is based on SLES 12
|
|
38
38
|
if [[ `cat /etc/os-release |grep -e '^VERSION="42' -c` == 1 ]]; then
|
|
@@ -60,11 +60,17 @@ elif test -f '/etc/gentoo-release'; then
|
|
|
60
60
|
osfamily='Gentoo'
|
|
61
61
|
elif test -f '/etc/os-release' && grep -q 'Amazon' '/etc/os-release'; then
|
|
62
62
|
osfamily='RedHat'
|
|
63
|
-
|
|
63
|
+
if grep -q 'VERSION="2023"' '/etc/os-release'; then
|
|
64
|
+
operatingsystemmajrelease='9'
|
|
65
|
+
else
|
|
66
|
+
operatingsystemmajrelease='7'
|
|
67
|
+
fi
|
|
64
68
|
else
|
|
65
69
|
osfamily=$(uname)
|
|
66
70
|
fi
|
|
71
|
+
|
|
67
72
|
. /etc/os-release
|
|
73
|
+
|
|
68
74
|
case "${osfamily}" in
|
|
69
75
|
'RedHat')
|
|
70
76
|
if [[ $ID == fedora ]]; then
|
|
@@ -73,6 +79,9 @@ case "${osfamily}" in
|
|
|
73
79
|
elif [[ $ID == ol ]]; then
|
|
74
80
|
distcode=el
|
|
75
81
|
dnf -y groupinstall 'Development Tools'
|
|
82
|
+
elif [[ $ID == amzn ]]; then
|
|
83
|
+
distcode=el
|
|
84
|
+
dnf -y install ruby ruby-devel wget make gcc net-tools augeas
|
|
76
85
|
else
|
|
77
86
|
distcode=el
|
|
78
87
|
fi
|
|
@@ -121,7 +130,7 @@ case "${osfamily}" in
|
|
|
121
130
|
;;
|
|
122
131
|
'FreeBSD')
|
|
123
132
|
pkg update
|
|
124
|
-
for facter_package in
|
|
133
|
+
for facter_package in rubygem-openfact ; do
|
|
125
134
|
pkg install -fy ${facter_package}
|
|
126
135
|
|
|
127
136
|
# something about the pkg update process causes the shared folder mount to
|
data/facts/versions.txt
CHANGED
|
@@ -9,26 +9,5 @@
|
|
|
9
9
|
# OpenFact 5.1.0 - Released July 2025 and shipped in OpenVox 8.23/8.22/8.21.1. OpenFact 5.0.0 isn't in any packages
|
|
10
10
|
8.23.1
|
|
11
11
|
|
|
12
|
-
#
|
|
13
|
-
8.
|
|
14
|
-
|
|
15
|
-
# Facter 4.10.0 - Released October 2024 and shipped with Puppet 8.10.0
|
|
16
|
-
8.10.0
|
|
17
|
-
|
|
18
|
-
# Facter 4.9.0 - Released September 2024 and shipped with Puppet 8.9.0
|
|
19
|
-
8.9.0
|
|
20
|
-
|
|
21
|
-
# Facter 4.8.0 - Released July 2024 and shipped with Puppet 8.8.1
|
|
22
|
-
8.8.1
|
|
23
|
-
|
|
24
|
-
# Facter 4.7.0 - Released April 2024 and shipped with Puppet 8.6.0.
|
|
25
|
-
8.6.0
|
|
26
|
-
|
|
27
|
-
# Facter 4.6.1 - Released March 2024 and shipped with Puppet 8.5.1.
|
|
28
|
-
8.5.1
|
|
29
|
-
|
|
30
|
-
# Facter 4.5.2 - Released January 2023 and shipped with Puppet 8.4.0.
|
|
31
|
-
8.4.0
|
|
32
|
-
|
|
33
|
-
# Facter 4.4.2 - Released August 2023 and shipped with Puppet 8.2.0.
|
|
34
|
-
8.2.0
|
|
12
|
+
# OpenFact 5.6.0 - Released April 2026 and shipped in OpenVox 8.26+
|
|
13
|
+
8.26.2
|
data/facts/windows_get_facts.ps1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
param(
|
|
2
2
|
[string]$puppetAgentVersionList = 'X:\versions.txt',
|
|
3
|
-
[string]$baseUrl = 'https://downloads.
|
|
3
|
+
[string]$baseUrl = 'https://downloads.voxpupuli.org/windows/openvox{0}/openvox-agent-{1}-{2}.msi',
|
|
4
4
|
[string]$fqdn = 'foo.example.com'
|
|
5
5
|
)
|
|
6
6
|
|
|
@@ -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 = @("--json"
|
|
91
|
+
$facterArgs = @("--json")
|
|
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/version.rb
CHANGED
data/spec/facter_db_spec.rb
CHANGED
|
@@ -221,7 +221,7 @@ describe FacterDB do
|
|
|
221
221
|
end
|
|
222
222
|
|
|
223
223
|
it 'with Array' do
|
|
224
|
-
expect(FacterDB.generate_filter_str([kernel: 'Linux'])).to eq('(kernel=Linux)')
|
|
224
|
+
expect(FacterDB.generate_filter_str([{ kernel: 'Linux' }])).to eq('(kernel=Linux)')
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
it 'empty' do
|
|
@@ -264,7 +264,7 @@ describe FacterDB do
|
|
|
264
264
|
end
|
|
265
265
|
|
|
266
266
|
context 'with an Array filter' do
|
|
267
|
-
let(:filter) { [kernel: 'Linux'] }
|
|
267
|
+
let(:filter) { [{ kernel: 'Linux' }] }
|
|
268
268
|
|
|
269
269
|
it_behaves_like 'returns a result'
|
|
270
270
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: facterdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
@@ -63,14 +63,14 @@ dependencies:
|
|
|
63
63
|
requirements:
|
|
64
64
|
- - "~>"
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
66
|
+
version: 5.2.0
|
|
67
67
|
type: :development
|
|
68
68
|
prerelease: false
|
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
|
71
71
|
- - "~>"
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
|
-
version:
|
|
73
|
+
version: 5.2.0
|
|
74
74
|
- !ruby/object:Gem::Dependency
|
|
75
75
|
name: jgrep
|
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -510,11 +510,18 @@ files:
|
|
|
510
510
|
- facts/5.1/almalinux-10-x86_64.facts
|
|
511
511
|
- facts/5.1/almalinux-8-x86_64.facts
|
|
512
512
|
- facts/5.1/almalinux-9-x86_64.facts
|
|
513
|
+
- facts/5.1/amazon-2023-x86_64.facts
|
|
513
514
|
- facts/5.1/centos-10-x86_64.facts
|
|
514
515
|
- facts/5.1/centos-9-x86_64.facts
|
|
515
516
|
- facts/5.1/debian-11-x86_64.facts
|
|
516
517
|
- facts/5.1/debian-12-x86_64.facts
|
|
517
518
|
- facts/5.1/debian-13-x86_64.facts
|
|
519
|
+
- facts/5.1/fedora-42-x86_64.facts
|
|
520
|
+
- facts/5.1/fedora-43-x86_64.facts
|
|
521
|
+
- facts/5.1/freebsd-13-x86_64.facts
|
|
522
|
+
- facts/5.1/freebsd-14-x86_64.facts
|
|
523
|
+
- facts/5.1/opensuse-16-x86_64.facts
|
|
524
|
+
- facts/5.1/oraclelinux-10-x86_64.facts
|
|
518
525
|
- facts/5.1/oraclelinux-8-x86_64.facts
|
|
519
526
|
- facts/5.1/oraclelinux-9-x86_64.facts
|
|
520
527
|
- facts/5.1/redhat-8-x86_64.facts
|
|
@@ -524,6 +531,12 @@ files:
|
|
|
524
531
|
- facts/5.1/rocky-9-x86_64.facts
|
|
525
532
|
- facts/5.1/ubuntu-22.04-x86_64.facts
|
|
526
533
|
- facts/5.1/ubuntu-24.04-x86_64.facts
|
|
534
|
+
- facts/5.1/windows-10-x86_64.facts
|
|
535
|
+
- facts/5.1/windows-11-x86_64.facts
|
|
536
|
+
- facts/5.1/windows-2019-x86_64.facts
|
|
537
|
+
- facts/5.1/windows-2022-x86_64.facts
|
|
538
|
+
- facts/5.1/windows-2025-x86_64.facts
|
|
539
|
+
- facts/5.6/ubuntu-26.04-x86_64.facts
|
|
527
540
|
- facts/Gemfile
|
|
528
541
|
- facts/README.md
|
|
529
542
|
- facts/Vagrantfile
|
|
@@ -572,7 +585,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
572
585
|
- !ruby/object:Gem::Version
|
|
573
586
|
version: '0'
|
|
574
587
|
requirements: []
|
|
575
|
-
rubygems_version:
|
|
588
|
+
rubygems_version: 4.0.6
|
|
576
589
|
specification_version: 4
|
|
577
590
|
summary: A Database of OS facts provided by Facter
|
|
578
591
|
test_files: []
|