facterdb 1.12.2 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33eee5b276f5c5da03c9cd9310f0b28094777435a310080d330579ed55c2de36
4
- data.tar.gz: 72a67e6a5aa7685ec9c45c030d12908cc7253d148d2763d166209edb4cab7294
3
+ metadata.gz: 1365427a2c7878f09ad4dac0df2f3917695dddb4886df7d554ff860ac06810ca
4
+ data.tar.gz: 7b8c436ac66acd850d53d10ae796228273cadc348a04f3f5a9a10094e5c728d8
5
5
  SHA512:
6
- metadata.gz: 775333260f31166f20183594971e138d80758e75ec74a454777966b8d00d26991de02e06ee1d2ad6559d416097e0f29bcdf00b843b32bcca1813447a47625ffd
7
- data.tar.gz: b0a8d3b0a1fd1f41242114ebfe5f204c13bf1853a0573a0001a140284b32b0473536712787e53773288546b36dea441a79a0cb81e21309f8381bff6fb4265f8b
6
+ metadata.gz: 28dbcdf4a7ac74d97ae810bbbfec7e808a0adf3ae29329097e861d73d293da71af3cde0e07c4c3ccfb05a45066a1d21fdb16d9fda0f5fe6a337099cd31c83a30
7
+ data.tar.gz: 364c279ac576b366a8882cd151881499a995eae2151f55cc77d5c11af3f5cd1f559efd240eba25b8c1069a538121ccb384b075cba83fa5385565eb737d060ac4
@@ -15,6 +15,7 @@ jobs:
15
15
  - '2.6'
16
16
  - '2.7'
17
17
  - '3.0'
18
+ - '3.1'
18
19
  steps:
19
20
  - uses: actions/checkout@v2
