facterdb 3.9.0 → 4.0.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 +1 -1
- data/.github/workflows/release.yml +5 -5
- data/.github/workflows/test.yml +2 -2
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +12 -16
- data/CHANGELOG.md +16 -0
- data/facterdb.gemspec +2 -2
- data/facts/4.11/debian-13-x86_64.facts +515 -0
- data/facts/5.1/debian-13-x86_64.facts +511 -0
- data/lib/facterdb/version.rb +1 -1
- data/lib/facterdb.rb +1 -1
- data/spec/facter_db_spec.rb +4 -4
- data/spec/facts_spec.rb +2 -3
- data/spec/spec_helper.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55fbb7e034c2f4b38f9e547240a29f84fd2ead1de14edf0234aa2f31d4a572ae
|
4
|
+
data.tar.gz: cb70cfca4a7a269a9a4f66933ab2bfaded0fe8897db543195129320fae8dbdf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c75725b68ad135b124d49a2e23320d549b7cc5d0f0d576a10edf704546e22175374ebb31c8e0e499d8adf91a37a730f80c7058db720ec98b75183c98bff0562
|
7
|
+
data.tar.gz: 0532e2b2a6476324f3c7d2a69c5a1138c2bc4645823038e221acb35c83f789ff1cc7373795d6ee73eb868ec87a00b5309e1c9fe6b54e6a5fc51d93f06a2f199f
|
data/.github/workflows/pages.yml
CHANGED
@@ -15,7 +15,7 @@ jobs:
|
|
15
15
|
name: Build the gem
|
16
16
|
runs-on: ubuntu-24.04
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v5
|
19
19
|
- name: Install Ruby
|
20
20
|
uses: ruby/setup-ruby@v1
|
21
21
|
with:
|
@@ -39,7 +39,7 @@ jobs:
|
|
39
39
|
contents: write # clone repo and create release
|
40
40
|
steps:
|
41
41
|
- name: Download gem from GitHub cache
|
42
|
-
uses: actions/download-artifact@
|
42
|
+
uses: actions/download-artifact@v5
|
43
43
|
with:
|
44
44
|
name: gem-artifact
|
45
45
|
- name: Create Release
|
@@ -56,7 +56,7 @@ jobs:
|
|
56
56
|
packages: write # publish to rubygems.pkg.github.com
|
57
57
|
steps:
|
58
58
|
- name: Download gem from GitHub cache
|
59
|
-
uses: actions/download-artifact@
|
59
|
+
uses: actions/download-artifact@v5
|
60
60
|
with:
|
61
61
|
name: gem-artifact
|
62
62
|
- name: Publish gem to GitHub packages
|
@@ -73,7 +73,7 @@ jobs:
|
|
73
73
|
id-token: write # rubygems.org authentication
|
74
74
|
steps:
|
75
75
|
- name: Download gem from GitHub cache
|
76
|
-
uses: actions/download-artifact@
|
76
|
+
uses: actions/download-artifact@v5
|
77
77
|
with:
|
78
78
|
name: gem-artifact
|
79
79
|
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
@@ -92,7 +92,7 @@ jobs:
|
|
92
92
|
- release-to-rubygems
|
93
93
|
steps:
|
94
94
|
- name: Download gem from GitHub cache
|
95
|
-
uses: actions/download-artifact@
|
95
|
+
uses: actions/download-artifact@v5
|
96
96
|
with:
|
97
97
|
name: gem-artifact
|
98
98
|
- name: Install Ruby
|
data/.github/workflows/test.yml
CHANGED
@@ -15,7 +15,7 @@ jobs:
|
|
15
15
|
outputs:
|
16
16
|
ruby: ${{ steps.ruby.outputs.versions }}
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v5
|
19
19
|
- name: Install Ruby ${{ matrix.ruby }}
|
20
20
|
uses: ruby/setup-ruby@v1
|
21
21
|
with:
|
@@ -34,7 +34,7 @@ jobs:
|
|
34
34
|
matrix:
|
35
35
|
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
36
36
|
steps:
|
37
|
-
- uses: actions/checkout@
|
37
|
+
- uses: actions/checkout@v5
|
38
38
|
- name: Install Ruby ${{ matrix.ruby }}
|
39
39
|
uses: ruby/setup-ruby@v1
|
40
40
|
with:
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.79.2.
|
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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
|
-
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
10
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
11
11
|
Lint/DuplicateBranch:
|
12
12
|
Exclude:
|
13
13
|
- 'Rakefile'
|
@@ -18,13 +18,6 @@ Lint/SuppressedException:
|
|
18
18
|
Exclude:
|
19
19
|
- 'Rakefile'
|
20
20
|
|
21
|
-
# Offense count: 3
|
22
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
23
|
-
# Configuration parameters: AutoCorrect.
|
24
|
-
Lint/UselessAssignment:
|
25
|
-
Exclude:
|
26
|
-
- 'spec/facts_spec.rb'
|
27
|
-
|
28
21
|
# Offense count: 3
|
29
22
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
30
23
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
@@ -71,15 +64,11 @@ RSpec/DescribedClass:
|
|
71
64
|
Exclude:
|
72
65
|
- 'spec/facter_db_spec.rb'
|
73
66
|
|
74
|
-
# Offense count:
|
67
|
+
# Offense count: 4
|
75
68
|
# Configuration parameters: CountAsOne.
|
76
69
|
RSpec/ExampleLength:
|
77
70
|
Max: 13
|
78
71
|
|
79
|
-
# Offense count: 8
|
80
|
-
RSpec/MultipleExpectations:
|
81
|
-
Max: 13
|
82
|
-
|
83
72
|
# Offense count: 11
|
84
73
|
# Configuration parameters: AllowSubject.
|
85
74
|
RSpec/MultipleMemoizedHelpers:
|
@@ -105,6 +94,12 @@ Style/CaseLikeIf:
|
|
105
94
|
Exclude:
|
106
95
|
- 'Rakefile'
|
107
96
|
|
97
|
+
# Offense count: 1
|
98
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
99
|
+
Style/CollectionQuerying:
|
100
|
+
Exclude:
|
101
|
+
- 'spec/facts_spec.rb'
|
102
|
+
|
108
103
|
# Offense count: 2
|
109
104
|
# Configuration parameters: AllowedConstants.
|
110
105
|
Style/Documentation:
|
@@ -120,6 +115,7 @@ Style/Documentation:
|
|
120
115
|
# SupportedStyles: always, always_true, never
|
121
116
|
Style/FrozenStringLiteralComment:
|
122
117
|
Exclude:
|
118
|
+
- '**/*.arb'
|
123
119
|
- 'Gemfile'
|
124
120
|
- 'Rakefile'
|
125
121
|
- 'bin/facterdb'
|
@@ -188,7 +184,7 @@ Style/SymbolProc:
|
|
188
184
|
|
189
185
|
# Offense count: 5
|
190
186
|
# This cop supports safe autocorrection (--autocorrect).
|
191
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
187
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
192
188
|
# URISchemes: http, https
|
193
189
|
Layout/LineLength:
|
194
190
|
Max: 154
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.0.0](https://rubygems.org/gems/facterdb/versions/4.0.0) (2025-08-12)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/3.10.0...4.0.0)
|
6
|
+
|
7
|
+
**Breaking changes:**
|
8
|
+
|
9
|
+
- Require Ruby 3.2 or newer [\#415](https://github.com/voxpupuli/facterdb/pull/415) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
11
|
+
## [3.10.0](https://rubygems.org/gems/facterdb/versions/3.10.0) (2025-08-11)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/3.9.0...3.10.0)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Add Debian 13 Facter 4.11 & OpenFact 5.1 factsets [\#411](https://github.com/voxpupuli/facterdb/pull/411) ([bastelfreak](https://github.com/bastelfreak))
|
18
|
+
|
3
19
|
## [3.9.0](https://rubygems.org/gems/facterdb/versions/3.9.0) (2025-08-01)
|
4
20
|
|
5
21
|
[Full Changelog](https://github.com/voxpupuli/facterdb/compare/3.8.0...3.9.0)
|
data/facterdb.gemspec
CHANGED
@@ -15,12 +15,12 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
16
16
|
|
17
17
|
# we have that configured in our CI file
|
18
|
-
s.required_ruby_version = Gem::Requirement.new('>= 2.
|
18
|
+
s.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
|
19
19
|
|
20
20
|
s.add_development_dependency 'coveralls', '~> 0.8.23'
|
21
21
|
s.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
22
22
|
s.add_development_dependency 'rspec', '~> 3.13'
|
23
23
|
|
24
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~>
|
24
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 4.2.0'
|
25
25
|
s.add_dependency 'jgrep', '~> 1.5', '>= 1.5.4'
|
26
26
|
end
|
@@ -0,0 +1,515 @@
|
|
1
|
+
{
|
2
|
+
"aio_agent_version": "8.19.2",
|
3
|
+
"augeas": {
|
4
|
+
"version": "1.14.1"
|
5
|
+
},
|
6
|
+
"disks": {
|
7
|
+
"sda": {
|
8
|
+
"model": "VBOX HARDDISK",
|
9
|
+
"serial": "VBae4feaab-95087335",
|
10
|
+
"size": "100.00 GiB",
|
11
|
+
"size_bytes": 107374182400,
|
12
|
+
"type": "hdd",
|
13
|
+
"vendor": "ATA"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"dmi": {
|
17
|
+
"bios": {
|
18
|
+
"release_date": "12/01/2006",
|
19
|
+
"vendor": "innotek GmbH",
|
20
|
+
"version": "VirtualBox"
|
21
|
+
},
|
22
|
+
"board": {
|
23
|
+
"manufacturer": "Oracle Corporation",
|
24
|
+
"product": "VirtualBox",
|
25
|
+
"serial_number": "0"
|
26
|
+
},
|
27
|
+
"chassis": {
|
28
|
+
"type": "Other"
|
29
|
+
},
|
30
|
+
"manufacturer": "innotek GmbH",
|
31
|
+
"product": {
|
32
|
+
"name": "VirtualBox",
|
33
|
+
"serial_number": "0",
|
34
|
+
"uuid": "c65c8389-013a-421e-a385-c097bba118d2",
|
35
|
+
"version": "1.2"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"facterversion": "4.11.0",
|
39
|
+
"filesystems": "ext2,ext3,ext4",
|
40
|
+
"fips_enabled": false,
|
41
|
+
"hypervisors": {
|
42
|
+
"virtualbox": {
|
43
|
+
"revision": "169651",
|
44
|
+
"version": "7.1.12"
|
45
|
+
},
|
46
|
+
"vmware": {
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"identity": {
|
50
|
+
"gid": 0,
|
51
|
+
"group": "root",
|
52
|
+
"privileged": true,
|
53
|
+
"uid": 0,
|
54
|
+
"user": "root"
|
55
|
+
},
|
56
|
+
"is_virtual": true,
|
57
|
+
"kernel": "Linux",
|
58
|
+
"kernelmajversion": "6.12",
|
59
|
+
"kernelrelease": "6.12.22-amd64",
|
60
|
+
"kernelversion": "6.12.22",
|
61
|
+
"load_averages": {
|
62
|
+
"15m": 0.21,
|
63
|
+
"1m": 0.19,
|
64
|
+
"5m": 0.36
|
65
|
+
},
|
66
|
+
"memory": {
|
67
|
+
"system": {
|
68
|
+
"available": "282.16 MiB",
|
69
|
+
"available_bytes": 295862272,
|
70
|
+
"capacity": "39.18%",
|
71
|
+
"total": "463.94 MiB",
|
72
|
+
"total_bytes": 486477824,
|
73
|
+
"used": "181.79 MiB",
|
74
|
+
"used_bytes": 190615552
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"mountpoints": {
|
78
|
+
"/": {
|
79
|
+
"available": "91.45 GiB",
|
80
|
+
"available_bytes": 98192732160,
|
81
|
+
"capacity": "1.51%",
|
82
|
+
"device": "/dev/sda1",
|
83
|
+
"filesystem": "ext4",
|
84
|
+
"options": [
|
85
|
+
"rw",
|
86
|
+
"relatime",
|
87
|
+
"discard",
|
88
|
+
"errors=remount-ro"
|
89
|
+
],
|
90
|
+
"size": "97.87 GiB",
|
91
|
+
"size_bytes": 105088212992,
|
92
|
+
"used": "1.41 GiB",
|
93
|
+
"used_bytes": 1510047744
|
94
|
+
},
|
95
|
+
"/dev": {
|
96
|
+
"available": "210.34 MiB",
|
97
|
+
"available_bytes": 220561408,
|
98
|
+
"capacity": "0%",
|
99
|
+
"device": "udev",
|
100
|
+
"filesystem": "devtmpfs",
|
101
|
+
"options": [
|
102
|
+
"rw",
|
103
|
+
"nosuid",
|
104
|
+
"relatime",
|
105
|
+
"size=215392k",
|
106
|
+
"nr_inodes=53848",
|
107
|
+
"mode=755",
|
108
|
+
"inode64"
|
109
|
+
],
|
110
|
+
"size": "210.34 MiB",
|
111
|
+
"size_bytes": 220561408,
|
112
|
+
"used": "0 bytes",
|
113
|
+
"used_bytes": 0
|
114
|
+
},
|
115
|
+
"/dev/hugepages": {
|
116
|
+
"available": "0 bytes",
|
117
|
+
"available_bytes": 0,
|
118
|
+
"capacity": "100%",
|
119
|
+
"device": "hugetlbfs",
|
120
|
+
"filesystem": "hugetlbfs",
|
121
|
+
"options": [
|
122
|
+
"rw",
|
123
|
+
"nosuid",
|
124
|
+
"nodev",
|
125
|
+
"relatime",
|
126
|
+
"pagesize=2M"
|
127
|
+
],
|
128
|
+
"size": "0 bytes",
|
129
|
+
"size_bytes": 0,
|
130
|
+
"used": "0 bytes",
|
131
|
+
"used_bytes": 0
|
132
|
+
},
|
133
|
+
"/dev/mqueue": {
|
134
|
+
"available": "0 bytes",
|
135
|
+
"available_bytes": 0,
|
136
|
+
"capacity": "100%",
|
137
|
+
"device": "mqueue",
|
138
|
+
"filesystem": "mqueue",
|
139
|
+
"options": [
|
140
|
+
"rw",
|
141
|
+
"nosuid",
|
142
|
+
"nodev",
|
143
|
+
"noexec",
|
144
|
+
"relatime"
|
145
|
+
],
|
146
|
+
"size": "0 bytes",
|
147
|
+
"size_bytes": 0,
|
148
|
+
"used": "0 bytes",
|
149
|
+
"used_bytes": 0
|
150
|
+
},
|
151
|
+
"/dev/pts": {
|
152
|
+
"available": "0 bytes",
|
153
|
+
"available_bytes": 0,
|
154
|
+
"capacity": "100%",
|
155
|
+
"device": "devpts",
|
156
|
+
"filesystem": "devpts",
|
157
|
+
"options": [
|
158
|
+
"rw",
|
159
|
+
"nosuid",
|
160
|
+
"noexec",
|
161
|
+
"relatime",
|
162
|
+
"gid=5",
|
163
|
+
"mode=600",
|
164
|
+
"ptmxmode=000"
|
165
|
+
],
|
166
|
+
"size": "0 bytes",
|
167
|
+
"size_bytes": 0,
|
168
|
+
"used": "0 bytes",
|
169
|
+
"used_bytes": 0
|
170
|
+
},
|
171
|
+
"/dev/shm": {
|
172
|
+
"available": "231.97 MiB",
|
173
|
+
"available_bytes": 243236864,
|
174
|
+
"capacity": "0%",
|
175
|
+
"device": "tmpfs",
|
176
|
+
"filesystem": "tmpfs",
|
177
|
+
"options": [
|
178
|
+
"rw",
|
179
|
+
"nosuid",
|
180
|
+
"nodev",
|
181
|
+
"inode64"
|
182
|
+
],
|
183
|
+
"size": "231.97 MiB",
|
184
|
+
"size_bytes": 243236864,
|
185
|
+
"used": "0 bytes",
|
186
|
+
"used_bytes": 0
|
187
|
+
},
|
188
|
+
"/run": {
|
189
|
+
"available": "45.96 MiB",
|
190
|
+
"available_bytes": 48189440,
|
191
|
+
"capacity": "0.94%",
|
192
|
+
"device": "tmpfs",
|
193
|
+
"filesystem": "tmpfs",
|
194
|
+
"options": [
|
195
|
+
"rw",
|
196
|
+
"nosuid",
|
197
|
+
"nodev",
|
198
|
+
"noexec",
|
199
|
+
"relatime",
|
200
|
+
"size=47508k",
|
201
|
+
"mode=755",
|
202
|
+
"inode64"
|
203
|
+
],
|
204
|
+
"size": "46.39 MiB",
|
205
|
+
"size_bytes": 48648192,
|
206
|
+
"used": "448.00 KiB",
|
207
|
+
"used_bytes": 458752
|
208
|
+
},
|
209
|
+
"/run/credentials/getty@tty1.service": {
|
210
|
+
"available": "1.00 MiB",
|
211
|
+
"available_bytes": 1048576,
|
212
|
+
"capacity": "0%",
|
213
|
+
"device": "tmpfs",
|
214
|
+
"filesystem": "tmpfs",
|
215
|
+
"options": [
|
216
|
+
"ro",
|
217
|
+
"nosuid",
|
218
|
+
"nodev",
|
219
|
+
"noexec",
|
220
|
+
"relatime",
|
221
|
+
"nosymfollow",
|
222
|
+
"size=1024k",
|
223
|
+
"nr_inodes=1024",
|
224
|
+
"mode=700",
|
225
|
+
"inode64",
|
226
|
+
"noswap"
|
227
|
+
],
|
228
|
+
"size": "1.00 MiB",
|
229
|
+
"size_bytes": 1048576,
|
230
|
+
"used": "0 bytes",
|
231
|
+
"used_bytes": 0
|
232
|
+
},
|
233
|
+
"/run/credentials/systemd-journald.service": {
|
234
|
+
"available": "1.00 MiB",
|
235
|
+
"available_bytes": 1048576,
|
236
|
+
"capacity": "0%",
|
237
|
+
"device": "tmpfs",
|
238
|
+
"filesystem": "tmpfs",
|
239
|
+
"options": [
|
240
|
+
"ro",
|
241
|
+
"nosuid",
|
242
|
+
"nodev",
|
243
|
+
"noexec",
|
244
|
+
"relatime",
|
245
|
+
"nosymfollow",
|
246
|
+
"size=1024k",
|
247
|
+
"nr_inodes=1024",
|
248
|
+
"mode=700",
|
249
|
+
"inode64",
|
250
|
+
"noswap"
|
251
|
+
],
|
252
|
+
"size": "1.00 MiB",
|
253
|
+
"size_bytes": 1048576,
|
254
|
+
"used": "0 bytes",
|
255
|
+
"used_bytes": 0
|
256
|
+
},
|
257
|
+
"/run/lock": {
|
258
|
+
"available": "5.00 MiB",
|
259
|
+
"available_bytes": 5242880,
|
260
|
+
"capacity": "0%",
|
261
|
+
"device": "tmpfs",
|
262
|
+
"filesystem": "tmpfs",
|
263
|
+
"options": [
|
264
|
+
"rw",
|
265
|
+
"nosuid",
|
266
|
+
"nodev",
|
267
|
+
"noexec",
|
268
|
+
"relatime",
|
269
|
+
"size=5120k",
|
270
|
+
"inode64"
|
271
|
+
],
|
272
|
+
"size": "5.00 MiB",
|
273
|
+
"size_bytes": 5242880,
|
274
|
+
"used": "0 bytes",
|
275
|
+
"used_bytes": 0
|
276
|
+
},
|
277
|
+
"/run/user/1000": {
|
278
|
+
"available": "46.39 MiB",
|
279
|
+
"available_bytes": 48640000,
|
280
|
+
"capacity": "0.01%",
|
281
|
+
"device": "tmpfs",
|
282
|
+
"filesystem": "tmpfs",
|
283
|
+
"options": [
|
284
|
+
"rw",
|
285
|
+
"nosuid",
|
286
|
+
"nodev",
|
287
|
+
"relatime",
|
288
|
+
"size=47504k",
|
289
|
+
"nr_inodes=11876",
|
290
|
+
"mode=700",
|
291
|
+
"uid=1000",
|
292
|
+
"gid=1000",
|
293
|
+
"inode64"
|
294
|
+
],
|
295
|
+
"size": "46.39 MiB",
|
296
|
+
"size_bytes": 48644096,
|
297
|
+
"used": "4.00 KiB",
|
298
|
+
"used_bytes": 4096
|
299
|
+
},
|
300
|
+
"/tmp": {
|
301
|
+
"available": "231.97 MiB",
|
302
|
+
"available_bytes": 243236864,
|
303
|
+
"capacity": "0.00%",
|
304
|
+
"device": "tmpfs",
|
305
|
+
"filesystem": "tmpfs",
|
306
|
+
"options": [
|
307
|
+
"rw",
|
308
|
+
"nosuid",
|
309
|
+
"nodev",
|
310
|
+
"size=237540k",
|
311
|
+
"nr_inodes=1048576",
|
312
|
+
"inode64"
|
313
|
+
],
|
314
|
+
"size": "231.97 MiB",
|
315
|
+
"size_bytes": 243240960,
|
316
|
+
"used": "4.00 KiB",
|
317
|
+
"used_bytes": 4096
|
318
|
+
},
|
319
|
+
"/vagrant": {
|
320
|
+
"available": "318.26 GiB",
|
321
|
+
"available_bytes": 341724860416,
|
322
|
+
"capacity": "65.00%",
|
323
|
+
"device": "vagrant",
|
324
|
+
"filesystem": "vboxsf",
|
325
|
+
"options": [
|
326
|
+
"rw",
|
327
|
+
"relatime"
|
328
|
+
],
|
329
|
+
"size": "909.41 GiB",
|
330
|
+
"size_bytes": 976476184576,
|
331
|
+
"used": "591.16 GiB",
|
332
|
+
"used_bytes": 634751324160
|
333
|
+
}
|
334
|
+
},
|
335
|
+
"networking": {
|
336
|
+
"dhcp": "10.0.2.2",
|
337
|
+
"domain": "example.com",
|
338
|
+
"fqdn": "foo.example.com",
|
339
|
+
"hostname": "foo",
|
340
|
+
"interfaces": {
|
341
|
+
"eth0": {
|
342
|
+
"bindings": [
|
343
|
+
{
|
344
|
+
"address": "10.0.2.15",
|
345
|
+
"netmask": "255.255.255.0",
|
346
|
+
"network": "10.0.2.0"
|
347
|
+
}
|
348
|
+
],
|
349
|
+
"bindings6": [
|
350
|
+
{
|
351
|
+
"address": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
352
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
353
|
+
"network": "fd17:625c:f037:2::",
|
354
|
+
"scope6": "global",
|
355
|
+
"flags": [
|
356
|
+
|
357
|
+
]
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"address": "fe80::a00:27ff:fe8d:c04d",
|
361
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
362
|
+
"network": "fe80::",
|
363
|
+
"scope6": "link",
|
364
|
+
"flags": [
|
365
|
+
"permanent"
|
366
|
+
]
|
367
|
+
}
|
368
|
+
],
|
369
|
+
"dhcp": "10.0.2.2",
|
370
|
+
"duplex": "full",
|
371
|
+
"ip": "10.0.2.15",
|
372
|
+
"ip6": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
373
|
+
"mac": "08:00:27:8d:c0:4d",
|
374
|
+
"mtu": 1500,
|
375
|
+
"netmask": "255.255.255.0",
|
376
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
377
|
+
"network": "10.0.2.0",
|
378
|
+
"network6": "fd17:625c:f037:2::",
|
379
|
+
"operational_state": "up",
|
380
|
+
"physical": true,
|
381
|
+
"scope6": "global",
|
382
|
+
"speed": 1000
|
383
|
+
},
|
384
|
+
"lo": {
|
385
|
+
"bindings": [
|
386
|
+
{
|
387
|
+
"address": "127.0.0.1",
|
388
|
+
"netmask": "255.0.0.0",
|
389
|
+
"network": "127.0.0.0"
|
390
|
+
}
|
391
|
+
],
|
392
|
+
"bindings6": [
|
393
|
+
{
|
394
|
+
"address": "::1",
|
395
|
+
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
|
396
|
+
"network": "::1",
|
397
|
+
"scope6": "host",
|
398
|
+
"flags": [
|
399
|
+
"permanent"
|
400
|
+
]
|
401
|
+
}
|
402
|
+
],
|
403
|
+
"ip": "127.0.0.1",
|
404
|
+
"ip6": "::1",
|
405
|
+
"mtu": 65536,
|
406
|
+
"netmask": "255.0.0.0",
|
407
|
+
"netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
|
408
|
+
"network": "127.0.0.0",
|
409
|
+
"network6": "::1",
|
410
|
+
"operational_state": "unknown",
|
411
|
+
"physical": false,
|
412
|
+
"scope6": "host"
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"ip": "10.0.2.15",
|
416
|
+
"ip6": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
417
|
+
"mac": "08:00:27:8d:c0:4d",
|
418
|
+
"mtu": 1500,
|
419
|
+
"netmask": "255.255.255.0",
|
420
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
421
|
+
"network": "10.0.2.0",
|
422
|
+
"network6": "fd17:625c:f037:2::",
|
423
|
+
"primary": "eth0",
|
424
|
+
"scope6": "global"
|
425
|
+
},
|
426
|
+
"os": {
|
427
|
+
"architecture": "amd64",
|
428
|
+
"distro": {
|
429
|
+
"codename": "trixie",
|
430
|
+
"description": "Debian GNU/Linux trixie/sid",
|
431
|
+
"id": "Debian",
|
432
|
+
"release": {
|
433
|
+
"full": "trixie/sid",
|
434
|
+
"major": "trixie/sid"
|
435
|
+
}
|
436
|
+
},
|
437
|
+
"family": "Debian",
|
438
|
+
"hardware": "x86_64",
|
439
|
+
"name": "Debian",
|
440
|
+
"release": {
|
441
|
+
"full": "trixie/sid",
|
442
|
+
"major": "trixie/sid"
|
443
|
+
},
|
444
|
+
"selinux": {
|
445
|
+
"enabled": false
|
446
|
+
}
|
447
|
+
},
|
448
|
+
"partitions": {
|
449
|
+
"/dev/sda1": {
|
450
|
+
"filesystem": "ext4",
|
451
|
+
"mount": "/",
|
452
|
+
"parttype": "0x83",
|
453
|
+
"partuuid": "d9cdb1d5-01",
|
454
|
+
"size": "100.00 GiB",
|
455
|
+
"size_bytes": 107373133824,
|
456
|
+
"uuid": "3e2ea841-7273-49c7-8835-cbd02e83cbd8"
|
457
|
+
}
|
458
|
+
},
|
459
|
+
"path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin",
|
460
|
+
"processors": {
|
461
|
+
"cores": 2,
|
462
|
+
"count": 2,
|
463
|
+
"extensions": [
|
464
|
+
"unknown"
|
465
|
+
],
|
466
|
+
"isa": "unknown",
|
467
|
+
"models": [
|
468
|
+
"AMD Ryzen 9 7940HS w/ Radeon 780M Graphics",
|
469
|
+
"AMD Ryzen 9 7940HS w/ Radeon 780M Graphics"
|
470
|
+
],
|
471
|
+
"physicalcount": 1,
|
472
|
+
"speed": "3.99 GHz",
|
473
|
+
"threads": 1
|
474
|
+
},
|
475
|
+
"puppetversion": "8.19.2",
|
476
|
+
"ruby": {
|
477
|
+
"platform": "x86_64-linux",
|
478
|
+
"sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/3.2.0",
|
479
|
+
"version": "3.2.8"
|
480
|
+
},
|
481
|
+
"ssh": {
|
482
|
+
"ecdsa": {
|
483
|
+
"fingerprints": {
|
484
|
+
"sha1": "SSHFP 3 1 107d6a7afecfddfb21f0aa09d0a68eaad4b0000b",
|
485
|
+
"sha256": "SSHFP 3 2 16ff8f4da9097e57e907a9f64d9601b121bce6c9f7f75728c2e325c0d73339a7"
|
486
|
+
},
|
487
|
+
"key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHRa3zI4J4KZtjG35zEZocHKN4Z82iaB+6Hl73LJN0JCyD4l0bGZDmhD0OFOdu0ypQdnr66POdnMndMVJTP7D2Q=",
|
488
|
+
"type": "ecdsa-sha2-nistp256"
|
489
|
+
},
|
490
|
+
"ed25519": {
|
491
|
+
"fingerprints": {
|
492
|
+
"sha1": "SSHFP 4 1 6173a0cfc1b3f294ab226714f3b9c9a6dab3d073",
|
493
|
+
"sha256": "SSHFP 4 2 8cf199cabdc7fa58cab01db0685136dac0b72b146bd4af2d368e0e995ebba932"
|
494
|
+
},
|
495
|
+
"key": "AAAAC3NzaC1lZDI1NTE5AAAAICXqDyaWFE2ITEEt3Fr5QliOpB9BsXJaF3P5fKaA0ms/",
|
496
|
+
"type": "ssh-ed25519"
|
497
|
+
},
|
498
|
+
"rsa": {
|
499
|
+
"fingerprints": {
|
500
|
+
"sha1": "SSHFP 1 1 5aed143d62750ced478729b4e1d0f0c75066f82e",
|
501
|
+
"sha256": "SSHFP 1 2 9eb636830ec874df997d384b988036c9645c5c7ea536952654706d6e319e4687"
|
502
|
+
},
|
503
|
+
"key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCsR6Qaa8Ld+SUUxJeA1HrUe0Qd6NHuacH6Bte/Bq5lKFEK+10U1n2jdfDtBVPggzRrNI3mN920a1swtY6KnBG79BLZ+CXAV8AnDKhS8iXKMkfdl+K4jkMSGiERdXjpVfpBVQ2gF4BREjZm525ylXCsNeS7CS+IXJ1qcXmqrzjcOF1mJ/9FYjY+BcyL/bo18kgezGWF7VN1i07PLdKjmJq1j7EEAOllRaw0cXxz4blJvdcZ1Nd+dElvDS96rW32/gLJpVUkurXvfB6LZf+K2UDLU6X6TNSP8Ap8rzhLYnfW2AahdYRLI8zNXEw2PUj0txFiFNUVNomubTX8AVQiwu16g2D8wFZKqZJ8PFtf6b493CnCRNK8w+NAPGfsdPXJ0IOqldCDDLhPcwxMncNh7Yz7IyKoP5vGQS6crgHD1Z+9Nd8gwmyOjgi0ERVlq1vXgoYWL5J/TntHcYdwJdKU8yUyzjp54+0F/DF4n/AL8m3Y3MhdGC1frAFmJgApsAfOsMM=",
|
504
|
+
"type": "ssh-rsa"
|
505
|
+
}
|
506
|
+
},
|
507
|
+
"system_uptime": {
|
508
|
+
"days": 0,
|
509
|
+
"hours": 0,
|
510
|
+
"seconds": 444,
|
511
|
+
"uptime": "0:07 hours"
|
512
|
+
},
|
513
|
+
"timezone": "UTC",
|
514
|
+
"virtual": "virtualbox"
|
515
|
+
}
|
@@ -0,0 +1,511 @@
|
|
1
|
+
{
|
2
|
+
"aio_agent_version": "8.19.2",
|
3
|
+
"augeas": {
|
4
|
+
"version": "1.14.1"
|
5
|
+
},
|
6
|
+
"disks": {
|
7
|
+
"sda": {
|
8
|
+
"model": "VBOX HARDDISK",
|
9
|
+
"serial": "VBae4feaab-95087335",
|
10
|
+
"size": "100.00 GiB",
|
11
|
+
"size_bytes": 107374182400,
|
12
|
+
"type": "hdd",
|
13
|
+
"vendor": "ATA"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"dmi": {
|
17
|
+
"bios": {
|
18
|
+
"release_date": "12/01/2006",
|
19
|
+
"vendor": "innotek GmbH",
|
20
|
+
"version": "VirtualBox"
|
21
|
+
},
|
22
|
+
"board": {
|
23
|
+
"manufacturer": "Oracle Corporation",
|
24
|
+
"product": "VirtualBox",
|
25
|
+
"serial_number": "0"
|
26
|
+
},
|
27
|
+
"chassis": {
|
28
|
+
"type": "Other"
|
29
|
+
},
|
30
|
+
"manufacturer": "innotek GmbH",
|
31
|
+
"product": {
|
32
|
+
"name": "VirtualBox",
|
33
|
+
"serial_number": "0",
|
34
|
+
"uuid": "c65c8389-013a-421e-a385-c097bba118d2",
|
35
|
+
"version": "1.2"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"facterversion": "5.1.0",
|
39
|
+
"filesystems": "ext2,ext3,ext4",
|
40
|
+
"fips_enabled": false,
|
41
|
+
"hypervisors": {
|
42
|
+
"virtualbox": {
|
43
|
+
"revision": "169651",
|
44
|
+
"version": "7.1.12"
|
45
|
+
},
|
46
|
+
"vmware": {}
|
47
|
+
},
|
48
|
+
"identity": {
|
49
|
+
"gid": 0,
|
50
|
+
"group": "root",
|
51
|
+
"privileged": true,
|
52
|
+
"uid": 0,
|
53
|
+
"user": "root"
|
54
|
+
},
|
55
|
+
"is_virtual": true,
|
56
|
+
"kernel": "Linux",
|
57
|
+
"kernelmajversion": "6.12",
|
58
|
+
"kernelrelease": "6.12.22-amd64",
|
59
|
+
"kernelversion": "6.12.22",
|
60
|
+
"load_averages": {
|
61
|
+
"15m": 0.18,
|
62
|
+
"1m": 0.2,
|
63
|
+
"5m": 0.21
|
64
|
+
},
|
65
|
+
"memory": {
|
66
|
+
"system": {
|
67
|
+
"available": "316.32 MiB",
|
68
|
+
"available_bytes": 331689984,
|
69
|
+
"capacity": "31.82%",
|
70
|
+
"total": "463.94 MiB",
|
71
|
+
"total_bytes": 486477824,
|
72
|
+
"used": "147.62 MiB",
|
73
|
+
"used_bytes": 154787840
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"mountpoints": {
|
77
|
+
"/": {
|
78
|
+
"available": "91.40 GiB",
|
79
|
+
"available_bytes": 98143358976,
|
80
|
+
"capacity": "1.56%",
|
81
|
+
"device": "/dev/sda1",
|
82
|
+
"filesystem": "ext4",
|
83
|
+
"options": [
|
84
|
+
"rw",
|
85
|
+
"relatime",
|
86
|
+
"discard",
|
87
|
+
"errors=remount-ro"
|
88
|
+
],
|
89
|
+
"size": "97.87 GiB",
|
90
|
+
"size_bytes": 105088212992,
|
91
|
+
"used": "1.45 GiB",
|
92
|
+
"used_bytes": 1559420928
|
93
|
+
},
|
94
|
+
"/dev": {
|
95
|
+
"available": "210.34 MiB",
|
96
|
+
"available_bytes": 220561408,
|
97
|
+
"capacity": "0%",
|
98
|
+
"device": "udev",
|
99
|
+
"filesystem": "devtmpfs",
|
100
|
+
"options": [
|
101
|
+
"rw",
|
102
|
+
"nosuid",
|
103
|
+
"relatime",
|
104
|
+
"size=215392k",
|
105
|
+
"nr_inodes=53848",
|
106
|
+
"mode=755",
|
107
|
+
"inode64"
|
108
|
+
],
|
109
|
+
"size": "210.34 MiB",
|
110
|
+
"size_bytes": 220561408,
|
111
|
+
"used": "0 bytes",
|
112
|
+
"used_bytes": 0
|
113
|
+
},
|
114
|
+
"/dev/hugepages": {
|
115
|
+
"available": "0 bytes",
|
116
|
+
"available_bytes": 0,
|
117
|
+
"capacity": "100%",
|
118
|
+
"device": "hugetlbfs",
|
119
|
+
"filesystem": "hugetlbfs",
|
120
|
+
"options": [
|
121
|
+
"rw",
|
122
|
+
"nosuid",
|
123
|
+
"nodev",
|
124
|
+
"relatime",
|
125
|
+
"pagesize=2M"
|
126
|
+
],
|
127
|
+
"size": "0 bytes",
|
128
|
+
"size_bytes": 0,
|
129
|
+
"used": "0 bytes",
|
130
|
+
"used_bytes": 0
|
131
|
+
},
|
132
|
+
"/dev/mqueue": {
|
133
|
+
"available": "0 bytes",
|
134
|
+
"available_bytes": 0,
|
135
|
+
"capacity": "100%",
|
136
|
+
"device": "mqueue",
|
137
|
+
"filesystem": "mqueue",
|
138
|
+
"options": [
|
139
|
+
"rw",
|
140
|
+
"nosuid",
|
141
|
+
"nodev",
|
142
|
+
"noexec",
|
143
|
+
"relatime"
|
144
|
+
],
|
145
|
+
"size": "0 bytes",
|
146
|
+
"size_bytes": 0,
|
147
|
+
"used": "0 bytes",
|
148
|
+
"used_bytes": 0
|
149
|
+
},
|
150
|
+
"/dev/pts": {
|
151
|
+
"available": "0 bytes",
|
152
|
+
"available_bytes": 0,
|
153
|
+
"capacity": "100%",
|
154
|
+
"device": "devpts",
|
155
|
+
"filesystem": "devpts",
|
156
|
+
"options": [
|
157
|
+
"rw",
|
158
|
+
"nosuid",
|
159
|
+
"noexec",
|
160
|
+
"relatime",
|
161
|
+
"gid=5",
|
162
|
+
"mode=600",
|
163
|
+
"ptmxmode=000"
|
164
|
+
],
|
165
|
+
"size": "0 bytes",
|
166
|
+
"size_bytes": 0,
|
167
|
+
"used": "0 bytes",
|
168
|
+
"used_bytes": 0
|
169
|
+
},
|
170
|
+
"/dev/shm": {
|
171
|
+
"available": "231.97 MiB",
|
172
|
+
"available_bytes": 243236864,
|
173
|
+
"capacity": "0%",
|
174
|
+
"device": "tmpfs",
|
175
|
+
"filesystem": "tmpfs",
|
176
|
+
"options": [
|
177
|
+
"rw",
|
178
|
+
"nosuid",
|
179
|
+
"nodev",
|
180
|
+
"inode64"
|
181
|
+
],
|
182
|
+
"size": "231.97 MiB",
|
183
|
+
"size_bytes": 243236864,
|
184
|
+
"used": "0 bytes",
|
185
|
+
"used_bytes": 0
|
186
|
+
},
|
187
|
+
"/run": {
|
188
|
+
"available": "45.96 MiB",
|
189
|
+
"available_bytes": 48189440,
|
190
|
+
"capacity": "0.94%",
|
191
|
+
"device": "tmpfs",
|
192
|
+
"filesystem": "tmpfs",
|
193
|
+
"options": [
|
194
|
+
"rw",
|
195
|
+
"nosuid",
|
196
|
+
"nodev",
|
197
|
+
"noexec",
|
198
|
+
"relatime",
|
199
|
+
"size=47508k",
|
200
|
+
"mode=755",
|
201
|
+
"inode64"
|
202
|
+
],
|
203
|
+
"size": "46.39 MiB",
|
204
|
+
"size_bytes": 48648192,
|
205
|
+
"used": "448.00 KiB",
|
206
|
+
"used_bytes": 458752
|
207
|
+
},
|
208
|
+
"/run/credentials/getty@tty1.service": {
|
209
|
+
"available": "1.00 MiB",
|
210
|
+
"available_bytes": 1048576,
|
211
|
+
"capacity": "0%",
|
212
|
+
"device": "tmpfs",
|
213
|
+
"filesystem": "tmpfs",
|
214
|
+
"options": [
|
215
|
+
"ro",
|
216
|
+
"nosuid",
|
217
|
+
"nodev",
|
218
|
+
"noexec",
|
219
|
+
"relatime",
|
220
|
+
"nosymfollow",
|
221
|
+
"size=1024k",
|
222
|
+
"nr_inodes=1024",
|
223
|
+
"mode=700",
|
224
|
+
"inode64",
|
225
|
+
"noswap"
|
226
|
+
],
|
227
|
+
"size": "1.00 MiB",
|
228
|
+
"size_bytes": 1048576,
|
229
|
+
"used": "0 bytes",
|
230
|
+
"used_bytes": 0
|
231
|
+
},
|
232
|
+
"/run/credentials/systemd-journald.service": {
|
233
|
+
"available": "1.00 MiB",
|
234
|
+
"available_bytes": 1048576,
|
235
|
+
"capacity": "0%",
|
236
|
+
"device": "tmpfs",
|
237
|
+
"filesystem": "tmpfs",
|
238
|
+
"options": [
|
239
|
+
"ro",
|
240
|
+
"nosuid",
|
241
|
+
"nodev",
|
242
|
+
"noexec",
|
243
|
+
"relatime",
|
244
|
+
"nosymfollow",
|
245
|
+
"size=1024k",
|
246
|
+
"nr_inodes=1024",
|
247
|
+
"mode=700",
|
248
|
+
"inode64",
|
249
|
+
"noswap"
|
250
|
+
],
|
251
|
+
"size": "1.00 MiB",
|
252
|
+
"size_bytes": 1048576,
|
253
|
+
"used": "0 bytes",
|
254
|
+
"used_bytes": 0
|
255
|
+
},
|
256
|
+
"/run/lock": {
|
257
|
+
"available": "5.00 MiB",
|
258
|
+
"available_bytes": 5242880,
|
259
|
+
"capacity": "0%",
|
260
|
+
"device": "tmpfs",
|
261
|
+
"filesystem": "tmpfs",
|
262
|
+
"options": [
|
263
|
+
"rw",
|
264
|
+
"nosuid",
|
265
|
+
"nodev",
|
266
|
+
"noexec",
|
267
|
+
"relatime",
|
268
|
+
"size=5120k",
|
269
|
+
"inode64"
|
270
|
+
],
|
271
|
+
"size": "5.00 MiB",
|
272
|
+
"size_bytes": 5242880,
|
273
|
+
"used": "0 bytes",
|
274
|
+
"used_bytes": 0
|
275
|
+
},
|
276
|
+
"/run/user/1000": {
|
277
|
+
"available": "46.39 MiB",
|
278
|
+
"available_bytes": 48640000,
|
279
|
+
"capacity": "0.01%",
|
280
|
+
"device": "tmpfs",
|
281
|
+
"filesystem": "tmpfs",
|
282
|
+
"options": [
|
283
|
+
"rw",
|
284
|
+
"nosuid",
|
285
|
+
"nodev",
|
286
|
+
"relatime",
|
287
|
+
"size=47504k",
|
288
|
+
"nr_inodes=11876",
|
289
|
+
"mode=700",
|
290
|
+
"uid=1000",
|
291
|
+
"gid=1000",
|
292
|
+
"inode64"
|
293
|
+
],
|
294
|
+
"size": "46.39 MiB",
|
295
|
+
"size_bytes": 48644096,
|
296
|
+
"used": "4.00 KiB",
|
297
|
+
"used_bytes": 4096
|
298
|
+
},
|
299
|
+
"/tmp": {
|
300
|
+
"available": "231.97 MiB",
|
301
|
+
"available_bytes": 243236864,
|
302
|
+
"capacity": "0.00%",
|
303
|
+
"device": "tmpfs",
|
304
|
+
"filesystem": "tmpfs",
|
305
|
+
"options": [
|
306
|
+
"rw",
|
307
|
+
"nosuid",
|
308
|
+
"nodev",
|
309
|
+
"size=237540k",
|
310
|
+
"nr_inodes=1048576",
|
311
|
+
"inode64"
|
312
|
+
],
|
313
|
+
"size": "231.97 MiB",
|
314
|
+
"size_bytes": 243240960,
|
315
|
+
"used": "4.00 KiB",
|
316
|
+
"used_bytes": 4096
|
317
|
+
},
|
318
|
+
"/vagrant": {
|
319
|
+
"available": "318.14 GiB",
|
320
|
+
"available_bytes": 341595869184,
|
321
|
+
"capacity": "65.02%",
|
322
|
+
"device": "vagrant",
|
323
|
+
"filesystem": "vboxsf",
|
324
|
+
"options": [
|
325
|
+
"rw",
|
326
|
+
"relatime"
|
327
|
+
],
|
328
|
+
"size": "909.41 GiB",
|
329
|
+
"size_bytes": 976476184576,
|
330
|
+
"used": "591.28 GiB",
|
331
|
+
"used_bytes": 634880315392
|
332
|
+
}
|
333
|
+
},
|
334
|
+
"networking": {
|
335
|
+
"dhcp": "10.0.2.2",
|
336
|
+
"domain": "example.com",
|
337
|
+
"fqdn": "foo.example.com",
|
338
|
+
"hostname": "foo",
|
339
|
+
"interfaces": {
|
340
|
+
"eth0": {
|
341
|
+
"bindings": [
|
342
|
+
{
|
343
|
+
"address": "10.0.2.15",
|
344
|
+
"netmask": "255.255.255.0",
|
345
|
+
"network": "10.0.2.0"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"bindings6": [
|
349
|
+
{
|
350
|
+
"address": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
351
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
352
|
+
"network": "fd17:625c:f037:2::",
|
353
|
+
"scope6": "global",
|
354
|
+
"flags": []
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"address": "fe80::a00:27ff:fe8d:c04d",
|
358
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
359
|
+
"network": "fe80::",
|
360
|
+
"scope6": "link",
|
361
|
+
"flags": [
|
362
|
+
"permanent"
|
363
|
+
]
|
364
|
+
}
|
365
|
+
],
|
366
|
+
"dhcp": "10.0.2.2",
|
367
|
+
"duplex": "full",
|
368
|
+
"ip": "10.0.2.15",
|
369
|
+
"ip6": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
370
|
+
"mac": "08:00:27:8d:c0:4d",
|
371
|
+
"mtu": 1500,
|
372
|
+
"netmask": "255.255.255.0",
|
373
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
374
|
+
"network": "10.0.2.0",
|
375
|
+
"network6": "fd17:625c:f037:2::",
|
376
|
+
"operational_state": "up",
|
377
|
+
"physical": true,
|
378
|
+
"scope6": "global",
|
379
|
+
"speed": 1000
|
380
|
+
},
|
381
|
+
"lo": {
|
382
|
+
"bindings": [
|
383
|
+
{
|
384
|
+
"address": "127.0.0.1",
|
385
|
+
"netmask": "255.0.0.0",
|
386
|
+
"network": "127.0.0.0"
|
387
|
+
}
|
388
|
+
],
|
389
|
+
"bindings6": [
|
390
|
+
{
|
391
|
+
"address": "::1",
|
392
|
+
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
|
393
|
+
"network": "::1",
|
394
|
+
"scope6": "host",
|
395
|
+
"flags": [
|
396
|
+
"permanent"
|
397
|
+
]
|
398
|
+
}
|
399
|
+
],
|
400
|
+
"ip": "127.0.0.1",
|
401
|
+
"ip6": "::1",
|
402
|
+
"mtu": 65536,
|
403
|
+
"netmask": "255.0.0.0",
|
404
|
+
"netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
|
405
|
+
"network": "127.0.0.0",
|
406
|
+
"network6": "::1",
|
407
|
+
"operational_state": "unknown",
|
408
|
+
"physical": false,
|
409
|
+
"scope6": "host"
|
410
|
+
}
|
411
|
+
},
|
412
|
+
"ip": "10.0.2.15",
|
413
|
+
"ip6": "fd17:625c:f037:2:a00:27ff:fe8d:c04d",
|
414
|
+
"mac": "08:00:27:8d:c0:4d",
|
415
|
+
"mtu": 1500,
|
416
|
+
"netmask": "255.255.255.0",
|
417
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
418
|
+
"network": "10.0.2.0",
|
419
|
+
"network6": "fd17:625c:f037:2::",
|
420
|
+
"primary": "eth0",
|
421
|
+
"scope6": "global"
|
422
|
+
},
|
423
|
+
"os": {
|
424
|
+
"architecture": "amd64",
|
425
|
+
"distro": {
|
426
|
+
"codename": "trixie",
|
427
|
+
"description": "Debian GNU/Linux trixie/sid",
|
428
|
+
"id": "Debian",
|
429
|
+
"release": {
|
430
|
+
"full": "trixie/sid",
|
431
|
+
"major": "trixie/sid"
|
432
|
+
}
|
433
|
+
},
|
434
|
+
"family": "Debian",
|
435
|
+
"hardware": "x86_64",
|
436
|
+
"name": "Debian",
|
437
|
+
"release": {
|
438
|
+
"full": "trixie/sid",
|
439
|
+
"major": "trixie/sid"
|
440
|
+
},
|
441
|
+
"selinux": {
|
442
|
+
"enabled": false
|
443
|
+
}
|
444
|
+
},
|
445
|
+
"partitions": {
|
446
|
+
"/dev/sda1": {
|
447
|
+
"filesystem": "ext4",
|
448
|
+
"mount": "/",
|
449
|
+
"parttype": "0x83",
|
450
|
+
"partuuid": "d9cdb1d5-01",
|
451
|
+
"size": "100.00 GiB",
|
452
|
+
"size_bytes": 107373133824,
|
453
|
+
"uuid": "3e2ea841-7273-49c7-8835-cbd02e83cbd8"
|
454
|
+
}
|
455
|
+
},
|
456
|
+
"path": "/vagrant/vendor/bundler/ruby/3.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin",
|
457
|
+
"processors": {
|
458
|
+
"cores": 2,
|
459
|
+
"count": 2,
|
460
|
+
"extensions": [
|
461
|
+
"unknown"
|
462
|
+
],
|
463
|
+
"isa": "unknown",
|
464
|
+
"models": [
|
465
|
+
"AMD Ryzen 9 7940HS w/ Radeon 780M Graphics",
|
466
|
+
"AMD Ryzen 9 7940HS w/ Radeon 780M Graphics"
|
467
|
+
],
|
468
|
+
"physicalcount": 1,
|
469
|
+
"speed": "3.99 GHz",
|
470
|
+
"threads": 1
|
471
|
+
},
|
472
|
+
"ruby": {
|
473
|
+
"platform": "x86_64-linux-gnu",
|
474
|
+
"sitedir": "/usr/local/lib/site_ruby/3.3.0",
|
475
|
+
"version": "3.3.8"
|
476
|
+
},
|
477
|
+
"ssh": {
|
478
|
+
"ecdsa": {
|
479
|
+
"fingerprints": {
|
480
|
+
"sha1": "SSHFP 3 1 107d6a7afecfddfb21f0aa09d0a68eaad4b0000b",
|
481
|
+
"sha256": "SSHFP 3 2 16ff8f4da9097e57e907a9f64d9601b121bce6c9f7f75728c2e325c0d73339a7"
|
482
|
+
},
|
483
|
+
"key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHRa3zI4J4KZtjG35zEZocHKN4Z82iaB+6Hl73LJN0JCyD4l0bGZDmhD0OFOdu0ypQdnr66POdnMndMVJTP7D2Q=",
|
484
|
+
"type": "ecdsa-sha2-nistp256"
|
485
|
+
},
|
486
|
+
"ed25519": {
|
487
|
+
"fingerprints": {
|
488
|
+
"sha1": "SSHFP 4 1 6173a0cfc1b3f294ab226714f3b9c9a6dab3d073",
|
489
|
+
"sha256": "SSHFP 4 2 8cf199cabdc7fa58cab01db0685136dac0b72b146bd4af2d368e0e995ebba932"
|
490
|
+
},
|
491
|
+
"key": "AAAAC3NzaC1lZDI1NTE5AAAAICXqDyaWFE2ITEEt3Fr5QliOpB9BsXJaF3P5fKaA0ms/",
|
492
|
+
"type": "ssh-ed25519"
|
493
|
+
},
|
494
|
+
"rsa": {
|
495
|
+
"fingerprints": {
|
496
|
+
"sha1": "SSHFP 1 1 5aed143d62750ced478729b4e1d0f0c75066f82e",
|
497
|
+
"sha256": "SSHFP 1 2 9eb636830ec874df997d384b988036c9645c5c7ea536952654706d6e319e4687"
|
498
|
+
},
|
499
|
+
"key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCsR6Qaa8Ld+SUUxJeA1HrUe0Qd6NHuacH6Bte/Bq5lKFEK+10U1n2jdfDtBVPggzRrNI3mN920a1swtY6KnBG79BLZ+CXAV8AnDKhS8iXKMkfdl+K4jkMSGiERdXjpVfpBVQ2gF4BREjZm525ylXCsNeS7CS+IXJ1qcXmqrzjcOF1mJ/9FYjY+BcyL/bo18kgezGWF7VN1i07PLdKjmJq1j7EEAOllRaw0cXxz4blJvdcZ1Nd+dElvDS96rW32/gLJpVUkurXvfB6LZf+K2UDLU6X6TNSP8Ap8rzhLYnfW2AahdYRLI8zNXEw2PUj0txFiFNUVNomubTX8AVQiwu16g2D8wFZKqZJ8PFtf6b493CnCRNK8w+NAPGfsdPXJ0IOqldCDDLhPcwxMncNh7Yz7IyKoP5vGQS6crgHD1Z+9Nd8gwmyOjgi0ERVlq1vXgoYWL5J/TntHcYdwJdKU8yUyzjp54+0F/DF4n/AL8m3Y3MhdGC1frAFmJgApsAfOsMM=",
|
500
|
+
"type": "ssh-rsa"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
"system_uptime": {
|
504
|
+
"days": 0,
|
505
|
+
"hours": 0,
|
506
|
+
"seconds": 802,
|
507
|
+
"uptime": "0:13 hours"
|
508
|
+
},
|
509
|
+
"timezone": "UTC",
|
510
|
+
"virtual": "virtualbox"
|
511
|
+
}
|
data/lib/facterdb/version.rb
CHANGED
data/lib/facterdb.rb
CHANGED
@@ -49,7 +49,7 @@ module FacterDB
|
|
49
49
|
def self.default_fact_files
|
50
50
|
return [] unless use_defaultdb?
|
51
51
|
|
52
|
-
proj_root = File.join(File.dirname(
|
52
|
+
proj_root = File.join(File.dirname(__FILE__, 2))
|
53
53
|
facts_dir = File.expand_path(File.join(proj_root, 'facts'))
|
54
54
|
Dir.glob(File.join(facts_dir, '**', '*.facts'))
|
55
55
|
end
|
data/spec/facter_db_spec.rb
CHANGED
@@ -240,7 +240,7 @@ describe FacterDB do
|
|
240
240
|
let(:symbolize_keys) { nil }
|
241
241
|
|
242
242
|
context 'without parameters' do
|
243
|
-
|
243
|
+
it_behaves_like 'returns a result'
|
244
244
|
end
|
245
245
|
|
246
246
|
context 'with stringified output' do
|
@@ -266,19 +266,19 @@ describe FacterDB do
|
|
266
266
|
context 'with an Array filter' do
|
267
267
|
let(:filter) { [kernel: 'Linux'] }
|
268
268
|
|
269
|
-
|
269
|
+
it_behaves_like 'returns a result'
|
270
270
|
end
|
271
271
|
|
272
272
|
context 'with a Hash filter' do
|
273
273
|
let(:filter) { { kernel: 'Linux' } }
|
274
274
|
|
275
|
-
|
275
|
+
it_behaves_like 'returns a result'
|
276
276
|
end
|
277
277
|
|
278
278
|
context 'with a String filter' do
|
279
279
|
let(:filter) { 'kernel=Linux' }
|
280
280
|
|
281
|
-
|
281
|
+
it_behaves_like 'returns a result'
|
282
282
|
end
|
283
283
|
|
284
284
|
context 'with a filter of an unsupported type' do
|
data/spec/facts_spec.rb
CHANGED
@@ -15,10 +15,9 @@ end
|
|
15
15
|
RSpec::Matchers.define :be_valid_json do
|
16
16
|
match do |actual|
|
17
17
|
content = File.binread(actual)
|
18
|
-
valid = false
|
19
18
|
begin
|
20
|
-
|
21
|
-
|
19
|
+
JSON.parse(content)
|
20
|
+
true
|
22
21
|
rescue JSON::ParserError => e
|
23
22
|
raise "Invalid JSON file #{actual}.\n#{e}"
|
24
23
|
end
|
data/spec/spec_helper.rb
CHANGED
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
|
+
version: 4.0.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: 4.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: 4.2.0
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: jgrep
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,6 +198,7 @@ files:
|
|
198
198
|
- facts/4.11/centos-9-x86_64.facts
|
199
199
|
- facts/4.11/debian-11-x86_64.facts
|
200
200
|
- facts/4.11/debian-12-x86_64.facts
|
201
|
+
- facts/4.11/debian-13-x86_64.facts
|
201
202
|
- facts/4.11/fedora-40-x86_64.facts
|
202
203
|
- facts/4.11/fedora-41-x86_64.facts
|
203
204
|
- facts/4.11/oraclelinux-8-x86_64.facts
|
@@ -502,6 +503,7 @@ files:
|
|
502
503
|
- facts/4.9/windows-10-x86_64.facts
|
503
504
|
- facts/4.9/windows-11-x86_64.facts
|
504
505
|
- facts/4.9/windows-2022-x86_64.facts
|
506
|
+
- facts/5.1/debian-13-x86_64.facts
|
505
507
|
- facts/Gemfile
|
506
508
|
- facts/README.md
|
507
509
|
- facts/Vagrantfile
|
@@ -543,7 +545,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
543
545
|
requirements:
|
544
546
|
- - ">="
|
545
547
|
- !ruby/object:Gem::Version
|
546
|
-
version: 2.
|
548
|
+
version: 3.2.0
|
547
549
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
548
550
|
requirements:
|
549
551
|
- - ">="
|