facterdb 1.0.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +19 -11
- data/CHANGELOG.md +76 -6
- data/README.md +13 -7
- data/Rakefile +16 -4
- data/facterdb.gemspec +1 -2
- data/facts/1.6/amazon-2-x86_64.facts +53 -0
- data/facts/1.6/amazon-2016-x86_64.facts +62 -0
- data/facts/1.6/centos-8-x86_64.facts +59 -0
- data/facts/1.7/amazon-2-x86_64.facts +76 -0
- data/facts/1.7/amazon-2016-x86_64.facts +78 -0
- data/facts/1.7/centos-8-x86_64.facts +82 -0
- data/facts/2.0/amazon-2-x86_64.facts +77 -0
- data/facts/2.0/amazon-2016-x86_64.facts +79 -0
- data/facts/2.0/centos-8-x86_64.facts +82 -0
- data/facts/2.1/amazon-2-x86_64.facts +90 -0
- data/facts/2.1/amazon-2016-x86_64.facts +90 -0
- data/facts/2.1/centos-8-x86_64.facts +92 -0
- data/facts/2.2/amazon-2-x86_64.facts +106 -0
- data/facts/2.2/amazon-2016-x86_64.facts +113 -0
- data/facts/2.2/centos-8-x86_64.facts +115 -0
- data/facts/2.3/amazon-2-x86_64.facts +107 -0
- data/facts/2.3/amazon-2016-x86_64.facts +114 -0
- data/facts/2.3/centos-8-x86_64.facts +143 -0
- data/facts/2.4/amazon-2-x86_64.facts +110 -0
- data/facts/2.4/amazon-2016-x86_64.facts +117 -0
- data/facts/2.4/centos-8-x86_64.facts +160 -0
- data/facts/2.4/raspbian-9-armv6l.facts +116 -0
- data/facts/2.4/raspbian-9-armv7l.facts +116 -0
- data/facts/2.5/amazon-2-x86_64.facts +116 -0
- data/facts/2.5/amazon-2016-x86_64.facts +117 -0
- data/facts/2.5/centos-8-x86_64.facts +160 -0
- data/facts/3.0/amazon-4-x86_64.facts +123 -173
- data/facts/3.1/amazon-4-x86_64.facts +127 -177
- data/facts/3.10/amazon-2-x86_64.facts +382 -0
- data/facts/3.10/amazon-2016-x86_64.facts +324 -0
- data/facts/3.10/archlinux-x86_64.facts +4 -3
- data/facts/3.11/amazon-2-x86_64.facts +488 -0
- data/facts/3.11/amazon-2016-x86_64.facts +379 -0
- 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.11/raspbian-10-armv6l.facts +392 -0
- data/facts/3.11/raspbian-10-armv7l.facts +392 -0
- data/facts/3.11/solaris-11-i86pc.facts +647 -0
- data/facts/3.11/solaris-11-sun4v.facts +618 -0
- data/facts/3.12/amazon-2-x86_64.facts +385 -0
- data/facts/3.12/amazon-2016-x86_64.facts +327 -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/amazon-2-x86_64.facts +385 -0
- data/facts/3.13/amazon-2016-x86_64.facts +327 -0
- data/facts/3.13/centos-8-x86_64.facts +406 -0
- data/facts/3.13/debian-10-x86_64.facts +534 -0
- data/facts/3.14/amazon-2-x86_64.facts +385 -0
- data/facts/3.14/amazon-2016-x86_64.facts +327 -0
- data/facts/3.14/archlinux-x86_64.facts +4 -3
- data/facts/3.14/centos-8-x86_64.facts +406 -0
- data/facts/3.14/debian-10-x86_64.facts +534 -0
- data/facts/3.14/gentoo-x86_64.facts +463 -0
- data/facts/3.14/solaris-11-i86pc.facts +647 -0
- data/facts/3.14/solaris-11-sun4v.facts +618 -0
- data/facts/3.14/ubuntu-20.04-x86_64.facts +680 -0
- data/facts/3.3/amazon-4-x86_64.facts +127 -177
- data/facts/3.6/amazon-2-x86_64.facts +375 -0
- data/facts/3.6/amazon-2016-x86_64.facts +317 -0
- data/facts/3.7/amazon-2-x86_64.facts +375 -0
- data/facts/3.7/amazon-2016-x86_64.facts +317 -0
- data/facts/3.8/amazon-2-x86_64.facts +375 -0
- data/facts/3.8/amazon-2016-x86_64.facts +317 -0
- data/facts/3.9/amazon-2-x86_64.facts +381 -0
- data/facts/3.9/amazon-2016-x86_64.facts +323 -0
- data/facts/3.9/archlinux-x86_64.facts +4 -3
- data/facts/Vagrantfile +23 -0
- data/facts/get_facts.sh +24 -6
- data/lib/facterdb.rb +31 -10
- data/lib/facterdb/version.rb +1 -1
- data/spec/facterdb_spec.rb +36 -0
- metadata +67 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c5507c6727a268578ec7d76730523df6fea54b3eb52c0bb5d3d4fd5dfd5eee
|
4
|
+
data.tar.gz: 99ee4c368b24f08a646a9d936507b07fcd1c71c38c202b704676055b4018b6d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b13f056772f354c139d0674121b3e7d249931b24ee67f7c71336e988276aa537a0e2e09859fecee7ccfe4d5a47c0b6ac7914cef20635a6afbbf4f53b4af8979f
|
7
|
+
data.tar.gz: 6c9b28b139fef0ecdc7e5003994882fb1996a32cfd641249960c60c4c65b909ee03e9e5083ed1286f1fb96b3666a96c7e773c18767bc70954a36df7efa748caa
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,19 +3,27 @@ sudo: false
|
|
3
3
|
cache: bundler
|
4
4
|
script:
|
5
5
|
- bundle exec rake spec
|
6
|
-
rvm:
|
7
|
-
- 2.3
|
8
|
-
env:
|
9
|
-
- FACTER_GEM_VERSION="~> 1.6.0"
|
10
|
-
- FACTER_GEM_VERSION="~> 1.7.0"
|
11
|
-
- FACTER_GEM_VERSION="~> 2.0.0"
|
12
|
-
- FACTER_GEM_VERSION="~> 2.1.0"
|
13
|
-
- FACTER_GEM_VERSION="~> 2.2.0"
|
14
|
-
- FACTER_GEM_VERSION="~> 2.3.0"
|
15
|
-
- FACTER_GEM_VERSION="~> 2.4.0"
|
16
|
-
- FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes
|
17
6
|
matrix:
|
18
7
|
fast_finish: true
|
8
|
+
include:
|
9
|
+
- rvm: 2.3
|
10
|
+
env: FACTER_GEM_VERSION="~> 1.6.0"
|
11
|
+
- rvm: 2.3
|
12
|
+
env: FACTER_GEM_VERSION="~> 1.7.0"
|
13
|
+
- rvm: 2.3
|
14
|
+
env: FACTER_GEM_VERSION="~> 2.0.0"
|
15
|
+
- rvm: 2.3
|
16
|
+
env: FACTER_GEM_VERSION="~> 2.1.0"
|
17
|
+
- rvm: 2.3
|
18
|
+
env: FACTER_GEM_VERSION="~> 2.2.0"
|
19
|
+
- rvm: 2.3
|
20
|
+
env: FACTER_GEM_VERSION="~> 2.3.0"
|
21
|
+
- rvm: 2.3
|
22
|
+
env: FACTER_GEM_VERSION="~> 2.4.0"
|
23
|
+
- rvm: 2.5
|
24
|
+
env: FACTER_GEM_VERSION="~> 2.0" COVERAGE=yes
|
25
|
+
- rvm: 2.7
|
26
|
+
env: FACTER_GEM_VERSION="~> 2.0"
|
19
27
|
notifications:
|
20
28
|
email: false
|
21
29
|
deploy:
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,73 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [1.
|
3
|
+
## [1.5.0](https://rubygems.org/gems/facterdb/versions/1.5.0) (2020-11-19)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/camptocamp/facterdb/compare/1.4.0...1.5.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- add filter validation [\#19](https://github.com/camptocamp/facterdb/issues/19)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Fixes a bug with generate\_filter\_str [\#160](https://github.com/camptocamp/facterdb/pull/160) ([logicminds](https://github.com/logicminds))
|
14
|
+
- Fixes \#19 - add filter validation [\#159](https://github.com/camptocamp/facterdb/pull/159) ([logicminds](https://github.com/logicminds))
|
15
|
+
- Remove pin on facter \< 4 [\#156](https://github.com/camptocamp/facterdb/pull/156) ([sanfrancrisko](https://github.com/sanfrancrisko))
|
16
|
+
- Add ruby 2.5 and 2.7 testing [\#155](https://github.com/camptocamp/facterdb/pull/155) ([DavidS](https://github.com/DavidS))
|
17
|
+
|
18
|
+
## [1.4.0](https://rubygems.org/gems/facterdb/versions/1.4.0) (2020-05-09)
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/camptocamp/facterdb/compare/1.3.0...1.4.0)
|
21
|
+
|
22
|
+
**Merged pull requests:**
|
23
|
+
|
24
|
+
- Add Ubuntu 20.04 factset [\#154](https://github.com/camptocamp/facterdb/pull/154) ([mmoll](https://github.com/mmoll))
|
25
|
+
|
26
|
+
## [1.3.0](https://rubygems.org/gems/facterdb/versions/1.3.0) (2020-04-15)
|
27
|
+
|
28
|
+
[Full Changelog](https://github.com/camptocamp/facterdb/compare/1.2.0...1.3.0)
|
29
|
+
|
30
|
+
**Closed issues:**
|
31
|
+
|
32
|
+
- Raspbian support [\#135](https://github.com/camptocamp/facterdb/issues/135)
|
33
|
+
|
34
|
+
**Merged pull requests:**
|
35
|
+
|
36
|
+
- Add Debian 10 facter 3.13/3.14 sets [\#152](https://github.com/camptocamp/facterdb/pull/152) ([bastelfreak](https://github.com/bastelfreak))
|
37
|
+
- Pin to facter \< 4 to avoid automatic upgrade [\#151](https://github.com/camptocamp/facterdb/pull/151) ([raphink](https://github.com/raphink))
|
38
|
+
- Adding facts from Solaris 11 x86 & SPARC [\#149](https://github.com/camptocamp/facterdb/pull/149) ([genebean](https://github.com/genebean))
|
39
|
+
- AmazonLinux facts added [\#147](https://github.com/camptocamp/facterdb/pull/147) ([bFekete](https://github.com/bFekete))
|
40
|
+
- Add facts for Raspbian 9 and 10; alter Rakefile to support Raspbian [\#136](https://github.com/camptocamp/facterdb/pull/136) ([threepistons](https://github.com/threepistons))
|
41
|
+
|
42
|
+
## [1.2.0](https://rubygems.org/gems/facterdb/versions/1.2.0) (2020-01-08)
|
43
|
+
|
44
|
+
[Full Changelog](https://github.com/camptocamp/facterdb/compare/1.1.0...1.2.0)
|
45
|
+
|
46
|
+
**Merged pull requests:**
|
47
|
+
|
48
|
+
- \[Arch Linux\] Set correct hostname, domain, fqdn [\#146](https://github.com/camptocamp/facterdb/pull/146) ([dhoppe](https://github.com/dhoppe))
|
49
|
+
- drop json as runtime dependency [\#145](https://github.com/camptocamp/facterdb/pull/145) ([bastelfreak](https://github.com/bastelfreak))
|
50
|
+
- add .vendor to .gitignore [\#144](https://github.com/camptocamp/facterdb/pull/144) ([bastelfreak](https://github.com/bastelfreak))
|
51
|
+
|
52
|
+
## [1.1.0](https://rubygems.org/gems/facterdb/versions/1.1.0) (2020-01-07)
|
53
|
+
|
54
|
+
[Full Changelog](https://github.com/camptocamp/facterdb/compare/1.0.0...1.1.0)
|
55
|
+
|
56
|
+
**Closed issues:**
|
57
|
+
|
58
|
+
- Please provider Gentoo facts for 3.14 [\#139](https://github.com/camptocamp/facterdb/issues/139)
|
59
|
+
- Archlinux legacy facts missing in 3.x fact sets. [\#132](https://github.com/camptocamp/facterdb/issues/132)
|
60
|
+
|
61
|
+
**Merged pull requests:**
|
62
|
+
|
63
|
+
- Adding facts from Solaris 11 x86 & SPARC [\#149](https://github.com/camptocamp/facterdb/pull/149) ([genebean](https://github.com/genebean))
|
64
|
+
- Add Gentoo 3.11 factset [\#143](https://github.com/camptocamp/facterdb/pull/143) ([bastelfreak](https://github.com/bastelfreak))
|
65
|
+
- archlinux: set correct FQDN/hostname [\#142](https://github.com/camptocamp/facterdb/pull/142) ([bastelfreak](https://github.com/bastelfreak))
|
66
|
+
- Add Fedora 30 facts for Facter 3.11 [\#141](https://github.com/camptocamp/facterdb/pull/141) ([baurmatt](https://github.com/baurmatt))
|
67
|
+
- Add Gentoo facts for Facter 3.14 [\#140](https://github.com/camptocamp/facterdb/pull/140) ([baurmatt](https://github.com/baurmatt))
|
68
|
+
- Add CentOS 8 facts [\#137](https://github.com/camptocamp/facterdb/pull/137) ([traylenator](https://github.com/traylenator))
|
69
|
+
|
70
|
+
## [1.0.0](https://rubygems.org/gems/facterdb/versions/1.0.0) (2019-10-29)
|
4
71
|
|
5
72
|
[Full Changelog](https://github.com/camptocamp/facterdb/compare/0.8.2...1.0.0)
|
6
73
|
|
@@ -107,14 +174,21 @@
|
|
107
174
|
- facts/2.5/fedora-28-x86\_64.facts broken [\#91](https://github.com/camptocamp/facterdb/issues/91)
|
108
175
|
- Add facter 2.5 Gentoo facts [\#90](https://github.com/camptocamp/facterdb/issues/90)
|
109
176
|
|
177
|
+
**Merged pull requests:**
|
178
|
+
|
179
|
+
- \(maint\) Add `rake table` task + update README.md + better Windows detection [\#76](https://github.com/camptocamp/facterdb/pull/76) ([glennsarti](https://github.com/glennsarti))
|
180
|
+
|
110
181
|
## [0.5.2](https://rubygems.org/gems/facterdb/versions/0.5.2) (2018-04-30)
|
111
182
|
|
112
183
|
[Full Changelog](https://github.com/camptocamp/facterdb/compare/0.5.1...0.5.2)
|
113
184
|
|
185
|
+
**Implemented enhancements:**
|
186
|
+
|
187
|
+
- Release prep for 0.4.0 [\#66](https://github.com/camptocamp/facterdb/pull/66) ([DavidS](https://github.com/DavidS))
|
188
|
+
|
114
189
|
**Merged pull requests:**
|
115
190
|
|
116
191
|
- add Ubuntu 18.04 facts [\#82](https://github.com/camptocamp/facterdb/pull/82) ([bastelfreak](https://github.com/bastelfreak))
|
117
|
-
- \(maint\) Add `rake table` task + update README.md + better Windows detection [\#76](https://github.com/camptocamp/facterdb/pull/76) ([glennsarti](https://github.com/glennsarti))
|
118
192
|
- Added Solaris 10 facts on Facter 3.9 [\#75](https://github.com/camptocamp/facterdb/pull/75) ([sirinek](https://github.com/sirinek))
|
119
193
|
|
120
194
|
## [0.5.1](https://rubygems.org/gems/facterdb/versions/0.5.1) (2018-03-06)
|
@@ -146,10 +220,6 @@
|
|
146
220
|
|
147
221
|
[Full Changelog](https://github.com/camptocamp/facterdb/compare/0.4.0...0.4.1)
|
148
222
|
|
149
|
-
**Implemented enhancements:**
|
150
|
-
|
151
|
-
- Release prep for 0.4.0 [\#66](https://github.com/camptocamp/facterdb/pull/66) ([DavidS](https://github.com/DavidS))
|
152
|
-
|
153
223
|
## [0.4.0](https://rubygems.org/gems/facterdb/versions/0.4.0) (2017-10-24)
|
154
224
|
|
155
225
|
[Full Changelog](https://github.com/camptocamp/facterdb/compare/0.3.12...0.4.0)
|
data/README.md
CHANGED
@@ -2,7 +2,6 @@ facterdb
|
|
2
2
|
========
|
3
3
|
|
4
4
|
[![Build Status](https://img.shields.io/travis/camptocamp/facterdb/master.svg)](https://travis-ci.org/camptocamp/facterdb)
|
5
|
-
[![Code Climate](https://img.shields.io/codeclimate/github/camptocamp/facterdb.svg)](https://codeclimate.com/github/camptocamp/facterdb)
|
6
5
|
[![Gem Version](https://img.shields.io/gem/v/facterdb.svg)](https://rubygems.org/gems/facterdb)
|
7
6
|
[![Gem Downloads](https://img.shields.io/gem/dt/facterdb.svg)](https://rubygems.org/gems/facterdb)
|
8
7
|
[![Coverage Status](https://img.shields.io/coveralls/camptocamp/facterdb.svg)](https://coveralls.io/r/camptocamp/facterdb?branch=master)
|
@@ -63,20 +62,23 @@ FacterDB::get_facts('osfamily=Debian')
|
|
63
62
|
| AIX 5300 | | | | | | | | | | | 1 | | | | | | | | | | | | |
|
64
63
|
| AIX 6100 | | | | | | | | | | | 1 | | | | | | | | | | | | |
|
65
64
|
| AIX 7100 | | | | | | | | | | | 1 | | | | | | | 1 | | | | | |
|
66
|
-
| Amazon |
|
65
|
+
| Amazon | 3 | | | | 1 | 1 | 1 | | | | | | | | | | | | | | | | |
|
66
|
+
| Amazon 2 | | | | | | | | 1 | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
67
|
+
| Amazon 2016 | | | | | 1 | 1 | 1 | 1 | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
67
68
|
| Amazon 2017 | | | | | 1 | 1 | 1 | | | | | | | | 1 | | | | | | | | |
|
68
|
-
| Amazon 4 | |
|
69
|
+
| Amazon 4 | | 3 | 3 | 3 | | | | | 1 | 1 | | 1 | | | | | | | | | | | |
|
69
70
|
| Archlinux | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | | | | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 |
|
70
71
|
| CentOS 5 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | |
|
71
72
|
| CentOS 6 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 |
|
72
73
|
| CentOS 7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 |
|
74
|
+
| CentOS 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | 1 | 1 | 1 |
|
73
75
|
| Darwin | | | 4 | 4 | | | | | | | | | | | | | | | | | | | |
|
74
76
|
| Darwin 14 | | | 2 | 2 | 2 | 2 | 2 | 1 | | 1 | | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | |
|
75
77
|
| Darwin 15 | | | | | 1 | 1 | 1 | 1 | | 1 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | |
|
76
78
|
| Darwin 16 | | | | | 1 | 1 | 1 | 1 | | | | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
77
79
|
| Darwin 17 | | | | | 1 | 1 | 1 | 1 | | | | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 |
|
78
80
|
| Darwin 18 | | | | | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | | 1 | 1 |
|
79
|
-
| Debian 10 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | |
|
81
|
+
| Debian 10 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | | 1 | 1 |
|
80
82
|
| Debian 6 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | | | | | | | | | | | | | |
|
81
83
|
| Debian 7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | |
|
82
84
|
| Debian 8 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 1 | 1 |
|
@@ -90,12 +92,12 @@ FacterDB::get_facts('osfamily=Debian')
|
|
90
92
|
| Fedora 27 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | 1 | | | | | 1 | | | |
|
91
93
|
| Fedora 28 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | 1 | 1 | 1 |
|
92
94
|
| Fedora 29 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | 1 | 1 | 1 |
|
93
|
-
| Fedora 30 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | |
|
95
|
+
| Fedora 30 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | | | 1 |
|
94
96
|
| FreeBSD 10 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | | | | | | | | | | 1 | | | | | |
|
95
97
|
| FreeBSD 11 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 |
|
96
98
|
| FreeBSD 12 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | 1 | 1 | 1 | 1 | 1 | 1 |
|
97
99
|
| FreeBSD 9 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | | | | | | |
|
98
|
-
| Gentoo | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | |
|
100
|
+
| Gentoo | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | | 1 | | | 1 |
|
99
101
|
| LinuxMint 18 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | 1 | | 1 | | | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
100
102
|
| LinuxMint 19 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | | | | | | | 1 | 1 | 1 | 1 |
|
101
103
|
| OpenBSD 5.7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | | | | | | |
|
@@ -112,6 +114,8 @@ FacterDB::get_facts('osfamily=Debian')
|
|
112
114
|
| OracleLinux 5 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | | | |
|
113
115
|
| OracleLinux 6 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 2 | 1 | 1 | 1 |
|
114
116
|
| OracleLinux 7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 |
|
117
|
+
| Raspbian 10 | | | | | | | | | | | | | | | | | | | | 2 | | | |
|
118
|
+
| Raspbian 9 | | | | | | | 2 | | | | | | | | | | | | | | | | |
|
115
119
|
| RedHat 5 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | |
|
116
120
|
| RedHat 6 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 3 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 |
|
117
121
|
| RedHat 7 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 2 | 2 | | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 |
|
@@ -125,7 +129,8 @@ FacterDB::get_facts('osfamily=Debian')
|
|
125
129
|
| Solaris | | | | | | | | 1 | | | | | | | | | | 1 | | 1 | | | |
|
126
130
|
| Solaris 1 | | | | | | | | 1 | | | | | | | | | | | | | | | |
|
127
131
|
| Solaris 11 | 1 | 1 | | | | | | | | | | | | | | | | | | | | | |
|
128
|
-
| Solaris 2 | | | 1 | 1 | 1 | 2 | 2 | | | | | | | | | | | | |
|
132
|
+
| Solaris 2 | | | 1 | 1 | 1 | 2 | 2 | | | | | | | | | | | | | 1 | | | 1 |
|
133
|
+
| Solaris 3 | | | | | | | | | | | | | | | | | | | | 1 | | | 1 |
|
129
134
|
| Ubuntu 10.04 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | | | | | | |
|
130
135
|
| Ubuntu 12.04 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | | | | | | | | | |
|
131
136
|
| Ubuntu 14.04 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 1 | 1 |
|
@@ -135,6 +140,7 @@ FacterDB::get_facts('osfamily=Debian')
|
|
135
140
|
| Ubuntu 16.04 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 1 | 1 |
|
136
141
|
| Ubuntu 16.10 | | | | | | | | | | | | | | | 2 | | | | | | | | |
|
137
142
|
| Ubuntu 18.04 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | | | | | | | | | | 1 | 1 | 1 | 1 | 1 |
|
143
|
+
| Ubuntu 20.04 | | | | | | | | | | | | | | | | | | | | | | | 1 |
|
138
144
|
| VirtuozzoLinux 7 | | | | | | | | | | | | | | | | | | | | | | | 1 |
|
139
145
|
| Windows 10 | | | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
|
140
146
|
| Windows 7 | | | | 1 | 1 | 1 | 2 | 1 | 2 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | | | | | | |
|
data/Rakefile
CHANGED
@@ -29,12 +29,23 @@ end
|
|
29
29
|
def factset_to_os_label(fs)
|
30
30
|
os_rel = '???'
|
31
31
|
os_name = '????'
|
32
|
-
if fs.key?(:os)
|
32
|
+
if fs.key?(:os) && fs[:os].key?('release') && (fs[:os]['release']['major'] =~ /\d/)
|
33
33
|
os_name = fs[:os]['name']
|
34
|
+
fail = Hash.new
|
35
|
+
os = fs[:os]
|
36
|
+
distro = os.fetch('lsb', os.fetch('distro', fail))
|
37
|
+
if distro.key?('id')
|
38
|
+
os_id = distro['id']
|
39
|
+
elsif distro.key?('distid')
|
40
|
+
os_id = distro['distid']
|
41
|
+
else
|
42
|
+
os_id = '@@@@@@@@@@'
|
43
|
+
end
|
34
44
|
os_rel = fs[:os]['release']['major']
|
35
45
|
os__rel = fs[:os]['release']['full']
|
36
46
|
elsif fs.key? :operatingsystem
|
37
47
|
os_name = fs[:operatingsystem]
|
48
|
+
os_id = fs.fetch(:lsbdistid, '@@@@@@@@@@')
|
38
49
|
os_rel = fs.fetch(:operatingsystemmajrelease, fs.fetch(:lsbmajdistrelease, nil))
|
39
50
|
os__rel = fs.fetch(:lsbdistrelease, fs.fetch(:operatingsystemrelease, '@@@'))
|
40
51
|
else
|
@@ -42,7 +53,6 @@ def factset_to_os_label(fs)
|
|
42
53
|
pp fs
|
43
54
|
fail( 'ERROR: unrecognized facterset format' )
|
44
55
|
end
|
45
|
-
|
46
56
|
# Sanitize OS names to match the formats used in the facterdb README
|
47
57
|
label = "#{os_name} #{os_rel}"
|
48
58
|
if os_name =~ /^(Archlinux|Gentoo)$/
|
@@ -56,8 +66,10 @@ def factset_to_os_label(fs)
|
|
56
66
|
label = "#{os_name} #{os__rel.split('.')[1]}"
|
57
67
|
elsif fs[:_facterdb_filename] =~ /sles-15-/
|
58
68
|
label = "SLES 15"
|
59
|
-
elsif os_name.start_with?('Debian') &&
|
60
|
-
label = "#{
|
69
|
+
elsif os_name.start_with?('Debian') && os_id == 'LinuxMint'
|
70
|
+
label = "#{os_id} #{fs[:lsbmajdistrelease]}"
|
71
|
+
elsif os_name.start_with?('Debian') && os_id == 'Raspbian'
|
72
|
+
label = "#{os_id} #{os_rel}"
|
61
73
|
elsif os_name =~ /^windows$/
|
62
74
|
db_filename = fs[:_facterdb_filename] || 'there_is_no_filename'
|
63
75
|
if db_filename =~ /windows-10-/
|
data/facterdb.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency 'pry'
|
22
22
|
s.add_development_dependency 'rspec'
|
23
23
|
s.add_development_dependency 'github_changelog_generator', '~> 1.10', '< 1.10.4'
|
24
|
-
s.add_runtime_dependency '
|
25
|
-
s.add_runtime_dependency 'facter'
|
24
|
+
s.add_runtime_dependency 'facter', '< 5.0.0'
|
26
25
|
s.add_runtime_dependency 'jgrep'
|
27
26
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"gem_version": "~> 1.6.0",
|
3
|
+
"architecture": "x86_64",
|
4
|
+
"kernel": "Linux",
|
5
|
+
"augeasversion": "1.12.0",
|
6
|
+
"domain": "example.com",
|
7
|
+
"macaddress": "08:00:27:d5:a3:c3",
|
8
|
+
"facterversion": "1.6.18",
|
9
|
+
"fqdn": "foo.example.com",
|
10
|
+
"hardwareisa": "x86_64",
|
11
|
+
"hardwaremodel": "x86_64",
|
12
|
+
"hostname": "foo",
|
13
|
+
"id": "root",
|
14
|
+
"interfaces": "eth0,lo",
|
15
|
+
"macaddress_eth0": "08:00:27:d5:a3:c3",
|
16
|
+
"ipaddress": "10.0.2.15",
|
17
|
+
"kernelmajversion": "4.14",
|
18
|
+
"kernelrelease": "4.14.154-128.181.amzn2.x86_64",
|
19
|
+
"kernelversion": "4.14.154",
|
20
|
+
"boardmanufacturer": "Oracle Corporation",
|
21
|
+
"boardproductname": "VirtualBox",
|
22
|
+
"boardserialnumber": "0",
|
23
|
+
"manufacturer": "innotek GmbH",
|
24
|
+
"productname": "VirtualBox",
|
25
|
+
"serialnumber": "0",
|
26
|
+
"type": "Other",
|
27
|
+
"memorysize": "985.54 MB",
|
28
|
+
"memoryfree": "813.95 MB",
|
29
|
+
"swapsize": "0.00 kB",
|
30
|
+
"swapfree": "0.00 kB",
|
31
|
+
"memorytotal": "985.54 MB",
|
32
|
+
"operatingsystem": "Amazon",
|
33
|
+
"operatingsystemrelease": "4.14.154-128.181.amzn2.x86_64",
|
34
|
+
"osfamily": "Linux",
|
35
|
+
"path": "/home/vagrant/vendor/bundler/ruby/2.5.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
36
|
+
"physicalprocessorcount": 1,
|
37
|
+
"processor0": "Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz",
|
38
|
+
"processorcount": "1",
|
39
|
+
"ps": "ps -ef",
|
40
|
+
"rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
|
41
|
+
"rubyversion": "2.5.3",
|
42
|
+
"selinux": "false",
|
43
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCzt7VD+RI3cTlhjLrmXiEovOBn0PXzt5ezZmd/E5n3FCO6enAuc3gJZvE6Xhi44lGspTxYQ3bZDnASLF0/oEklrhof173tWAD/gm0JHz9FCXx/msL5VRt+m4kFZ5MRPCwXMYw8hjsuqj8DHtaBleoWyslZWZwBOjLKm7RKR668wrS5cuFtaqK0TrvVMUd6LKL37S/Hs7BPCbKLmgCZgyXuorDmvHvDf161MS/jsS32YfGyuKviDZlfMwK9EqtUlFCf5VNHbrl4CBE2ccLIhqqADZWGTYHqqP3XnJ/WylCPA4uewCg+4XZfqRcel77ny3dfsOQnZxerihHB81TTqv7b",
|
44
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBP7HYO0Z/t7NKY8iwAyq4Hg5I9fPSTSmZ27fz3u51rZwjoZYUkPMw6PxVUus8pJE4Lq09ifB+Z7UNnJYmp8r+7g=",
|
45
|
+
"timezone": "UTC",
|
46
|
+
"uniqueid": "007f0100",
|
47
|
+
"uptime": "0:06 hours",
|
48
|
+
"uptime_days": 0,
|
49
|
+
"uptime_hours": 0,
|
50
|
+
"uptime_seconds": 366,
|
51
|
+
"virtual": "kvm",
|
52
|
+
"is_virtual": "true"
|
53
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
{
|
2
|
+
"gem_version": "~> 1.6.0",
|
3
|
+
"architecture": "x86_64",
|
4
|
+
"kernel": "Linux",
|
5
|
+
"augeasversion": "1.12.0",
|
6
|
+
"domain": "example.com",
|
7
|
+
"macaddress": "08:00:27:24:46:86",
|
8
|
+
"facterversion": "1.6.18",
|
9
|
+
"fqdn": "foo.example.com",
|
10
|
+
"hardwareisa": "x86_64",
|
11
|
+
"hardwaremodel": "x86_64",
|
12
|
+
"hostname": "foo",
|
13
|
+
"id": "root",
|
14
|
+
"interfaces": "eth0,lo",
|
15
|
+
"ipaddress_eth0": "10.0.2.15",
|
16
|
+
"macaddress_eth0": "08:00:27:24:46:86",
|
17
|
+
"netmask_eth0": "255.255.255.0",
|
18
|
+
"mtu_eth0": "1500",
|
19
|
+
"ipaddress_lo": "127.0.0.1",
|
20
|
+
"netmask_lo": "255.0.0.0",
|
21
|
+
"mtu_lo": "65536",
|
22
|
+
"ipaddress": "10.0.2.15",
|
23
|
+
"kernelmajversion": "4.4",
|
24
|
+
"kernelrelease": "4.4.44-39.55.amzn1.x86_64",
|
25
|
+
"kernelversion": "4.4.44",
|
26
|
+
"boardmanufacturer": "Oracle Corporation",
|
27
|
+
"boardproductname": "VirtualBox",
|
28
|
+
"boardserialnumber": "0",
|
29
|
+
"manufacturer": "innotek GmbH",
|
30
|
+
"productname": "VirtualBox",
|
31
|
+
"serialnumber": "0",
|
32
|
+
"type": "Other",
|
33
|
+
"memorysize": "996.94 MB",
|
34
|
+
"memoryfree": "874.55 MB",
|
35
|
+
"swapsize": "0.00 kB",
|
36
|
+
"swapfree": "0.00 kB",
|
37
|
+
"memorytotal": "996.94 MB",
|
38
|
+
"netmask": "255.255.255.0",
|
39
|
+
"network_eth0": "10.0.2.0",
|
40
|
+
"network_lo": "127.0.0.0",
|
41
|
+
"operatingsystem": "Amazon",
|
42
|
+
"operatingsystemrelease": "4.4.44-39.55.amzn1.x86_64",
|
43
|
+
"osfamily": "Linux",
|
44
|
+
"path": "/home/vagrant/vendor/bundler/ruby/2.5.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin:/root/bin",
|
45
|
+
"physicalprocessorcount": 1,
|
46
|
+
"processor0": "Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz",
|
47
|
+
"processorcount": "1",
|
48
|
+
"ps": "ps -ef",
|
49
|
+
"rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
|
50
|
+
"rubyversion": "2.5.3",
|
51
|
+
"selinux": "false",
|
52
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDZ1lqGL2XwHIZ9fAJbcht6kKAthGOPsz5aC5sM1QP+mY3ouLB5jrwSpQcV51KvIl30IHu3Rp/Jrl06TpN9nw2kZnSMV0dY1k24ujEwF0CpL4STuv9AHkjD0tUFOa1BqmUukLYFKz2cZroUkFO9GZ4l/Z1EZGquQt37x+q0rq45IKlcoWyttLYFmX6zQhK7ICwnrjfTNXs8ID8g0NEFSne1AoDrHa3QjY/Epa5QVQpEOvJ/hrS5yJ2wYp7Rlg3uR4J+sA/Dpn6UCYC/xlj/aXcl90HPORlIy50gLpzLj55fcH6rTIMcLp5hl5gVyr5lygk+Ep5FiuYBMUPzCeCQ6o0v",
|
53
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIl9DhX/TT6XkAxp7ROAIP8/67ycpIo7t0+NSP4f0FJy9W2Ifj8m+l0i6zxMATRSOmgDNI+PL/TtLLWRZQ/VbQk=",
|
54
|
+
"timezone": "UTC",
|
55
|
+
"uniqueid": "007f0100",
|
56
|
+
"uptime": "0:05 hours",
|
57
|
+
"uptime_days": 0,
|
58
|
+
"uptime_hours": 0,
|
59
|
+
"uptime_seconds": 319,
|
60
|
+
"virtual": "kvm",
|
61
|
+
"is_virtual": "true"
|
62
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"gem_version": "~> 1.6.0",
|
3
|
+
"architecture": "x86_64",
|
4
|
+
"kernel": "Linux",
|
5
|
+
"augeasversion": "1.12.0",
|
6
|
+
"domain": "example.com",
|
7
|
+
"macaddress": "00:0a:95:9d:68:16",
|
8
|
+
"facterversion": "1.6.18",
|
9
|
+
"fqdn": "foo.example.com",
|
10
|
+
"hardwareisa": "x86_64",
|
11
|
+
"hardwaremodel": "x86_64",
|
12
|
+
"hostname": "foo",
|
13
|
+
"id": "root",
|
14
|
+
"interfaces": "eth0,lo",
|
15
|
+
"macaddress_eth0": "00:0a:95:9d:68:16",
|
16
|
+
"ipaddress": "10.0.2.15",
|
17
|
+
"kernelmajversion": "4.18",
|
18
|
+
"kernelrelease": "4.18.0-80.el8.x86_64",
|
19
|
+
"kernelversion": "4.18.0",
|
20
|
+
"boardmanufacturer": "Oracle Corporation",
|
21
|
+
"boardproductname": "VirtualBox",
|
22
|
+
"boardserialnumber": "0",
|
23
|
+
"manufacturer": "innotek GmbH",
|
24
|
+
"productname": "VirtualBox",
|
25
|
+
"serialnumber": "0",
|
26
|
+
"type": "Other",
|
27
|
+
"memorysize": "477.41 MB",
|
28
|
+
"memoryfree": "310.43 MB",
|
29
|
+
"swapsize": "2.00 GB",
|
30
|
+
"swapfree": "1.98 GB",
|
31
|
+
"memorytotal": "477.41 MB",
|
32
|
+
"operatingsystem": "CentOS",
|
33
|
+
"operatingsystemrelease": "8.0.1905",
|
34
|
+
"osfamily": "RedHat",
|
35
|
+
"path": "/home/vagrant/vendor/bundler/ruby/2.5.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
36
|
+
"physicalprocessorcount": 1,
|
37
|
+
"processor0": "Intel Core Processor (Broadwell, IBRS)",
|
38
|
+
"processorcount": "1",
|
39
|
+
"ps": "ps -ef",
|
40
|
+
"rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
|
41
|
+
"rubyversion": "2.5.3",
|
42
|
+
"selinux": "true",
|
43
|
+
"selinux_enforced": "true",
|
44
|
+
"selinux_policyversion": "31",
|
45
|
+
"selinux_current_mode": "enforcing",
|
46
|
+
"selinux_config_mode": "enforcing",
|
47
|
+
"selinux_config_policy": "unknown",
|
48
|
+
"selinux_mode": "unknown",
|
49
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC/ZfDSV1GAanLrOMXOPgrgRjfeGk/gCRcsdECLwfWDMft306K8t1B/UsK9UM+/m3qzNAGGuF3RP+YQ+Y+/2vJv8nCw72OGDSu/r1lj6VWeLdNE8Pvakb+jmbNpz80UMIliJP/Q68Omy//LcuI/Tc2Gz0bVlw4nLfB8+aNZsf+/2wljYBSjsKbouTfqhkxCy8ro9F0PWUlj65bCIsiYN20OEcptabz2T0ElxKtj23e5Samrf5W8A9WeNTzeyhqAjp0/qLVlsFrcvpi9OXPgTAaFZkExUp8AszcfbDjeUDX4DBMNtrScTc00RYl5keNfon2jZf/wyGNNBOmW/VOAsWaN",
|
50
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNgF8jA2VyzG9T3XiXu4Tg+X0omtP2qBh0bTMT2AY0OYfuqEQYb6ER2XBq8VPt1XqvI1ogEBSKezWpwM4ELMH64=",
|
51
|
+
"timezone": "UTC",
|
52
|
+
"uniqueid": "007f0100",
|
53
|
+
"uptime": "0:06 hours",
|
54
|
+
"uptime_days": 0,
|
55
|
+
"uptime_hours": 0,
|
56
|
+
"uptime_seconds": 362,
|
57
|
+
"virtual": "kvm",
|
58
|
+
"is_virtual": "true"
|
59
|
+
}
|