facterdb 1.0.0 → 1.1.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/CHANGELOG.md +18 -1
- data/README.md +3 -2
- data/facts/1.6/centos-8-x86_64.facts +59 -0
- data/facts/1.7/centos-8-x86_64.facts +82 -0
- data/facts/2.0/centos-8-x86_64.facts +82 -0
- data/facts/2.1/centos-8-x86_64.facts +92 -0
- data/facts/2.2/centos-8-x86_64.facts +115 -0
- data/facts/2.3/centos-8-x86_64.facts +143 -0
- data/facts/2.4/centos-8-x86_64.facts +160 -0
- data/facts/2.5/centos-8-x86_64.facts +160 -0
- data/facts/3.10/archlinux-x86_64.facts +4 -3
- data/facts/3.11/archlinux-x86_64.facts +4 -3
- data/facts/3.11/centos-8-x86_64.facts +494 -0
- data/facts/3.11/fedora-30-x86_64.facts +530 -0
- data/facts/3.11/gentoo-x86_64.facts +463 -0
- data/facts/3.12/archlinux-x86_64.facts +3 -2
- data/facts/3.12/centos-8-x86_64.facts +400 -0
- data/facts/3.13/centos-8-x86_64.facts +406 -0
- data/facts/3.14/centos-8-x86_64.facts +406 -0
- data/facts/3.14/gentoo-x86_64.facts +463 -0
- data/facts/3.9/archlinux-x86_64.facts +4 -3
- data/facts/Vagrantfile +9 -0
- data/facts/get_facts.sh +16 -6
- data/lib/facterdb/version.rb +1 -1
- metadata +18 -3
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"gid": "root",
|
|
56
56
|
"hardwareisa": "unknown",
|
|
57
57
|
"hardwaremodel": "x86_64",
|
|
58
|
-
"hostname": "
|
|
58
|
+
"hostname": "foo",
|
|
59
59
|
"hypervisors": {
|
|
60
60
|
"virtualbox": {}
|
|
61
61
|
},
|
|
@@ -324,8 +324,8 @@
|
|
|
324
324
|
"network_lo": "127.0.0.0",
|
|
325
325
|
"networking": {
|
|
326
326
|
"dhcp": "10.0.2.2",
|
|
327
|
-
"fqdn": "
|
|
328
|
-
"hostname": "
|
|
327
|
+
"fqdn": "foo.example.com",
|
|
328
|
+
"hostname": "foo",
|
|
329
329
|
"interfaces": {
|
|
330
330
|
"eth0": {
|
|
331
331
|
"bindings": [
|
|
@@ -506,5 +506,6 @@
|
|
|
506
506
|
"uptime_hours": 0,
|
|
507
507
|
"uptime_seconds": 268,
|
|
508
508
|
"uuid": "eb6e0002-bde8-4896-b25f-780ea4ce4e2d",
|
|
509
|
+
"domain": "example.com",
|
|
509
510
|
"virtual": "virtualbox"
|
|
510
511
|
}
|
data/facts/Vagrantfile
CHANGED
|
@@ -142,6 +142,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
142
142
|
host.vm.provision "shell", path: "get_facts.sh"
|
|
143
143
|
host.vm.provision "shell", inline: "/sbin/shutdown -h now"
|
|
144
144
|
end
|
|
145
|
+
config.vm.define "centos-8-x86_64" do |host|
|
|
146
|
+
host.vm.box = "centos/8"
|
|
147
|
+
host.vm.synced_folder ".", "/vagrant"
|
|
148
|
+
host.vm.provision "shell", inline: "dnf -y install wget make gcc net-tools"
|
|
149
|
+
host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
|
|
150
|
+
host.vm.provision "shell", path: "get_facts.sh"
|
|
151
|
+
host.vm.provision "shell", inline: "/sbin/shutdown -h now"
|
|
152
|
+
end
|
|
153
|
+
|
|
145
154
|
config.vm.define "redhat-8-x86_64" do |host|
|
|
146
155
|
host.vm.box = "generic/rhel8"
|
|
147
156
|
host.vm.synced_folder ".", "/vagrant"
|
data/facts/get_facts.sh
CHANGED
|
@@ -28,12 +28,19 @@ elif test -f /usr/bin/apt-get; then
|
|
|
28
28
|
operatingsystem=$(lsb_release -si)
|
|
29
29
|
operatingsystemmajrelease=$(lsb_release -sr)
|
|
30
30
|
osfamily='Debian'
|
|
31
|
-
elif test -f /
|
|
32
|
-
operatingsystemmajrelease=$(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
elif test -f /etc/redhat-release ; then
|
|
32
|
+
operatingsystemmajrelease=$(rpm -qf /etc/redhat-release --queryformat '%{version}' | cut -f1 -d'.')
|
|
33
|
+
case $(rpm -qf /etc/redhat-release --queryformat '%{name}') in
|
|
34
|
+
centos*|redhat*)
|
|
35
|
+
osfamily='RedHat'
|
|
36
|
+
;;
|
|
37
|
+
fedora*)
|
|
38
|
+
osfamily='Fedora'
|
|
39
|
+
;;
|
|
40
|
+
*)
|
|
41
|
+
echo 'Failed to determine osfamily from /etc/redhat-release'
|
|
42
|
+
exit 1
|
|
43
|
+
esac
|
|
37
44
|
elif test -f '/usr/bin/pacman'; then
|
|
38
45
|
operatingsystemmajrelease=3
|
|
39
46
|
osfamily='Archlinux'
|
|
@@ -261,6 +268,9 @@ case "${osfamily}" in
|
|
|
261
268
|
;;
|
|
262
269
|
'Gentoo')
|
|
263
270
|
emerge -vq1 dev-lang/ruby dev-ruby/bundler app-admin/puppet
|
|
271
|
+
output_file="/vagrant/$(facter --version | cut -d. -f1,2)/$(facter operatingsystem | tr '[:upper:]' '[:lower:]')-$(facter hardwaremodel).facts"
|
|
272
|
+
mkdir -p $(dirname ${output_file})
|
|
273
|
+
facter --show-legacy -p -j | tee ${output_file}
|
|
264
274
|
esac
|
|
265
275
|
|
|
266
276
|
operatingsystem=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
|
data/lib/facterdb/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mickaël Canévet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coveralls
|
|
@@ -142,6 +142,7 @@ files:
|
|
|
142
142
|
- facts/1.6/centos-6-x86_64.facts
|
|
143
143
|
- facts/1.6/centos-7-i386.facts
|
|
144
144
|
- facts/1.6/centos-7-x86_64.facts
|
|
145
|
+
- facts/1.6/centos-8-x86_64.facts
|
|
145
146
|
- facts/1.6/debian-10-x86_64.facts
|
|
146
147
|
- facts/1.6/debian-6-i386.facts
|
|
147
148
|
- facts/1.6/debian-6-x86_64.facts
|
|
@@ -232,6 +233,7 @@ files:
|
|
|
232
233
|
- facts/1.7/centos-6-x86_64.facts
|
|
233
234
|
- facts/1.7/centos-7-i386.facts
|
|
234
235
|
- facts/1.7/centos-7-x86_64.facts
|
|
236
|
+
- facts/1.7/centos-8-x86_64.facts
|
|
235
237
|
- facts/1.7/debian-10-x86_64.facts
|
|
236
238
|
- facts/1.7/debian-6-i386.facts
|
|
237
239
|
- facts/1.7/debian-6-x86_64.facts
|
|
@@ -323,6 +325,7 @@ files:
|
|
|
323
325
|
- facts/2.0/centos-6-x86_64.facts
|
|
324
326
|
- facts/2.0/centos-7-i386.facts
|
|
325
327
|
- facts/2.0/centos-7-x86_64.facts
|
|
328
|
+
- facts/2.0/centos-8-x86_64.facts
|
|
326
329
|
- facts/2.0/darwin-14-i386.facts
|
|
327
330
|
- facts/2.0/darwin-14-x86_64.facts
|
|
328
331
|
- facts/2.0/darwin-15-x86_64.facts
|
|
@@ -430,6 +433,7 @@ files:
|
|
|
430
433
|
- facts/2.1/centos-6-x86_64.facts
|
|
431
434
|
- facts/2.1/centos-7-i386.facts
|
|
432
435
|
- facts/2.1/centos-7-x86_64.facts
|
|
436
|
+
- facts/2.1/centos-8-x86_64.facts
|
|
433
437
|
- facts/2.1/darwin-14-i386.facts
|
|
434
438
|
- facts/2.1/darwin-14-x86_64.facts
|
|
435
439
|
- facts/2.1/darwin-15-x86_64.facts
|
|
@@ -547,6 +551,7 @@ files:
|
|
|
547
551
|
- facts/2.2/centos-6-x86_64.facts
|
|
548
552
|
- facts/2.2/centos-7-i386.facts
|
|
549
553
|
- facts/2.2/centos-7-x86_64.facts
|
|
554
|
+
- facts/2.2/centos-8-x86_64.facts
|
|
550
555
|
- facts/2.2/darwin-14-i386.facts
|
|
551
556
|
- facts/2.2/darwin-14-x86_64.facts
|
|
552
557
|
- facts/2.2/darwin-15-x86_64.facts
|
|
@@ -664,6 +669,7 @@ files:
|
|
|
664
669
|
- facts/2.3/centos-6-x86_64.facts
|
|
665
670
|
- facts/2.3/centos-7-i386.facts
|
|
666
671
|
- facts/2.3/centos-7-x86_64.facts
|
|
672
|
+
- facts/2.3/centos-8-x86_64.facts
|
|
667
673
|
- facts/2.3/darwin-14-i386.facts
|
|
668
674
|
- facts/2.3/darwin-14-x86_64.facts
|
|
669
675
|
- facts/2.3/darwin-15-x86_64.facts
|
|
@@ -782,6 +788,7 @@ files:
|
|
|
782
788
|
- facts/2.4/centos-6-x86_64.facts
|
|
783
789
|
- facts/2.4/centos-7-i386.facts
|
|
784
790
|
- facts/2.4/centos-7-x86_64.facts
|
|
791
|
+
- facts/2.4/centos-8-x86_64.facts
|
|
785
792
|
- facts/2.4/darwin-14-i386.facts
|
|
786
793
|
- facts/2.4/darwin-14-x86_64.facts
|
|
787
794
|
- facts/2.4/darwin-15-x86_64.facts
|
|
@@ -899,6 +906,7 @@ files:
|
|
|
899
906
|
- facts/2.5/centos-6-i386.facts
|
|
900
907
|
- facts/2.5/centos-6-x86_64.facts
|
|
901
908
|
- facts/2.5/centos-7-x86_64.facts
|
|
909
|
+
- facts/2.5/centos-8-x86_64.facts
|
|
902
910
|
- facts/2.5/darwin-14-x86_64.facts
|
|
903
911
|
- facts/2.5/darwin-15-x86_64.facts
|
|
904
912
|
- facts/2.5/darwin-16-x86_64.facts
|
|
@@ -1131,6 +1139,7 @@ files:
|
|
|
1131
1139
|
- facts/3.11/centos-6-x86_64.facts
|
|
1132
1140
|
- facts/3.11/centos-7-i386.facts
|
|
1133
1141
|
- facts/3.11/centos-7-x86_64.facts
|
|
1142
|
+
- facts/3.11/centos-8-x86_64.facts
|
|
1134
1143
|
- facts/3.11/darwin-16-x86_64.facts
|
|
1135
1144
|
- facts/3.11/darwin-17-x86_64.facts
|
|
1136
1145
|
- facts/3.11/darwin-18-x86_64.facts
|
|
@@ -1141,8 +1150,10 @@ files:
|
|
|
1141
1150
|
- facts/3.11/fedora-27-x86_64.facts
|
|
1142
1151
|
- facts/3.11/fedora-28-x86_64.facts
|
|
1143
1152
|
- facts/3.11/fedora-29-x86_64.facts
|
|
1153
|
+
- facts/3.11/fedora-30-x86_64.facts
|
|
1144
1154
|
- facts/3.11/freebsd-11-amd64.facts
|
|
1145
1155
|
- facts/3.11/freebsd-12-amd64.facts
|
|
1156
|
+
- facts/3.11/gentoo-x86_64.facts
|
|
1146
1157
|
- facts/3.11/linuxmint-18-x86_64.facts
|
|
1147
1158
|
- facts/3.11/linuxmint-19-x86_64.facts
|
|
1148
1159
|
- facts/3.11/opensuse-15-x86_64.facts
|
|
@@ -1182,6 +1193,7 @@ files:
|
|
|
1182
1193
|
- facts/3.12/archlinux-x86_64.facts
|
|
1183
1194
|
- facts/3.12/centos-6-x86_64.facts
|
|
1184
1195
|
- facts/3.12/centos-7-x86_64.facts
|
|
1196
|
+
- facts/3.12/centos-8-x86_64.facts
|
|
1185
1197
|
- facts/3.12/darwin-16-x86_64.facts
|
|
1186
1198
|
- facts/3.12/darwin-17-x86_64.facts
|
|
1187
1199
|
- facts/3.12/debian-8-x86_64.facts
|
|
@@ -1216,6 +1228,7 @@ files:
|
|
|
1216
1228
|
- facts/3.13/archlinux-x86_64.facts
|
|
1217
1229
|
- facts/3.13/centos-6-x86_64.facts
|
|
1218
1230
|
- facts/3.13/centos-7-x86_64.facts
|
|
1231
|
+
- facts/3.13/centos-8-x86_64.facts
|
|
1219
1232
|
- facts/3.13/darwin-16-x86_64.facts
|
|
1220
1233
|
- facts/3.13/darwin-17-x86_64.facts
|
|
1221
1234
|
- facts/3.13/darwin-18-x86_64.facts
|
|
@@ -1251,6 +1264,7 @@ files:
|
|
|
1251
1264
|
- facts/3.14/archlinux-x86_64.facts
|
|
1252
1265
|
- facts/3.14/centos-6-x86_64.facts
|
|
1253
1266
|
- facts/3.14/centos-7-x86_64.facts
|
|
1267
|
+
- facts/3.14/centos-8-x86_64.facts
|
|
1254
1268
|
- facts/3.14/darwin-16-x86_64.facts
|
|
1255
1269
|
- facts/3.14/darwin-17-x86_64.facts
|
|
1256
1270
|
- facts/3.14/darwin-18-x86_64.facts
|
|
@@ -1261,6 +1275,7 @@ files:
|
|
|
1261
1275
|
- facts/3.14/fedora-30-x86_64.facts
|
|
1262
1276
|
- facts/3.14/freebsd-11-amd64.facts
|
|
1263
1277
|
- facts/3.14/freebsd-12-amd64.facts
|
|
1278
|
+
- facts/3.14/gentoo-x86_64.facts
|
|
1264
1279
|
- facts/3.14/linuxmint-18-x86_64.facts
|
|
1265
1280
|
- facts/3.14/linuxmint-19-x86_64.facts
|
|
1266
1281
|
- facts/3.14/oraclelinux-6-x86_64.facts
|
|
@@ -1698,7 +1713,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1698
1713
|
version: '0'
|
|
1699
1714
|
requirements: []
|
|
1700
1715
|
rubyforge_project:
|
|
1701
|
-
rubygems_version: 2.7.
|
|
1716
|
+
rubygems_version: 2.7.7
|
|
1702
1717
|
signing_key:
|
|
1703
1718
|
specification_version: 4
|
|
1704
1719
|
summary: A Database of OS facts provided by Facter
|