20
21
  - name: Install Ruby ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.13.0](https://rubygems.org/gems/facterdb/versions/1.13.0) (2022-02-11)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/facterdb/compare/1.12.2...1.13.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add CentOS 9 facter 3.14 facts [\#231](https://github.com/voxpupuli/facterdb/pull/231) ([bastelfreak](https://github.com/bastelfreak))
10
+
11
+ **Merged pull requests:**
12
+
13
+ - document minimal Ruby 2.5 version in gemspec [\#233](https://github.com/voxpupuli/facterdb/pull/233) ([bastelfreak](https://github.com/bastelfreak))
14
+ - Add Ruby 3.1 to CI matrix [\#232](https://github.com/voxpupuli/facterdb/pull/232) ([bastelfreak](https://github.com/bastelfreak))
15
+ - Ensure all facts have osfamily/operatingsystem facts [\#230](https://github.com/voxpupuli/facterdb/pull/230) ([bastelfreak](https://github.com/bastelfreak))
16
+ - add spec tests for legacy osfamily and operatingsystem facts [\#228](https://github.com/voxpupuli/facterdb/pull/228) ([jhoblitt](https://github.com/jhoblitt))
17
+ - add a default rake target [\#227](https://github.com/voxpupuli/facterdb/pull/227) ([jhoblitt](https://github.com/jhoblitt))
18
+ - Remove EOL things from fact collection and align Red Hat OSes [\#187](https://github.com/voxpupuli/facterdb/pull/187) ([ekohl](https://github.com/ekohl))
19
+
3
20
  ## [1.12.2](https://rubygems.org/gems/facterdb/versions/1.12.2) (2021-12-15)
4
21
 
5
22
  [Full Changelog](https://github.com/voxpupuli/facterdb/compare/1.12.1...1.12.2)
data/README.md CHANGED
@@ -75,7 +75,7 @@ FacterDB::get_facts('osfamily=Debian')
75
75
  | CentOS 6 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | | | |
76
76
  | CentOS 7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | | 1 |
77
77
  | CentOS 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | 1 | 1 | 1 | | | 1 |
78
- | CentOS 9 | | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | | | | | | | | 1 |
78
+ | CentOS 9 | | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | | | | | 1 | | | 1 |
79
79
  | Darwin | | | 4 | 4 | | | | | | | | | | | | | | | | | | | | | | |
80
80
  | Darwin 14 | | | 2 | 2 | 2 | 2 | 2 | 1 | | 1 | | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | |
81
81
  | Darwin 15 | | | | | 1 | 1 | 1 | 1 | | 1 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | |
data/Rakefile CHANGED
@@ -148,3 +148,5 @@ task :table do
148
148
  fd.puts (new_readme + readme[readme.rindex { |r| r.start_with?('| ') } + 1..-1]).join("\n")
149
149
  end
150
150
  end
151
+
152
+ task default: 'spec'
data/facterdb.gemspec CHANGED
@@ -16,6 +16,9 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
 
19
+ # we have that configured in our CI file
20
+ s.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
21
+
19
22
  s.add_development_dependency 'coveralls'
20
23
  s.add_development_dependency 'rake'
21
24
  s.add_development_dependency 'pry'
@@ -72,6 +72,7 @@
72
72
  "netmask_lo": "255.0.0.0",
73
73
  "mtu_lo": "65536",
74
74
  "id": "root",
75
+ "operatingsystem": "SLES",
75
76
  "os": {
76
77
  "family": "Linux",
77
78
  "release": {
@@ -14,6 +14,7 @@
14
14
  "virtual": "kvm",
15
15
  "is_virtual": true,
16
16
  "hardwaremodel": "x86_64",
17
+ "operatingsystem": "SLES",
17
18
  "os": {
18
19
  "family": "Linux",
19
20
  "release": {
@@ -74,6 +74,7 @@
74
74
  "netmask_lo": "255.0.0.0",
75
75
  "mtu_lo": 65536,
76
76
  "id": "root",
77
+ "operatingsystem": "SLES",
77
78
  "os": {
78
79
  "family": "Linux",
79
80
  "release": {
@@ -14,6 +14,8 @@
14
14
  "virtual": "kvm",
15
15
  "is_virtual": true,
16
16
  "hardwaremodel": "x86_64",
17
+ "operatingsystem": "SLES",
18
+ "osfamily": "Suse",
17
19
  "os": {
18
20
  "family": "Linux",
19
21
  "release": {
@@ -128,6 +128,8 @@
128
128
  "network": "10.0.2.0",
129
129
  "network6": "fe80::"
130
130
  },
131
+ "operatingsystem": "Ubuntu",
132
+ "osfamily": "Debian",
131
133
  "os": {
132
134
  "architecture": "i386",
133
135
  "distro": {
@@ -128,6 +128,8 @@
128
128
  "network": "10.0.2.0",
129
129
  "network6": "fe80::"
130
130
  },
131
+ "operatingsystem": "Ubuntu",
132
+ "osfamily": "Debian",
131
133
  "os": {
132
134
  "architecture": "amd64",
133
135
  "distro": {
@@ -467,6 +467,8 @@
467
467
  "network6": "fe80::",
468
468
  "primary": "eth0"
469
469
  },
470
+ "operatingsystem": "Ubuntu",
471
+ "osfamily": "Debian",
470
472
  "os": {
471
473
  "architecture": "aarch64",
472
474
  "distro": {
@@ -0,0 +1,478 @@
1
+ {
2
+ "aio_agent_version": "6.26.0",
3
+ "architecture": "x86_64",
4
+ "augeas": {
5
+ "version": "1.12.0"
6
+ },
7
+ "augeasversion": "1.12.0",
8
+ "bios_release_date": "12/01/2006",
9
+ "bios_vendor": "innotek GmbH",
10
+ "bios_version": "VirtualBox",
11
+ "blockdevice_sda_model": "VBOX HARDDISK",
12
+ "blockdevice_sda_size": 10737418240,
13
+ "blockdevice_sda_vendor": "ATA",
14
+ "blockdevices": "sda",
15
+ "boardmanufacturer": "Oracle Corporation",
16
+ "boardproductname": "VirtualBox",
17
+ "boardserialnumber": "0",
18
+ "chassistype": "Other",
19
+ "disks": {
20
+ "sda": {
21
+ "model": "VBOX HARDDISK",
22
+ "size": "10.00 GiB",
23
+ "size_bytes": 10737418240,
24
+ "vendor": "ATA"
25
+ }
26
+ },
27
+ "dmi": {
28
+ "bios": {
29
+ "release_date": "12/01/2006",
30
+ "vendor": "innotek GmbH",
31
+ "version": "VirtualBox"
32
+ },
33
+ "board": {
34
+ "manufacturer": "Oracle Corporation",
35
+ "product": "VirtualBox",
36
+ "serial_number": "0"
37
+ },
38
+ "chassis": {
39
+ "type": "Other"
40
+ },
41
+ "manufacturer": "innotek GmbH",
42
+ "product": {
43
+ "name": "VirtualBox",
44
+ "serial_number": "0",
45
+ "uuid": "4946a029-8fce-1d45-8da0-cae7863d7663"
46
+ }
47
+ },
48
+ "domain": "example.com",
49
+ "facterversion": "3.14.22",
50
+ "filesystems": "ext2,ext3,ext4",
51
+ "fips_enabled": false,
52
+ "fqdn": "foo.example.com",
53
+ "gid": "root",
54
+ "hardwareisa": "x86_64",
55
+ "hardwaremodel": "x86_64",
56
+ "hostname": "foo",
57
+ "hypervisors": {
58
+ "virtualbox": {}
59
+ },
60
+ "id": "root",
61
+ "identity": {
62
+ "gid": 0,
63
+ "group": "root",
64
+ "privileged": true,
65
+ "uid": 0,
66
+ "user": "root"
67
+ },
68
+ "interfaces": "eth0,lo",
69
+ "ipaddress": "10.0.2.15",
70
+ "ipaddress6": "fe80::5054:ff:fe4b:d86a",
71
+ "ipaddress6_eth0": "fe80::5054:ff:fe4b:d86a",
72
+ "ipaddress6_lo": "::1",
73
+ "ipaddress_eth0": "10.0.2.15",
74
+ "ipaddress_lo": "127.0.0.1",
75
+ "is_virtual": true,
76
+ "kernel": "Linux",
77
+ "kernelmajversion": "5.14",
78
+ "kernelrelease": "5.14.0-55.el9.x86_64",
79
+ "kernelversion": "5.14.0",
80
+ "load_averages": {
81
+ "15m": 0.04,
82
+ "1m": 0.42,
83
+ "5m": 0.13
84
+ },
85
+ "macaddress": "52:54:00:4b:d8:6a",
86
+ "macaddress_eth0": "52:54:00:4b:d8:6a",
87
+ "manufacturer": "innotek GmbH",
88
+ "memory": {
89
+ "swap": {
90
+ "available": "1.99 GiB",
91
+ "available_bytes": 2138767360,
92
+ "capacity": "0.41%",
93
+ "total": "2.00 GiB",
94
+ "total_bytes": 2147479552,
95
+ "used": "8.31 MiB",
96
+ "used_bytes": 8712192
97
+ },
98
+ "system": {
99
+ "available": "274.87 MiB",
100
+ "available_bytes": 288219136,
101
+ "capacity": "39.90%",
102
+ "total": "457.36 MiB",
103
+ "total_bytes": 479571968,
104
+ "used": "182.49 MiB",
105
+ "used_bytes": 191352832
106
+ }
107
+ },
108
+ "memoryfree": "274.87 MiB",
109
+ "memoryfree_mb": 274.8671875,
110
+ "memorysize": "457.36 MiB",
111
+ "memorysize_mb": 457.35546875,
112
+ "mountpoints": {
113
+ "/": {
114
+ "available": "5.50 GiB",
115
+ "available_bytes": 5908606976,
116
+ "capacity": "40.37%",
117
+ "device": "/dev/sda1",
118
+ "filesystem": "ext4",
119
+ "options": [
120
+ "rw",
121
+ "seclabel",
122
+ "relatime"
123
+ ],
124
+ "size": "9.74 GiB",
125
+ "size_bytes": 10462973952,
126
+ "used": "3.73 GiB",
127
+ "used_bytes": 4000772096
128
+ },
129
+ "/dev": {
130
+ "available": "211.29 MiB",
131
+ "available_bytes": 221552640,
132
+ "capacity": "0%",
133
+ "device": "devtmpfs",
134
+ "filesystem": "devtmpfs",
135
+ "options": [
136
+ "rw",
137
+ "seclabel",
138
+ "nosuid",
139
+ "size=216360k",
140
+ "nr_inodes=54090",
141
+ "mode=755",
142
+ "inode64"
143
+ ],
144
+ "size": "211.29 MiB",
145
+ "size_bytes": 221552640,
146
+ "used": "0 bytes",
147
+ "used_bytes": 0
148
+ },
149
+ "/dev/hugepages": {
150
+ "available": "0 bytes",
151
+ "available_bytes": 0,
152
+ "capacity": "100%",
153
+ "device": "hugetlbfs",
154
+ "filesystem": "hugetlbfs",
155
+ "options": [
156
+ "rw",
157
+ "seclabel",
158
+ "relatime",
159
+ "pagesize=2M"
160
+ ],
161
+ "size": "0 bytes",
162
+ "size_bytes": 0,
163
+ "used": "0 bytes",
164
+ "used_bytes": 0
165
+ },
166
+ "/dev/mqueue": {
167
+ "available": "0 bytes",
168
+ "available_bytes": 0,
169
+ "capacity": "100%",
170
+ "device": "mqueue",
171
+ "filesystem": "mqueue",
172
+ "options": [
173
+ "rw",
174
+ "seclabel",
175
+ "nosuid",
176
+ "nodev",
177
+ "noexec",
178
+ "relatime"
179
+ ],
180
+ "size": "0 bytes",
181
+ "size_bytes": 0,
182
+ "used": "0 bytes",
183
+ "used_bytes": 0
184
+ },
185
+ "/dev/pts": {
186
+ "available": "0 bytes",
187
+ "available_bytes": 0,
188
+ "capacity": "100%",
189
+ "device": "devpts",
190
+ "filesystem": "devpts",
191
+ "options": [
192
+ "rw",
193
+ "seclabel",
194
+ "nosuid",
195
+ "noexec",
196
+ "relatime",
197
+ "gid=5",
198
+ "mode=620",
199
+ "ptmxmode=000"
200
+ ],
201
+ "size": "0 bytes",
202
+ "size_bytes": 0,
203
+ "used": "0 bytes",
204
+ "used_bytes": 0
205
+ },
206
+ "/dev/shm": {
207
+ "available": "228.68 MiB",
208
+ "available_bytes": 239783936,
209
+ "capacity": "0%",
210
+ "device": "tmpfs",
211
+ "filesystem": "tmpfs",
212
+ "options": [
213
+ "rw",
214
+ "seclabel",
215
+ "nosuid",
216
+ "nodev",
217
+ "inode64"
218
+ ],
219
+ "size": "228.68 MiB",
220
+ "size_bytes": 239783936,
221
+ "used": "0 bytes",
222
+ "used_bytes": 0
223
+ },
224
+ "/run": {
225
+ "available": "88.75 MiB",
226
+ "available_bytes": 93061120,
227
+ "capacity": "2.98%",
228
+ "device": "tmpfs",
229
+ "filesystem": "tmpfs",
230
+ "options": [
231
+ "rw",
232
+ "seclabel",
233
+ "nosuid",
234
+ "nodev",
235
+ "size=93668k",
236
+ "nr_inodes=819200",
237
+ "mode=755",
238
+ "inode64"
239
+ ],
240
+ "size": "91.47 MiB",
241
+ "size_bytes": 95916032,
242
+ "used": "2.72 MiB",
243
+ "used_bytes": 2854912
244
+ },
245
+ "/run/user/1000": {
246
+ "available": "45.73 MiB",
247
+ "available_bytes": 47955968,
248
+ "capacity": "0%",
249
+ "device": "tmpfs",
250
+ "filesystem": "tmpfs",
251
+ "options": [
252
+ "rw",
253
+ "seclabel",
254
+ "nosuid",
255
+ "nodev",
256
+ "relatime",
257
+ "size=46832k",
258
+ "nr_inodes=11708",
259
+ "mode=700",
260
+ "uid=1000",
261
+ "gid=1000",
262
+ "inode64"
263
+ ],
264
+ "size": "45.73 MiB",
265
+ "size_bytes": 47955968,
266
+ "used": "0 bytes",
267
+ "used_bytes": 0
268
+ },
269
+ "/var/lib/nfs/rpc_pipefs": {
270
+ "available": "0 bytes",
271
+ "available_bytes": 0,
272
+ "capacity": "100%",
273
+ "device": "sunrpc",
274
+ "filesystem": "rpc_pipefs",
275
+ "options": [
276
+ "rw",
277
+ "relatime"
278
+ ],
279
+ "size": "0 bytes",
280
+ "size_bytes": 0,
281
+ "used": "0 bytes",
282
+ "used_bytes": 0
283
+ }
284
+ },
285
+ "mtu_eth0": 1500,
286
+ "mtu_lo": 65536,
287
+ "netmask": "255.255.255.0",
288
+ "netmask6": "ffff:ffff:ffff:ffff::",
289
+ "netmask6_eth0": "ffff:ffff:ffff:ffff::",
290
+ "netmask6_lo": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
291
+ "netmask_eth0": "255.255.255.0",
292
+ "netmask_lo": "255.0.0.0",
293
+ "network": "10.0.2.0",
294
+ "network6": "fe80::",
295
+ "network6_eth0": "fe80::",
296
+ "network6_lo": "::1",
297
+ "network_eth0": "10.0.2.0",
298
+ "network_lo": "127.0.0.0",
299
+ "networking": {
300
+ "domain": "example.com",
301
+ "fqdn": "foo.example.com",
302
+ "hostname": "foo",
303
+ "interfaces": {
304
+ "eth0": {
305
+ "bindings": [
306
+ {
307
+ "address": "10.0.2.15",
308
+ "netmask": "255.255.255.0",
309
+ "network": "10.0.2.0"
310
+ }
311
+ ],
312
+ "bindings6": [
313
+ {
314
+ "address": "fe80::5054:ff:fe4b:d86a",
315
+ "netmask": "ffff:ffff:ffff:ffff::",
316
+ "network": "fe80::"
317
+ }
318
+ ],
319
+ "ip": "10.0.2.15",
320
+ "ip6": "fe80::5054:ff:fe4b:d86a",
321
+ "mac": "52:54:00:4b:d8:6a",
322
+ "mtu": 1500,
323
+ "netmask": "255.255.255.0",
324
+ "netmask6": "ffff:ffff:ffff:ffff::",
325
+ "network": "10.0.2.0",
326
+ "network6": "fe80::",
327
+ "scope6": "link"
328
+ },
329
+ "lo": {
330
+ "bindings": [
331
+ {
332
+ "address": "127.0.0.1",
333
+ "netmask": "255.0.0.0",
334
+ "network": "127.0.0.0"
335
+ }
336
+ ],
337
+ "bindings6": [
338
+ {
339
+ "address": "::1",
340
+ "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
341
+ "network": "::1"
342
+ }
343
+ ],
344
+ "ip": "127.0.0.1",
345
+ "ip6": "::1",
346
+ "mtu": 65536,
347
+ "netmask": "255.0.0.0",
348
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
349
+ "network": "127.0.0.0",
350
+ "network6": "::1",
351
+ "scope6": "host"
352
+ }
353
+ },
354
+ "ip": "10.0.2.15",
355
+ "ip6": "fe80::5054:ff:fe4b:d86a",
356
+ "mac": "52:54:00:4b:d8:6a",
357
+ "mtu": 1500,
358
+ "netmask": "255.255.255.0",
359
+ "netmask6": "ffff:ffff:ffff:ffff::",
360
+ "network": "10.0.2.0",
361
+ "network6": "fe80::",
362
+ "primary": "eth0",
363
+ "scope6": "link"
364
+ },
365
+ "operatingsystem": "CentOS",
366
+ "operatingsystemmajrelease": "9",
367
+ "operatingsystemrelease": "9",
368
+ "os": {
369
+ "architecture": "x86_64",
370
+ "family": "RedHat",
371
+ "hardware": "x86_64",
372
+ "name": "CentOS",
373
+ "release": {
374
+ "full": "9",
375
+ "major": "9"
376
+ },
377
+ "selinux": {
378
+ "config_mode": "enforcing",
379
+ "config_policy": "targeted",
380
+ "current_mode": "enforcing",
381
+ "enabled": true,
382
+ "enforced": true,
383
+ "policy_version": "33"
384
+ }
385
+ },
386
+ "osfamily": "RedHat",
387
+ "partitions": {
388
+ "/dev/sda1": {
389
+ "filesystem": "ext4",
390
+ "mount": "/",
391
+ "partuuid": "d80d87d9-01",
392
+ "size": "10.00 GiB",
393
+ "size_bytes": 10736369664,
394
+ "uuid": "d4123b95-4cf6-4e3d-9392-e3a08fd8f17e"
395
+ }
396
+ },
397
+ "path": "/root/.local/bin:/root/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin",
398
+ "physicalprocessorcount": 1,
399
+ "processor0": "AMD Ryzen 7 PRO 4750U with Radeon Graphics",
400
+ "processorcount": 1,
401
+ "processors": {
402
+ "count": 1,
403
+ "isa": "x86_64",
404
+ "models": [
405
+ "AMD Ryzen 7 PRO 4750U with Radeon Graphics"
406
+ ],
407
+ "physicalcount": 1
408
+ },
409
+ "productname": "VirtualBox",
410
+ "puppetversion": "6.26.0",
411
+ "ruby": {
412
+ "platform": "x86_64-linux",
413
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
414
+ "version": "2.5.9"
415
+ },
416
+ "rubyplatform": "x86_64-linux",
417
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
418
+ "rubyversion": "2.5.9",
419
+ "scope6": "link",
420
+ "scope6_eth0": "link",
421
+ "scope6_lo": "host",
422
+ "selinux": true,
423
+ "selinux_config_mode": "enforcing",
424
+ "selinux_config_policy": "targeted",
425
+ "selinux_current_mode": "enforcing",
426
+ "selinux_enforced": true,
427
+ "selinux_policyversion": "33",
428
+ "serialnumber": "0",
429
+ "ssh": {
430
+ "ecdsa": {
431
+ "fingerprints": {
432
+ "sha1": "SSHFP 3 1 021d1bedc1d624168fa95ec309ce065a318d7d81",
433
+ "sha256": "SSHFP 3 2 ab71e4fdd38d9d4e589e65fcf5a5b21199a3d44fb7e910994f2bb0a0c3510975"
434
+ },
435
+ "key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIM+nu7pnRxj+xoIcs9/YlJ5QzJAvr1FhwIjn3TYrT8/91X8s9rTCsoaiIlAP0B0Kopo03kGS9gKlk60GE4mQrw=",
436
+ "type": "ecdsa-sha2-nistp256"
437
+ },
438
+ "ed25519": {
439
+ "fingerprints": {
440
+ "sha1": "SSHFP 4 1 b0dba3675a9f7fd015fc918fdf7c3e74b9bce389",
441
+ "sha256": "SSHFP 4 2 48ee25a4cac607a248800a0fcdb122b3e03b70be848dfbe06e4b4a47faeefc21"
442
+ },
443
+ "key": "AAAAC3NzaC1lZDI1NTE5AAAAIJ0Vk/ZwhiaDHmMPli5PZ25mZFTYqPAGujWhaiBAaBEb",
444
+ "type": "ssh-ed25519"
445
+ },
446
+ "rsa": {
447
+ "fingerprints": {
448
+ "sha1": "SSHFP 1 1 00b2919b110ad2889e07178adb3347aa5e3cbfb1",
449
+ "sha256": "SSHFP 1 2 fbdde49486a01e48b28a9e463f01dcccf444f7cc9bc95c28015b01bc569c7116"
450
+ },
451
+ "key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC8Sc8QNCCdX+YfntK8fwR/w46TXY9zc9boySKWE7wfUyFgit6uM7AZt4BHtJBcBdB8J30amtpkvPF5nD/+XRB9vKFPd6/UzsPSusnyu6TkqgMqMgpqq0YpeJZSBtYVhF88M2aiaf1HgiJF8Yg+F1r+WkGqgiajE5yC6zV/uspQowGZ3V5/8qGIyEDVbYDBlwrzDsU9fM2u4Znhc4M4sDm8LiuFFdPJRtZr3T8Ek2Kfyw8ZtCjh2Hux7pmjl1K7KoTlYyGCkoyTbVoKTJ00+P50hHZQQIpcXWpBKxFB8e9YttXDMbdvdGQUNZx1d2ycu1RLXnndZXcW2Iz0CgL0vX44Krzy4KAlDs8JqFoRF9XQOfqqNQL+fktN56No8wacsN+NsQcJ9tSBMQz9sQBmlsJMBn3QZaWbRmhKYC0BQE+9YmTnQKtPpK6/lVaaaf/4Xo3b38HJK7jr720/4PpydTHIegkw3TLSNilho0phLTnh2/aWQxQbno/4SFyNZ67NBF0=",
452
+ "type": "ssh-rsa"
453
+ }
454
+ },
455
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIM+nu7pnRxj+xoIcs9/YlJ5QzJAvr1FhwIjn3TYrT8/91X8s9rTCsoaiIlAP0B0Kopo03kGS9gKlk60GE4mQrw=",
456
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIJ0Vk/ZwhiaDHmMPli5PZ25mZFTYqPAGujWhaiBAaBEb",
457
+ "sshfp_ecdsa": "SSHFP 3 1 021d1bedc1d624168fa95ec309ce065a318d7d81\nSSHFP 3 2 ab71e4fdd38d9d4e589e65fcf5a5b21199a3d44fb7e910994f2bb0a0c3510975",
458
+ "sshfp_ed25519": "SSHFP 4 1 b0dba3675a9f7fd015fc918fdf7c3e74b9bce389\nSSHFP 4 2 48ee25a4cac607a248800a0fcdb122b3e03b70be848dfbe06e4b4a47faeefc21",
459
+ "sshfp_rsa": "SSHFP 1 1 00b2919b110ad2889e07178adb3347aa5e3cbfb1\nSSHFP 1 2 fbdde49486a01e48b28a9e463f01dcccf444f7cc9bc95c28015b01bc569c7116",
460
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC8Sc8QNCCdX+YfntK8fwR/w46TXY9zc9boySKWE7wfUyFgit6uM7AZt4BHtJBcBdB8J30amtpkvPF5nD/+XRB9vKFPd6/UzsPSusnyu6TkqgMqMgpqq0YpeJZSBtYVhF88M2aiaf1HgiJF8Yg+F1r+WkGqgiajE5yC6zV/uspQowGZ3V5/8qGIyEDVbYDBlwrzDsU9fM2u4Znhc4M4sDm8LiuFFdPJRtZr3T8Ek2Kfyw8ZtCjh2Hux7pmjl1K7KoTlYyGCkoyTbVoKTJ00+P50hHZQQIpcXWpBKxFB8e9YttXDMbdvdGQUNZx1d2ycu1RLXnndZXcW2Iz0CgL0vX44Krzy4KAlDs8JqFoRF9XQOfqqNQL+fktN56No8wacsN+NsQcJ9tSBMQz9sQBmlsJMBn3QZaWbRmhKYC0BQE+9YmTnQKtPpK6/lVaaaf/4Xo3b38HJK7jr720/4PpydTHIegkw3TLSNilho0phLTnh2/aWQxQbno/4SFyNZ67NBF0=",
461
+ "swapfree": "1.99 GiB",
462
+ "swapfree_mb": 2039.6875,
463
+ "swapsize": "2.00 GiB",
464
+ "swapsize_mb": 2047.99609375,
465
+ "system_uptime": {
466
+ "days": 0,
467
+ "hours": 0,
468
+ "seconds": 1069,
469
+ "uptime": "0:17 hours"
470
+ },
471
+ "timezone": "UTC",
472
+ "uptime": "0:17 hours",
473
+ "uptime_days": 0,
474
+ "uptime_hours": 0,
475
+ "uptime_seconds": 1069,
476
+ "uuid": "4946a029-8fce-1d45-8da0-cae7863d7663",
477
+ "virtual": "kvm"
478
+ }
@@ -87,6 +87,8 @@
87
87
  "network": "10.32.77.0",
88
88
  "primary": "en0"
89
89
  },
90
+ "operatingsystem": "AIX",
91
+ "osfamily": "AIX",
90
92
  "os": {
91
93
  "architecture": "PowerPC_POWER7",
92
94
  "family": "AIX",
@@ -87,6 +87,8 @@
87
87
  "network": "10.32.77.0",
88
88
  "primary": "en0"
89
89
  },
90
+ "operatingsystem": "AIX",
91
+ "osfamily": "AIX",
90
92
  "os": {
91
93
  "architecture": "PowerPC_POWER7",
92
94
  "family": "AIX",
@@ -87,6 +87,8 @@
87
87
  "network": "10.32.77.0",
88
88
  "primary": "en0"
89
89
  },
90
+ "operatingsystem": "AIX",
91
+ "osfamily": "AIX",
90
92
  "os": {
91
93
  "architecture": "PowerPC_POWER7",
92
94
  "family": "AIX",
@@ -286,6 +286,8 @@
286
286
  "network6": "fec0::",
287
287
  "primary": "eth0"
288
288
  },
289
+ "operatingsystem": "RedHat",
290
+ "osfamily": "RedHat",
289
291
  "os": {
290
292
  "architecture": "x86_64",
291
293
  "family": "RedHat",
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "ipaddress": "192.168.0.1",
3
+ "operatingsystem": "CentOS",
4
+ "osfamily": "RedHat",
3
5
  "os": {
4
6
  "family": "RedHat",
5
7
  "name": "CentOS",
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "ipaddress": "192.168.0.1",
3
+ "operatingsystem": "Debian",
4
+ "osfamily": "Debian",
3
5
  "os": {
4
6
  "architecture": "amd64",
5
7
  "release": {
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "ipaddress": "192.168.0.1",
3
+ "operatingsystem": "OracleLinux",
4
+ "osfamily": "RedHat",
3
5
  "os": {
4
6
  "family": "RedHat",
5
7
  "name": "OracleLinux",
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "ipaddress": "192.168.0.1",
3
+ "operatingsystem": "RedHat",
4
+ "osfamily": "RedHat",
3
5
  "os": {
4
6
  "family": "RedHat",
5
7
  "name": "RedHat",
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "ipaddress": "192.168.0.1",
3
+ "operatingsystem": "Scientific",
4
+ "osfamily": "RedHat",
3
5
  "os": {
4
6
  "family": "RedHat",
5
7
  "name": "Scientific",
@@ -22,6 +22,8 @@
22
22
  },
23
23
  "facterversion": "4.0.52",
24
24
  "timezone": "PST",
25
+ "operatingsystem": "Solaris",
26
+ "osfamily": "Solaris",
25
27
  "os": {
26
28
  "name": "Solaris",
27
29
  "hardware": "sun4v",
data/facts/Vagrantfile CHANGED
@@ -23,13 +23,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
23
23
  host.vm.provision "shell", path: "get_facts.sh"
24
24
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
25
25
  end
26
- config.vm.define "linuxmint-18-x86_64" do |host|
27
- host.vm.box = "artem-sidorenko/mint-18.1-cinnamon"
28
- host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev libc6-dev"
29
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
30
- host.vm.provision "shell", path: "get_facts.sh"
31
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
32
- end
33
26
  config.vm.define "linuxmint-19-x86_64" do |host|
34
27
  host.vm.box = "ltsp/linuxmint-19.1-cinnamon-64bit"
35
28
  host.vm.provision "shell", inline: "export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ruby ruby-dev libc6-dev"
@@ -88,7 +81,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
88
81
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
89
82
  end
90
83
  config.vm.define "rockylinux-8-x86_64" do |host|
91
- host.vm.box = "generic/rocky8"
84
+ host.vm.box = "rockylinux/8"
92
85
  host.vm.synced_folder ".", "/vagrant"
93
86
  host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
94
87
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
@@ -133,34 +126,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
133
126
  host.vm.provision "shell", path: "get_facts.sh"
134
127
  host.vm.provision "shell", inline: "/sbin/shutdown -h now"
135
128
  end
136
- config.vm.define "opensuse-12-x86_64" do |host|
137
- host.vm.box = "alexeym/opensuse-12.3"
138
- host.vm.provision "shell", inline: "zypper install -y rubygems ruby-devel make gcc"
139
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
140
- host.vm.provision "shell", path: "get_facts.sh"
141
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
142
- end
143
- config.vm.define "opensuse-13-x86_64" do |host|
144
- host.vm.box = "chef/opensuse-13.1"
145
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
146
- host.vm.provision "shell", path: "get_facts.sh"
147
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
148
- end
149
- config.vm.define "opensuse-13.2-x86_64" do |host|
150
- host.vm.box = "opensuse/openSUSE-13.2-x86_64"
151
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
152
- host.vm.provision "shell", path: "get_facts.sh"
153
- end
154
- config.vm.define "opensuse-42.1-x86_64" do |host|
155
- host.vm.box = "opensuse/openSUSE-42.1-x86_64"
156
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
157
- host.vm.provision "shell", path: "get_facts.sh"
158
- end
159
- config.vm.define "opensuse-42.2-x86_64" do |host|
160
- host.vm.box = "opensuse/openSUSE-42.2-x86_64"
161
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
162
- host.vm.provision "shell", path: "get_facts.sh"
163
- end
164
129
  config.vm.define "opensuse-42.3-x86_64" do |host|
165
130
  host.vm.box = "opensuse/openSUSE-42.3-x86_64"
166
131
  host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
@@ -216,32 +181,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
216
181
  host.vm.provision "shell", path: "get_facts.sh"
217
182
  host.vm.provision "shell", inline: "/sbin/shutdown -i S -g0 -y 'Bye' &"
218
183
  end
219
- config.vm.define "openbsd-6.2-x86_64" do |host|
220
- host.vm.box = "bodgit/openbsd-6.2-amd64"
221
- host.vm.network :private_network, ip: '10.0.0.2'
222
- host.vm.synced_folder ".", "/vagrant", :nfs => true
223
- host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
224
- . ~/.profile
225
-
226
- pkg_info -qe 'bash->=0' || pkg_add -I bash
227
- SCRIPT
228
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
229
- host.vm.provision "shell", path: "get_facts.sh"
230
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
231
- end
232
- config.vm.define "openbsd-6.3-x86_64" do |host|
233
- host.vm.box = "bodgit/openbsd-6.3-amd64"
234
- host.vm.network :private_network, ip: '10.0.0.2'
235
- host.vm.synced_folder ".", "/vagrant", :nfs => true
236
- host.vm.provision "shell", inline: <<-SCRIPT.gsub(/^ +/, '')
237
- . ~/.profile
238
-
239
- pkg_info -qe 'bash->=0' || pkg_add -I bash
240
- SCRIPT
241
- host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
242
- host.vm.provision "shell", path: "get_facts.sh"
243
- host.vm.provision "shell", inline: "/sbin/shutdown -h now"
244
- end
245
184
  config.vm.define "openbsd-6.4-x86_64" do |host|
246
185
  host.vm.box = "generic/openbsd6"
247
186
  host.vm.box_version = "~> 1.9.18"
data/facts/get_facts.sh CHANGED
@@ -30,23 +30,7 @@ elif test -f /usr/bin/apt-get; then
30
30
  osfamily='Debian'
31
31
  elif test -f /etc/redhat-release ; then
32
32
  operatingsystemmajrelease=$(rpm -qf /etc/redhat-release --queryformat '%{version}' | cut -f1 -d'.')
33
- case $(rpm -qf /etc/redhat-release --queryformat '%{name}') in
34
- almalinux*)
35
- osfamily='AlmaLinux'
36
- ;;
37
- centos*|redhat*)
38
- osfamily='RedHat'
39
- ;;
40
- fedora*)
41
- osfamily='Fedora'
42
- ;;
43
- rocky-*)
44
- osfamily='RockyLinux'
45
- ;;
46
- *)
47
- echo 'Failed to determine osfamily from /etc/redhat-release'
48
- exit 1
49
- esac
33
+ osfamily='RedHat'
50
34
  elif test -f '/usr/bin/pacman'; then
51
35
  operatingsystemmajrelease=3
52
36
  osfamily='Archlinux'
@@ -54,118 +38,22 @@ elif test -f '/etc/gentoo-release'; then
54
38
  osfamily='Gentoo'
55
39
  elif test -f '/etc/os-release' && grep -q 'Amazon' '/etc/os-release'; then
56
40
  osfamily='RedHat'
57
- operatingsystemmajrelease=$(rpm -qf /etc/os-release --queryformat '%{version}' | cut -f1 -d'.')
58
- if [[ $operatingsystemmajrelease -eq 2 ]]; then
59
- operatingsystemmajrelease='7'
60
- else
61
- operatingsystemmajrelease='6'
62
- fi
41
+ operatingsystemmajrelease='7'
63
42
  else
64
43
  osfamily=$(uname)
65
44
  fi
66
45
 
67
46
  case "${osfamily}" in
68
- 'Fedora')
69
-
70
- yum install -y "https://yum.puppetlabs.com/puppetlabs-release-pc1-fedora-${operatingsystemmajrelease}.noarch.rpm"
71
- # Puppet 4 doesn't support Fedora 28 anymore
72
- if [[ "${?}" == 0 ]]; then
73
- for puppet_agent_version in 1.5.3-1 1.6.0-1 1.6.1-1 1.6.2-1 1.7.0-1 1.10.12-1; do
74
- dnf install -y "puppet-agent-${puppet_agent_version}.fedoraf${operatingsystemmajrelease}"
75
- if [[ "${?}" == 0 ]]; then
76
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
77
- mkdir -p $(dirname ${output_file})
78
- facter --show-legacy -p -j | tee ${output_file}
79
- fi
80
- done
81
- yum remove -y puppetlabs-release-pc1
82
- fi
83
- # Puppet 5
84
- yum install -y "https://yum.puppetlabs.com/puppet5/puppet5-release-fedora-${operatingsystemmajrelease}.noarch.rpm"
85
- if [[ "${?}" == 0 ]]; then
86
- for puppet_agent_version in 5.3.1-1 5.3.2-1 5.3.3-1 5.3.4-1 5.3.5-1 5.4.0-1 5.5.16-1; do
87
- # Package naming changed with Fedora 28
88
- [[ ${operatingsystemmajrelease} -ge 28 ]] && osprefix='fc' || osprefix='fedoraf'
89
- echo dnf install -y "puppet-agent-${puppet_agent_version}.${osprefix}${operatingsystemmajrelease}"
90
- dnf install -y "puppet-agent-${puppet_agent_version}.${osprefix}${operatingsystemmajrelease}"
91
- if [[ "${?}" == 0 ]]; then
92
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
93
- echo "Outputfile: $output_file"
94
- mkdir -p $(dirname ${output_file})
95
- facter --show-legacy -p -j | tee ${output_file}
96
- fi
97
- done
98
- yum remove -y puppet5-release
99
- fi
100
- # Puppet 6
101
- yum install -y "https://yum.puppetlabs.com/puppet6-release-fedora-${operatingsystemmajrelease}.noarch.rpm"
102
- if [[ "${?}" == 0 ]]; then
103
- for puppet_agent_version in 6.25.0-1; do
104
- dnf install -y "puppet-agent-${puppet_agent_version}.fc${operatingsystemmajrelease}"
105
- if [[ "${?}" == 0 ]]; then
106
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
107
- mkdir -p $(dirname ${output_file})
108
- facter --show-legacy -p -j | tee ${output_file}
109
- fi
110
- done
111
- yum remove -y puppet6-release
112
- fi
113
- # Puppet 7
114
- if [[ $operatingsystemmajrelease == '33' ]] && command -v facter &> /dev/null; then
115
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
116
- mkdir -p $(dirname ${output_file})
117
- facter --show-legacy -p -j | tee ${output_file}
118
- fi
119
- yum install -y "https://yum.puppetlabs.com/puppet7-release-fedora-${operatingsystemmajrelease}.noarch.rpm"
120
- if [[ "${?}" == 0 ]]; then
121
- for puppet_agent_version in 7.12.0-1; do
122
- dnf install -y "puppet-agent-${puppet_agent_version}.fc${operatingsystemmajrelease}"
123
- if [[ "${?}" == 0 ]]; then
124
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
125
- mkdir -p $(dirname ${output_file})
126
- facter --show-legacy -p -j | tee ${output_file}
127
- fi
128
- done
129
- yum remove -y puppet7-release
130
- fi
131
- ;;
132
47
  'RedHat')
133
- if [[ ${operatingsystemmajrelease} -eq 5 ]]; then
134
- # CentOS 5 can no longer wget the release file with HTTPS due to mis-matched SSL support:
135
- http_method='http'
136
- # The default CentOS repositories no longer work and prevent yum from working:
137
- rm -f /etc/yum.repos.d/CentOS*
48
+ . /etc/os-release
49
+ if [[ $ID == fedora ]]; then
50
+ distcode=fedora
138
51
  else
139
- http_method='https'
140
- fi
141
- wget "${http_method}://yum.puppetlabs.com/puppetlabs-release-pc1-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppetlabs-release-pc1.rpm
142
- if test -f /tmp/puppetlabs-release-pc1.rpm; then
143
- rpm -ivh /tmp/puppetlabs-release-pc1.rpm
144
- for puppet_agent_version in 1.2.2 1.4.2 1.5.3 1.10.4; do
145
- if yum install -y puppet-agent-${puppet_agent_version}; then
146
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
147
- mkdir -p $(dirname ${output_file})
148
- facter --show-legacy -p -j | tee ${output_file}
149
- fi
150
- done
151
- yum remove -y puppetlabs-release-pc1
152
- fi
153
- wget "http://yum.puppetlabs.com/puppet5/puppet5-release-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppet5-release.rpm
154
- if test -f /tmp/puppet5-release.rpm; then
155
- rpm -ivh /tmp/puppet5-release.rpm
156
- for puppet_agent_version in 5.0.1 5.1.0 5.3.7 5.4.0 5.5.16; do
157
- if yum install -y puppet-agent-${puppet_agent_version}; then
158
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
159
- mkdir -p $(dirname ${output_file})
160
- facter --show-legacy -p -j | tee ${output_file}
161
- fi
162
- done
163
- yum remove -y puppet5-release
52
+ distcode=el
164
53
  fi
165
- wget "http://yum.puppetlabs.com/puppet6-release-el-${operatingsystemmajrelease}.noarch.rpm" -O /tmp/puppet6-release.rpm
166
- if test -f /tmp/puppet6-release.rpm; then
167
- rpm -ivh /tmp/puppet6-release.rpm
168
- for puppet_agent_version in 6.2.0 6.4.2 6.6.0; do
54
+ yum -y install "https://yum.puppetlabs.com/puppet6-release-${distcode}-${operatingsystemmajrelease}.noarch.rpm"
55
+ if [[ "${?}" == 0 ]]; then
56
+ for puppet_agent_version in 6.25.0; do
169
57
  if yum install -y puppet-agent-${puppet_agent_version}; then
170
58
  output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
171
59
  mkdir -p $(dirname ${output_file})
@@ -187,49 +75,8 @@ case "${osfamily}" in
187
75
  yum remove -y puppet7-release
188
76
  fi
189
77
  ;;
190
- 'RockyLinux'|'AlmaLinux')
191
- dnf localinstall -y "http://yum.puppetlabs.com/puppet6-release-el-${operatingsystemmajrelease}.noarch.rpm"
192
- if dnf install -y puppet-agent; then
193
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
194
- mkdir -p $(dirname ${output_file})
195
- facter --show-legacy -p -j | tee ${output_file}
196
- fi
197
- ;;
198
-
199
78
  'Debian')
200
- if [[ "serena" =~ ${lsbdistcodename} ]]; then
201
- lsbdistcodename='xenial'
202
- fi
203
- if [[ "tessa" =~ ${lsbdistcodename} ]]; then
204
- lsbdistcodename='bionic'
205
- fi
206
79
  apt_install curl
207
- curl "https://apt.puppetlabs.com/puppetlabs-release-pc1-${lsbdistcodename}.deb" -o /tmp/puppetlabs-release-pc1.deb
208
- if test "$?" -eq 0 -a -f /tmp/puppetlabs-release-pc1.deb; then
209
- dpkg --install /tmp/puppetlabs-release-pc1.deb
210
- apt-get update
211
- for puppet_agent_version in 1.2.2 1.4 1.5 1.7 1.8 1.10; do
212
- if apt_install puppet-agent=${puppet_agent_version}*; then
213
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
214
- mkdir -p $(dirname ${output_file})
215
- facter --show-legacy -p -j | tee ${output_file}
216
- fi
217
- done
218
- apt-get -y remove --purge puppetlabs-release-pc1
219
- fi
220
- curl "https://apt.puppetlabs.com/puppet5-release-${lsbdistcodename}.deb" -o /tmp/puppet5-release.deb
221
- if test "$?" -eq 0 -a -f /tmp/puppet5-release.deb; then
222
- dpkg --install /tmp/puppet5-release.deb
223
- apt-get update
224
- for puppet_agent_version in 5.0 5.1 5.3 5.4 5.5; do
225
- if apt_install puppet-agent=${puppet_agent_version}*; then
226
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
227
- mkdir -p $(dirname ${output_file})
228
- facter --show-legacy -p -j | tee ${output_file}
229
- fi
230
- done
231
- apt-get -y remove --purge puppet5-release
232
- fi
233
80
  curl "https://apt.puppetlabs.com/puppet6-release-${lsbdistcodename}.deb" -o /tmp/puppet6-release.deb
234
81
  if test "$?" -eq 0 -a -f /tmp/puppet6-release.deb; then
235
82
  dpkg --install /tmp/puppet6-release.deb
@@ -299,27 +146,6 @@ case "${osfamily}" in
299
146
  else
300
147
  http_method='https'
301
148
  fi
302
- if rpm -Uvh ${http_method}://yum.puppet.com/puppetlabs-release-pc1-sles-${operatingsystemmajrelease}.noarch.rpm; then
303
- zypper --gpg-auto-import-keys --non-interactive refresh
304
- for puppet_agent_version in 1.6.2 1.7.2 1.8.3 1.9.3 1.10.8; do
305
- if zypper --non-interactive install puppet-agent-${puppet_agent_version}; then
306
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
307
- mkdir -p $(dirname ${output_file})
308
- facter --show-legacy -p -j | tee ${output_file}
309
- fi
310
- done
311
- zypper --non-interactive remove puppetlabs-release-pc1
312
- fi
313
- if rpm -Uvh ${http_method}://yum.puppet.com/puppet5/puppet5-release-sles-${operatingsystemmajrelease}.noarch.rpm; then
314
- for puppet_agent_version in 5.0.1 5.1.0 5.2.0 5.3.2 5.4.0 5.5.16; do
315
- if zypper --gpg-auto-import-keys --non-interactive install puppet-agent-${puppet_agent_version}; then
316
- output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter operatingsystemmajrelease)-$(facter hardwaremodel).facts"
317
- mkdir -p $(dirname ${output_file})
318
- facter --show-legacy -p -j | tee ${output_file}
319
- fi
320
- done
321
- zypper --non-interactive remove puppet5-release
322
- fi
323
149
  if rpm -Uvh ${http_method}://yum.puppet.com/puppet6-release-sles-${operatingsystemmajrelease}.noarch.rpm; then
324
150
  for puppet_agent_version in 6.2.0 6.4.2 6.6.0; do
325
151
  if zypper --gpg-auto-import-keys --non-interactive install puppet-agent-${puppet_agent_version}; then
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '1.12.2'
3
+ STRING = '1.13.0'
4
4
  end
5
5
  end
data/spec/facts_spec.rb CHANGED
@@ -110,6 +110,12 @@ describe 'Default Facts' do
110
110
  expect(content['fqdn']).to eq('foo.example.com')
111
111
  expect(content['domain']).to eq('example.com')
112
112
  end
113
+ it 'contains the legacy osfamily fact' do
114
+ expect(content['osfamily']).to_not be_nil
115
+ end
116
+ it 'contains the legacy operatingsystem fact' do
117
+ expect(content['operatingsystem']).to_not be_nil
118
+ end
113
119
  end
114
120
  end
115
121
  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: 1.12.2
4
+ version: 1.13.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: 2021-12-15 00:00:00.000000000 Z
11
+ date: 2022-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -1313,6 +1313,7 @@ files:
1313
1313
  - facts/3.14/centos-6-x86_64.facts
1314
1314
  - facts/3.14/centos-7-x86_64.facts
1315
1315
  - facts/3.14/centos-8-x86_64.facts
1316
+ - facts/3.14/centos-9-x86_64.facts
1316
1317
  - facts/3.14/darwin-16-x86_64.facts
1317
1318
  - facts/3.14/darwin-17-x86_64.facts
1318
1319
  - facts/3.14/darwin-18-x86_64.facts
@@ -1841,7 +1842,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1841
1842
  requirements:
1842
1843
  - - ">="
1843
1844
  - !ruby/object:Gem::Version
1844
- version: '0'
1845
+ version: 2.5.0
1845
1846
  required_rubygems_version: !ruby/object:Gem::Requirement
1846
1847
  requirements:
1847
1848
  - - ">="