facterdb 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -0
- data/facts/1.6/amazon-2017-x86_64.facts +3 -3
- data/facts/1.6/archlinux-x86_64.facts +1 -0
- data/facts/1.6/fedora-19-i386.facts +1 -0
- data/facts/1.6/fedora-19-x86_64.facts +1 -0
- data/facts/1.6/ubuntu-18.04-aarch64.facts +1 -1
- data/facts/1.7/amazon-2017-x86_64.facts +3 -3
- data/facts/1.7/archlinux-x86_64.facts +1 -0
- data/facts/1.7/centos-9-x86_64.facts +3 -3
- data/facts/1.7/ubuntu-18.04-aarch64.facts +1 -1
- data/facts/2.0/amazon-2017-x86_64.facts +3 -3
- data/facts/2.0/archlinux-x86_64.facts +1 -0
- data/facts/2.0/centos-9-x86_64.facts +3 -3
- data/facts/2.0/ubuntu-18.04-aarch64.facts +3 -1
- data/facts/2.1/amazon-2017-x86_64.facts +9 -9
- data/facts/2.1/archlinux-x86_64.facts +1 -0
- data/facts/2.1/centos-9-x86_64.facts +3 -3
- data/facts/2.1/ubuntu-18.04-aarch64.facts +3 -2
- data/facts/2.2/amazon-2017-x86_64.facts +9 -9
- data/facts/2.2/archlinux-x86_64.facts +1 -0
- data/facts/2.2/centos-9-x86_64.facts +3 -3
- data/facts/2.2/ubuntu-18.04-aarch64.facts +3 -2
- data/facts/2.3/amazon-2017-x86_64.facts +9 -9
- data/facts/2.3/archlinux-x86_64.facts +1 -0
- data/facts/2.3/centos-9-x86_64.facts +3 -3
- data/facts/2.3/ubuntu-18.04-aarch64.facts +3 -2
- data/facts/2.4/amazon-2017-x86_64.facts +9 -9
- data/facts/2.4/archlinux-x86_64.facts +1 -0
- data/facts/2.4/centos-9-x86_64.facts +3 -3
- data/facts/2.4/ubuntu-18.04-aarch64.facts +3 -2
- data/facts/2.4/windows-2012 r2-x64.facts +1 -0
- data/facts/2.4/windows-7-x64.facts +1 -0
- data/facts/2.5/archlinux-x86_64.facts +1 -0
- data/facts/2.5/solaris-10-i86pc.facts +4 -4
- data/facts/2.5/ubuntu-18.04-aarch64.facts +3 -2
- data/facts/3.0/ubuntu-15.10-i386.facts +4 -0
- data/facts/3.0/ubuntu-15.10-x86_64.facts +4 -0
- data/facts/3.10/archlinux-x86_64.facts +2 -1
- data/facts/3.10/ubuntu-18.04-aarch64.facts +7 -2
- data/facts/3.11/archlinux-x86_64.facts +3 -2
- data/facts/3.11/solaris-10-i86pc.facts +4 -4
- data/facts/3.12/archlinux-x86_64.facts +3 -2
- data/facts/3.14/VirtuozzoLinux-7-x86_64.facts +4 -4
- data/facts/3.14/archlinux-x86_64.facts +2 -1
- data/facts/3.14/rocky-8-x86_64.facts +6 -6
- data/facts/3.14/ubuntu-21.04-x86_64.facts +6 -6
- data/facts/3.2/aix-53-powerpc.facts +6 -2
- data/facts/3.2/aix-61-powerpc.facts +6 -2
- data/facts/3.2/aix-71-powerpc.facts +6 -2
- data/facts/3.6/amazon-2017-x86_64.facts +9 -9
- data/facts/3.6/pcs-6-x86_64.facts +6 -2
- data/facts/3.9/aix-7.1-power.facts +4 -4
- data/facts/3.9/archlinux-x86_64.facts +2 -1
- data/facts/3.9/solaris-10-i86pc.facts +4 -4
- data/facts/4.0/centos-7-x86_64.facts +1 -0
- data/facts/4.0/debian-10-x86_64.facts +1 -0
- data/facts/4.0/fedora-35-x86_64.facts +504 -0
- data/facts/4.0/oraclelinux-7-x86_64.facts +1 -0
- data/facts/4.0/redhat-7-x86_64.facts +1 -0
- data/facts/4.0/scientific-7-x86_64.facts +1 -0
- data/facts/4.0/solaris-11-sun4v.facts +1 -0
- data/facts/4.1/fedora-35-x86_64.facts +506 -0
- data/facts/4.2/centos-9-x86_64.facts +14 -3
- data/facts/4.2/fedora-35-x86_64.facts +506 -0
- data/facts/4.2/oraclelinux-9-x86_64.facts +14 -3
- data/facts/4.2/redhat-9-x86_64.facts +14 -3
- data/facts/Vagrantfile +10 -0
- data/facts/get_facts.sh +1 -1
- data/lib/facterdb/version.rb +1 -1
- data/spec/facts_spec.rb +12 -42
- metadata +5 -2
data/spec/facts_spec.rb
CHANGED
@@ -62,39 +62,6 @@ describe 'Default Facts' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
KNOWN_IPADDRESS_PENDING = {
|
66
|
-
'facts/1.6/fedora-19-i386.facts' => 'unable to regenerate facts',
|
67
|
-
'facts/1.6/fedora-19-x86_64.facts' => 'unable to regenerate facts',
|
68
|
-
'facts/2.1/archlinux-x86_64.facts' => 'no ifconfig package',
|
69
|
-
'facts/3.10/ubuntu-18.04-aarch64.facts' => 'unable to regenerate facts',
|
70
|
-
'facts/1.6/archlinux-x86_64.facts' => 'no ifconfig package',
|
71
|
-
'facts/2.4/archlinux-x86_64.facts' => 'no ifconfig package',
|
72
|
-
'facts/3.2/aix-61-powerpc.facts' => 'unable to regenerate facts',
|
73
|
-
'facts/3.2/aix-71-powerpc.facts' => 'unable to regenerate facts',
|
74
|
-
'facts/3.2/aix-53-powerpc.facts' => 'unable to regenerate facts',
|
75
|
-
'facts/2.3/archlinux-x86_64.facts' => 'no ifconfig package',
|
76
|
-
'facts/2.5/archlinux-x86_64.facts' => 'no ifconfig package',
|
77
|
-
'facts/1.7/archlinux-x86_64.facts' => 'no ifconfig package',
|
78
|
-
'facts/2.0/archlinux-x86_64.facts' => 'no ifconfig package',
|
79
|
-
'facts/2.2/archlinux-x86_64.facts' => 'no ifconfig package',
|
80
|
-
'facts/3.6/pcs-6-x86_64.facts' => 'unable to regenerate facts',
|
81
|
-
'facts/3.0/ubuntu-15.10-x86_64.facts' => 'no puppet-agent package',
|
82
|
-
'facts/3.0/ubuntu-15.10-i386.facts' => 'no puppet-agent package',
|
83
|
-
}
|
84
|
-
|
85
|
-
KNOWN_HOSTNAME_PENDING = {
|
86
|
-
'facts/3.10/ubuntu-18.04-aarch64.facts' => 'unable to regenerate facts',
|
87
|
-
'facts/3.2/aix-61-powerpc.facts' => 'unable to regenerate facts',
|
88
|
-
'facts/3.2/aix-71-powerpc.facts' => 'unable to regenerate facts',
|
89
|
-
'facts/3.2/aix-53-powerpc.facts' => 'unable to regenerate facts',
|
90
|
-
'facts/3.6/pcs-6-x86_64.facts' => 'unable to regenerate facts',
|
91
|
-
'facts/3.0/ubuntu-15.10-x86_64.facts' => 'no puppet-agent package',
|
92
|
-
'facts/3.0/ubuntu-15.10-i386.facts' => 'no puppet-agent package',
|
93
|
-
'facts/4.2/centos-9-x86_64.facts' => 'no legacy facts',
|
94
|
-
'facts/4.2/oraclelinux-9-x86_64.facts' => 'no legacy facts',
|
95
|
-
'facts/4.2/redhat-9-x86_64.facts' => 'no legacy facts',
|
96
|
-
}
|
97
|
-
|
98
65
|
project_dir = Pathname.new(__dir__).parent
|
99
66
|
FacterDB.default_fact_files.each do |filepath|
|
100
67
|
relative_path = Pathname.new(filepath).relative_path_from(project_dir).to_s
|
@@ -113,15 +80,17 @@ describe 'Default Facts' do
|
|
113
80
|
expect(content['facterversion']).to have_facter_version(facter_dir_path, filepath)
|
114
81
|
end
|
115
82
|
|
116
|
-
it 'contains
|
117
|
-
|
118
|
-
case content['facterversion']
|
119
|
-
when /^[1-3]/
|
120
|
-
expect(content['ipaddress']).to not_be_nil.and not_be_empty
|
121
|
-
else
|
83
|
+
it 'contains newer networking facts hash' do
|
84
|
+
if Gem::Version.new(content['facterversion']) >= Gem::Version.new('3.0.0')
|
122
85
|
expect(content['networking']['ip']).to not_be_nil.and not_be_empty
|
86
|
+
expect(content['networking']['hostname']).to eq('foo')
|
87
|
+
expect(content['networking']['domain']).to eq('example.com')
|
88
|
+
expect(content['networking']['fqdn']).to eq('foo.example.com')
|
123
89
|
end
|
124
90
|
end
|
91
|
+
it 'contains the legacy ipaddress fact' do
|
92
|
+
expect(content['ipaddress']).to not_be_nil.and not_be_empty
|
93
|
+
end
|
125
94
|
it 'contains no facts from puppetlabs/stdlib' do
|
126
95
|
expect(content['root_home']).to be_nil
|
127
96
|
expect(content['service_provider']).to be_nil
|
@@ -136,9 +105,10 @@ describe 'Default Facts' do
|
|
136
105
|
expect(content['systemd_version']).to be_nil
|
137
106
|
expect(content['systemd_internal_services']).to be_nil
|
138
107
|
end
|
139
|
-
it 'contains a hostname fact' do
|
140
|
-
|
141
|
-
expect(content['
|
108
|
+
it 'contains a legacy hostname, domain and fqdn fact' do
|
109
|
+
expect(content['hostname']).to eq('foo')
|
110
|
+
expect(content['fqdn']).to eq('foo.example.com')
|
111
|
+
expect(content['domain']).to eq('example.com')
|
142
112
|
end
|
143
113
|
end
|
144
114
|
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.
|
4
|
+
version: 1.12.2
|
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-
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -1745,6 +1745,7 @@ files:
|
|
1745
1745
|
- facts/4.0/fedora-32-x86_64.facts
|
1746
1746
|
- facts/4.0/fedora-33-x86_64.facts
|
1747
1747
|
- facts/4.0/fedora-34-x86_64.facts
|
1748
|
+
- facts/4.0/fedora-35-x86_64.facts
|
1748
1749
|
- facts/4.0/freebsd-11-x86_64.facts
|
1749
1750
|
- facts/4.0/freebsd-12-x86_64.facts
|
1750
1751
|
- facts/4.0/freebsd-13-x86_64.facts
|
@@ -1763,6 +1764,7 @@ files:
|
|
1763
1764
|
- facts/4.1/fedora-32-x86_64.facts
|
1764
1765
|
- facts/4.1/fedora-33-x86_64.facts
|
1765
1766
|
- facts/4.1/fedora-34-x86_64.facts
|
1767
|
+
- facts/4.1/fedora-35-x86_64.facts
|
1766
1768
|
- facts/4.1/freebsd-11-x86_64.facts
|
1767
1769
|
- facts/4.1/freebsd-12-x86_64.facts
|
1768
1770
|
- facts/4.1/freebsd-13-x86_64.facts
|
@@ -1783,6 +1785,7 @@ files:
|
|
1783
1785
|
- facts/4.2/fedora-32-x86_64.facts
|
1784
1786
|
- facts/4.2/fedora-33-x86_64.facts
|
1785
1787
|
- facts/4.2/fedora-34-x86_64.facts
|
1788
|
+
- facts/4.2/fedora-35-x86_64.facts
|
1786
1789
|
- facts/4.2/freebsd-11-x86_64.facts
|
1787
1790
|
- facts/4.2/freebsd-12-x86_64.facts
|
1788
1791
|
- facts/4.2/freebsd-13-x86_64.facts
|